From patchwork Mon Jun 27 22:34:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rebecca Mckeever X-Patchwork-Id: 12897273 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 CB677CCA47B for ; Mon, 27 Jun 2022 22:35:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A2398E0007; Mon, 27 Jun 2022 18:35:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 551398E0001; Mon, 27 Jun 2022 18:35:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C9C08E0007; Mon, 27 Jun 2022 18:35:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 28C3D8E0001 for ; Mon, 27 Jun 2022 18:35:22 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id EB2553363E for ; Mon, 27 Jun 2022 22:35:20 +0000 (UTC) X-FDA: 79625473200.19.4417AF6 Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by imf03.hostedemail.com (Postfix) with ESMTP id 1A0D920022 for ; Mon, 27 Jun 2022 22:35:17 +0000 (UTC) Received: by mail-oi1-f194.google.com with SMTP id r82so6135592oig.2 for ; Mon, 27 Jun 2022 15:35:17 -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=J5kQgTgr6JSUUD7EGHpxiWOH7eDrhB/0cYKpphBted9OFDOSVWq5OmmA22fOUQta7j 4uHphCqZlx40CJMFDvbBv3yLC4AXVl1hVvOmfjnFdlEEeT2A/YAnI2RZnoZoCoA7WlDL N4sRXor2rpzDkndOc9sgw8Ya9PMsRFDwLBsjh0UTUXnRwcsm/yeH3JOm2HJwmGD9tpwe RM6EBB71MxsgRdoCBntQtN/2xFzgq3GIhzDIHgPyi5WQr//5FRTyeOV/DZ/AEpVNuH3/ PhpTwLGnpkluxF4wH1bYv2klCYmN3TScTFp4eybapuzkAiFvK/OIddei3Q2x38WNKjMv C/RA== 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=oMtnr4mPCG5TZnAGAa7/NdOfjaCZ6031tFP6wH7rn+4PL5FajOKo11raFFEqVye7ms naDt4uKAEEsw988ZjIvoSAJ4eudvKT0f+UKUe6xzCmNmLCHUAACsBdS7gMaxrbuJjizC R3Riu5RA3xDClqhkgL9dPc3tyDRanfydToqDuqdBjRsxFAgY4EoJlt62akpsbXXDQDKW Gxx49E7FyedN8+TihB2/N0/mJDdcxikXrqgXG6XH9AdXjPLNP/5vyxD19zom6bcyUyIQ cegoKTehLmQCpXXl2rTdYworrggDAtKkRyTEbquXWBBdK4N59S2SmdvxsxpoJBPwi0RR ttvQ== X-Gm-Message-State: AJIora99BQQQ0A/SF7tjh45LTsHt5ILkOC/nSJZhH5GBlrGXNBjsFMG2 Ayexm6N4PDMqyV8FGWTDMG4KyrSUAR4= X-Google-Smtp-Source: AGRyM1v7C/R3OZltTwTg3XDCHKk/ykfKaSvmQOv0yaVjZNT3Ft/473i7VabYc47Jbm920piZQjIhSg== X-Received: by 2002:a05:6808:f03:b0:333:401b:2804 with SMTP id m3-20020a0568080f0300b00333401b2804mr9924301oiw.179.1656369317390; Mon, 27 Jun 2022 15:35:17 -0700 (PDT) Received: from bertie (072-190-140-117.res.spectrum.com. [72.190.140.117]) by smtp.gmail.com with ESMTPSA id s8-20020aca4508000000b0033578d53265sm1654990oia.54.2022.06.27.15.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 15:35:17 -0700 (PDT) From: Rebecca Mckeever To: Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Rebecca Mckeever Subject: [PATCH v4 3/4] memblock tests: set memblock_debug to enable memblock_dbg() messages Date: Mon, 27 Jun 2022 17:34:29 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656369318; 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=ykCAvrXir2sTjAvZGpZ4cYZdthhaHx+OKzLmPLkZUiIyXU88wqVq4IdTTSYCl3FzYyoq+D xsT0IYYUqKMgdjmXYrw6NXFvvVB2ucX9xj67ovJSPrAdBZ/LhaO4tFXPMqbLXkSmt80MCU Pa3p9L55YkmP347Z/d7/NW5kzc99Ubc= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J5kQgTgr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of remckee0@gmail.com designates 209.85.167.194 as permitted sender) smtp.mailfrom=remckee0@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656369318; a=rsa-sha256; cv=none; b=7Bn5eFXRGX0bv6mJXcSU6tGTdxjVr/L0UcEbxr2zGR8E7ePz9W1MKTuOQf26eMp5TNw6jh 76YVnK2VGeCnwAPI39EBzyPcdMHkoKFUwSOG1CpofR1NEqAUJ+i0SwnId8fWEewbnBrazF KEu5K8/ajz+FOIDQPPwHWBkdwMXlfHo= X-Rspamd-Queue-Id: 1A0D920022 Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J5kQgTgr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of remckee0@gmail.com designates 209.85.167.194 as permitted sender) smtp.mailfrom=remckee0@gmail.com X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: odo5ykuun76dk5nynfz55yoyduqpncwh X-HE-Tag: 1656369317-18417 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,