aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/memblock/scripts
diff options
context:
space:
mode:
authorRebecca Mckeever <remckee0@gmail.com>2022-07-03 23:06:55 -0500
committerMike Rapoport <rppt@linux.ibm.com>2022-07-04 19:58:27 +0300
commit946dccb35d74079436677afcdc767d0406e99a88 (patch)
tree4e98cde423f2ebb69e68f793208d94020b8ba1f7 /tools/testing/memblock/scripts
parentmemblock: avoid some repeat when add new range (diff)
downloadlinux-946dccb35d74079436677afcdc767d0406e99a88.tar.gz
linux-946dccb35d74079436677afcdc767d0406e99a88.zip
memblock tests: Makefile: add arguments to control verbosity
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 <david@redhat.com> Signed-off-by: Rebecca Mckeever <remckee0@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/5503f3efe82ecef5c99961a1d53003c8ad06cf27.1656907314.git.remckee0@gmail.com
Diffstat (limited to 'tools/testing/memblock/scripts')
-rw-r--r--tools/testing/memblock/scripts/Makefile.include10
1 files changed, 10 insertions, 0 deletions
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