From patchwork Wed Jun 22 06:19:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rebecca Mckeever X-Patchwork-Id: 12890207 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 B634AC43334 for ; Wed, 22 Jun 2022 06:20:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC0308E007F; Wed, 22 Jun 2022 02:20:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D71C66B0115; Wed, 22 Jun 2022 02:20:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C376C8E007F; Wed, 22 Jun 2022 02:20:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B86A76B0114 for ; Wed, 22 Jun 2022 02:20:11 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 88ADD12C0 for ; Wed, 22 Jun 2022 06:20:11 +0000 (UTC) X-FDA: 79604871822.29.41F4ACF Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by imf05.hostedemail.com (Postfix) with ESMTP id 2F389100015 for ; Wed, 22 Jun 2022 06:20:06 +0000 (UTC) Received: by mail-oi1-f194.google.com with SMTP id i25so19945814oii.7 for ; Tue, 21 Jun 2022 23:20:05 -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=AGQIifcv8IatjKKtZ3ZMuhDS9M2f66qXt8yHD288muU7dZJUf4BOrGbRfAVqyk6YyC 8uazsNnQH0aC28zkPMZbidyAmunqgVSvMPOto1S5wE3cT1CofMcjgTgVmu16iwG4Ugoe P9wTJgqUdkWoGzQko+bztqQr+kX5pXm0PN1q6m4gZTUjsDy4Zl3wXQ+0vg8zHXlgUlJw z7BMgQmgmYsHqHt4y0VlSPnVrG6pvRd9aSdiDpcIrCulCEXp9xCTPbpU2ABPb19PQ0wG 3oHeSQM4Q2mOr5xbEb3pa8ah/n/CvUWwt9RF1AUIy5nO0r4CVuvezhj/Sj0YfnrROHW/ 4yww== 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=XILQqMyjC3CcrVez2q0gy9ZXkf9E0DIjjA5JItwm53PLp0lsDlkr3RgXwQPQDgJF/s MOq9polBTPYkddJkzUXjvDLSbGO3zSZ+M/mHYWzBGrb8hKNMc+Bvnzd47MXiJFNZw3EK 1/9/EVswh7ZHdDlJc4CbhiKOdBekJ62qrCJ+YVqePUMhE8ClpOGqG61Zbrf0Yu2IpO6Y DFxX6BfMHc3cpsxyRpHnL00qUZdqoLmy4E9r6Neh5PumN1/X8fMM9ztKS9a26wVSO/+c 2nqxodxXM9yqLUaSQsBVfves8xqe34DAQwBVX4VRDulTzwF0EZ8Y6T8u5UT9JOGk9tAl JaYw== X-Gm-Message-State: AOAM531Pl4d7wNrDZL3rUvn5Kx4d36jylcpM8ysKD5cXd//KDDJP0m6O 0CAPbZeB+py8GYPE+aHLwR0= X-Google-Smtp-Source: ABdhPJzCjeLA9cCnRN3/icCZ/qlUASsHUXDJZLuDcSQ8MxM5IWVv6OwxilT7vDLmaYrC42SPOZInRA== X-Received: by 2002:aca:b305:0:b0:32f:17cb:63c0 with SMTP id c5-20020acab305000000b0032f17cb63c0mr19988245oif.142.1655878805547; Tue, 21 Jun 2022 23:20:05 -0700 (PDT) Received: from bertie (072-190-140-117.res.spectrum.com. [72.190.140.117]) by smtp.gmail.com with ESMTPSA id n5-20020a4ab345000000b0035eb4e5a6d6sm10961544ooo.44.2022.06.21.23.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 23:20:05 -0700 (PDT) From: Rebecca Mckeever To: Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Rebecca Mckeever Subject: [PATCH 3/4] memblock tests: set memblock_debug to enable memblock_dbg() messages Date: Wed, 22 Jun 2022 01:19:31 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AGQIifcv; spf=pass (imf05.hostedemail.com: domain of remckee0@gmail.com designates 209.85.167.194 as permitted sender) smtp.mailfrom=remckee0@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655878806; 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=ZStVuH/mA/eNst5o/X97uk3ownUa33lWnj9142flf5nScwzF9sxqAONSeY3GDIa0WLpDOw +V9GoNc19PA2df6TR5ruk4kpQ81AEc6yUaSy0VIpq5fE9n/d6lW2B3yQvKHs8BQkxO5ZXj AHoGCnLttlmMcdB3p7ps5M9PP+7fug0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655878806; a=rsa-sha256; cv=none; b=dxoj3yoPp1j3AFQHu/IqJrjKcegvhJpveo0M8TjXtts+zzQKWgiHLgMqql/3JYyIoIJfPN VfLkcCw+/ob/9aIYJfQIREi44XN5LC1UqGMrRCfbANsgFlyU1wh3aRyXqTGfpW7BsvYLDN HPW6JvTDry2FfOJ7CNrEjMYEtJJQWJc= X-Stat-Signature: 9c645gwpzqozxuxtquruyay9ai66rthx X-Rspam-User: X-Rspamd-Server: rspam07 Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AGQIifcv; spf=pass (imf05.hostedemail.com: domain of remckee0@gmail.com designates 209.85.167.194 as permitted sender) smtp.mailfrom=remckee0@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Queue-Id: 2F389100015 X-HE-Tag: 1655878806-314899 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,