From mboxrd@z Thu Jan 1 00:00:00 1970 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 BD673C433EF for ; Thu, 23 Jun 2022 04:52:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 29D008E0123; Thu, 23 Jun 2022 00:52:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1FD3E8E0115; Thu, 23 Jun 2022 00:52:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 09F188E0123; Thu, 23 Jun 2022 00:52:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E90758E0115 for ; Thu, 23 Jun 2022 00:52:25 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id BC67A214D2 for ; Thu, 23 Jun 2022 04:52:25 +0000 (UTC) X-FDA: 79608279450.15.3C6603A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id 46BC7140013 for ; Thu, 23 Jun 2022 04:52:25 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 16C7161D76; Thu, 23 Jun 2022 04:52:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14B64C3411B; Thu, 23 Jun 2022 04:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655959943; bh=f04UosaZrCBU0VGU+Q+K1maUIoOWgaPkn3n3p6hifTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aA3gntfBKhzWgoF/FE66TUz0Q7Zc6l8Etl/xxpPe230Ng19NDzmvnfs3hc8s6xn2h i6OU/IQc2XGwuuchuUR/KKeuQMPHaWd64NrhHijH/fgaE10DPKWq85aKO29zQGKH+m ElyJa1GVsmTVWj9fJlZhh0GowH7scNUwfVsqPeSmxCqAGU58DuxJLh6U8/mnop3Kt8 hJjETRCLMt4mn1TU0k9I692VQP87//c8BrKbQoFFg8dt8r0VKeopSppkIKu6+CMbrP FaUsfnnbmhE+zWyLdbAy9oZO4pk06BuZm2TZ0AEZmfrXx+uWuyQJLSGZsS825AMsQv PEKpITHG7iMkA== Date: Wed, 22 Jun 2022 23:52:17 -0500 From: Mike Rapoport To: Rebecca Mckeever Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand Subject: Re: [PATCH v3 1/4] memblock tests: add user-provided arguments to Makefile Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655959945; a=rsa-sha256; cv=none; b=xGPgJ1+MoE0CqOP/3potibozJXaoBteRhyDJafRLZjuXp1dmXKYlWf+xIRO1QzBkRReyoS wfjWgnhCyJxxH6gVTqKKHkMZmDstdXN0WvgXUVnJhn8Lhpp0ht22T+6MnMlqIhbvYWqeia fqDITGDeRq1YaEBMpeWYmgA4RLVrRWA= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aA3gntfB; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655959945; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=bNqZTShdFmFfUpd7TufNn9SFdD/a2Me5RMeKRcPgdGE=; b=s2Rm4PnbMNBqdWuEFehMpD+qCOKpSIk9QtluKNM24BPZbtW7OFMNYLRdUDDurMbrDpTJm1 HZqy/esMcUtcyWxvJnETLJECralX23wEIPYaQ7LX4jxlItRSPXwdsFBwT1ju5XIlhBP+X2 J1RxOymSSTNs403bly0cONE6yrKed50= X-Rspamd-Queue-Id: 46BC7140013 X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aA3gntfB; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Rspamd-Server: rspam08 X-Stat-Signature: jsuqoyao1oj977ea17pf8y77ju7xpgo7 X-HE-Tag: 1655959945-590160 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: On Wed, Jun 22, 2022 at 11:45:36PM -0500, Rebecca Mckeever wrote: > Hi Mike, > > On Wed, Jun 22, 2022 at 10:47:55PM -0500, Mike Rapoport wrote: > > Hi Rebecca, > > > > On Wed, Jun 22, 2022 at 04:29:06AM -0500, Rebecca Mckeever wrote: > > > > > > Subject: memblock tests: add user-provided arguments to Makefile > > > > Please be more specific here, e.g. > > > > memblock tests: Makefile: add arguments to control verbosity > > > > Should I also mention debug messages, or does verbosity refer to both > arguments? It does as enabling memblock_dbg() is also about overall verbosity. But if you manage to squeeze both in 75 characters I won't mind :) > > > Add VERBOSE and MEMBLOCK_DEBUG user-provided arguments. VERBOSE will > > > enable verbose output from Memblock simulator. MEMBLOCK_DEBUG will enable > > > memblock_dbg() messages. > > > > > > Update the help message to include VERBOSE and MEMBLOCK_DEBUG. Update > > > the README to include VERBOSE. The README does not include all available > > > options and refers to the help message for the remaining options. > > > Therefore, omit MEMBLOCK_DEBUG from README. > > > > > > Reviewed-by: David Hildenbrand > > > Signed-off-by: Rebecca Mckeever > > > --- > > > tools/testing/memblock/Makefile | 4 ++++ > > > tools/testing/memblock/README | 10 +++++++++- > > > tools/testing/memblock/scripts/Makefile.include | 10 ++++++++++ > > > 3 files changed, 23 insertions(+), 1 deletion(-) > > > > > > diff --git a/tools/testing/memblock/Makefile b/tools/testing/memblock/Makefile > > > index a698e24b35e7..9fde49ad73bd 100644 > > > --- a/tools/testing/memblock/Makefile > > > +++ b/tools/testing/memblock/Makefile > > > @@ -45,6 +45,10 @@ help: > > > @echo ' clean - Remove generated files and symlinks in the directory' > > > @echo '' > > > @echo 'Configuration:' > > > + @echo ' make VERBOSE=1 - enable verbose output, which includes the' > > > + @echo ' names of functions being tested and the' > > > + @echo ' number of test cases passing' > > > + @echo ' make MEMBLOCK_DEBUG=1 - enable memblock_dbg() messages' > > > @echo ' make NUMA=1 - simulate enabled NUMA' > > > @echo ' make MOVABLE_NODE=1 - override `movable_node_is_enabled`' > > > @echo ' definition to simulate movable NUMA nodes' > > > diff --git a/tools/testing/memblock/README b/tools/testing/memblock/README > > > index ca6afcff013a..058146b528a5 100644 > > > --- a/tools/testing/memblock/README > > > +++ b/tools/testing/memblock/README > > > @@ -34,7 +34,15 @@ To run the tests, build the main target and run it: > > > $ make && ./main > > > > > > A successful run produces no output. It is also possible to override different > > > -configuration parameters. For example, to simulate enabled NUMA, use: > > > +configuration parameters. For example, to include verbose output, specify the > > > +VERBOSE flag when building the main target: > > > + > > > +$ make VERBOSE=1 > > > + > > > +This will print information about which functions are being tested and the > > > +number of test cases that passed. > > > + > > > +To simulate enabled NUMA, use: > > > > > > $ make NUMA=1 > > > > > > diff --git a/tools/testing/memblock/scripts/Makefile.include b/tools/testing/memblock/scripts/Makefile.include > > > index 641569ccb7b0..4401f79bed4c 100644 > > > --- a/tools/testing/memblock/scripts/Makefile.include > > > +++ b/tools/testing/memblock/scripts/Makefile.include > > > @@ -17,3 +17,13 @@ ifeq ($(32BIT_PHYS_ADDR_T), 1) > > > CFLAGS += -m32 -U CONFIG_PHYS_ADDR_T_64BIT > > > LDFLAGS += -m32 > > > endif > > > + > > > +# Enable verbose testing output > > > +ifeq ($(VERBOSE), 1) > > > + CFLAGS += -D VERBOSE > > > +endif > > > + > > > +# Enable memblock_dbg() messages > > > +ifeq ($(MEMBLOCK_DEBUG), 1) > > > + CFLAGS += -D MEMBLOCK_DEBUG > > > +endif > > > -- > > > 2.34.1 > > > > > > > -- > > Sincerely yours, > > Mike. > > Thanks, > Rebecca -- Sincerely yours, Mike.