From patchwork Wed Jun 22 09:09:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rebecca Mckeever X-Patchwork-Id: 12890366 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AB19CCA47D for ; Wed, 22 Jun 2022 09:10:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8AF118E00A6; Wed, 22 Jun 2022 05:10:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 80CAB8E00A5; Wed, 22 Jun 2022 05:10:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D66F8E00A6; Wed, 22 Jun 2022 05:10:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5CABF8E00A5 for ; Wed, 22 Jun 2022 05:10:11 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 31CA133A2C for ; Wed, 22 Jun 2022 09:10:11 +0000 (UTC) X-FDA: 79605300222.05.926617C Received: from mail-oa1-f68.google.com (mail-oa1-f68.google.com [209.85.160.68]) by imf03.hostedemail.com (Postfix) with ESMTP id C604920092 for ; Wed, 22 Jun 2022 09:10:08 +0000 (UTC) Received: by mail-oa1-f68.google.com with SMTP id 586e51a60fabf-101cdfddfacso13537043fac.7 for ; Wed, 22 Jun 2022 02:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DfXx6OUKFv9lmYSVpe2VK14vOIkFTYrGx9cnZE6j00U=; b=PuiztTqdl2RwR1NhqVtYKiAaZr1SnfcHUzvneUWy9YA6QQHXYrzdtpo0IqVP1O5Q4p aNMN9UnfCEqmN1EdwSHZKH+tSrO6PC348HRxEXEc1s83gNEzLyb9vEusOfyGMrOEXtCV Vob3cAkPMjZxdzz3GANlGjJTntmyLB3biU/JZvPih9f6Pgl7D1+BL3h1tZP55vFAWjtQ fkzXNCZKuMoEjQvXAcKpyY/J8ul8j5Si0uCZElVAT5mt1XlUuBFmeYrsbxMFWRLWYsco dCcIbnkO+v2bHUUZm54Pc8vnD4PwkYnGU64XdMktnQdi9b1r2z6bFvP+7AUHpsEBGrxK kAew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DfXx6OUKFv9lmYSVpe2VK14vOIkFTYrGx9cnZE6j00U=; b=xJn0EA10AuHw15eVSpzlU1txINzC+NpGozDo+xTsr0liHF0wiHwyfIiCV41igfMHcA 1iXxjNa/NmtJAlz2qU11DyV43XDMi238Ozgvr8xQdL2dkl7QvqFVu503vlIsKaOTnTMH Gvs+uqOr+oTIvibFWZH2HKvZ0wGnw5IIkZkDxRAdDWBEHUkJajYxAEibz2Ki+HiQstOn UjSDUPxspi2fPjxwLJ/oFL55b24HP/MX0WY/Jf866laQkeu/ni9UV+/W9svR5oqnkX0Q bjpkJP3RTOVPXqGDCwn7cm7RhSr2daIB9/KKw7Et9N54U7DrntFdZ5ETfz/YYrnPl6UJ u31Q== X-Gm-Message-State: AJIora8iK5hn1E7x0ECpqkvxD4lktrd6O+gKjrIgEExdsXUt17yPDJDi AzhaK5WQst8/O4PRQYZYqIu9B6zgGpk= X-Google-Smtp-Source: AGRyM1s6OZ6mHTCyIOGooSMYkri8CJ/yK32JItOIKeC2zQt29rWrX3ElmiYbaJrNtpypPq7cYMxKdw== X-Received: by 2002:a05:6870:b40a:b0:101:a393:4cb9 with SMTP id x10-20020a056870b40a00b00101a3934cb9mr1472021oap.12.1655889003627; Wed, 22 Jun 2022 02:10:03 -0700 (PDT) Received: from bertie (072-190-140-117.res.spectrum.com. [72.190.140.117]) by smtp.gmail.com with ESMTPSA id c5-20020a4ac305000000b0035eb4e5a6bdsm10913829ooq.19.2022.06.22.02.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 02:10:03 -0700 (PDT) From: Rebecca Mckeever To: Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Rebecca Mckeever Subject: [PATCH v2 3/4] memblock tests: set memblock_debug to enable memblock_dbg() messages Date: Wed, 22 Jun 2022 04:09:45 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655889008; a=rsa-sha256; cv=none; b=vZyGzpWhotwL6pw9KgQjm5KaX04pIiW+kC6ce3CpARb8FZC34iD0Q+P9JmbYvsjmV5oXm/ htFWUhgP6d4ED5DJepRS6UJWStxu4Fax5xSjF8mvF4D16xzK9otdL+TDPmKrHGVAXNoTtb 78LyoTUg7eVmOrx9CueHrDvWmupk59M= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PuiztTqd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of remckee0@gmail.com designates 209.85.160.68 as permitted sender) smtp.mailfrom=remckee0@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655889008; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DfXx6OUKFv9lmYSVpe2VK14vOIkFTYrGx9cnZE6j00U=; b=rxtOQjlHtyfAL4FJgRF+bPRjZ0LbQ70QFGStpe3CfuKyOJEMDGjKOib8UefYMli68pj1O+ gO3SorK/Rf2X2ohWBockL1SV0oYJCIq6JrIOSSRAQUoQ3nBaHGUlbf/q5/FXxp4hrsGuYW pUQ5v+L1TXunHWG6di6114jG0HPtnZk= X-Rspamd-Queue-Id: C604920092 X-Rspam-User: Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PuiztTqd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of remckee0@gmail.com designates 209.85.160.68 as permitted sender) smtp.mailfrom=remckee0@gmail.com X-Rspamd-Server: rspam03 X-Stat-Signature: znsomxj1xxucp5kc3go4cuwjxipo7iy5 X-HE-Tag: 1655889008-196347 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: If Memblock simulator was compiled with MEMBLOCK_DEBUG=1, set memblock_debug to 1 so that memblock_dbg() will print debug information when memblock functions are tested in Memblock simulator. Signed-off-by: Rebecca Mckeever --- tools/testing/memblock/internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/memblock/internal.h b/tools/testing/memblock/internal.h index 94b52a8718b5..c2a492c05e0c 100644 --- a/tools/testing/memblock/internal.h +++ b/tools/testing/memblock/internal.h @@ -2,6 +2,13 @@ #ifndef _MM_INTERNAL_H #define _MM_INTERNAL_H +/* + * Enable memblock_dbg() messages + */ +#ifdef MEMBLOCK_DEBUG +static int memblock_debug = 1; +#endif + struct page {}; void memblock_free_pages(struct page *page, unsigned long pfn,