diff options
author | Rebecca Mckeever <remckee0@gmail.com> | 2022-07-04 07:06:57 +0300 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-07-04 19:58:28 +0300 |
commit | c55b31a124a68171e5915b1036ca42d8a683eca2 (patch) | |
tree | 8459b5e9a48a70a333cd2223df7472cc7f7b5329 /tools/testing/memblock/internal.h | |
parent | 76586c00e74d189964d2fde26345a4a15f2ea02e (diff) | |
download | linux-c55b31a124a68171e5915b1036ca42d8a683eca2.tar.xz |
memblock tests: set memblock_debug to enable memblock_dbg() messages
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 <remckee0@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/aee4200cce1c09992ed055006a81fde1b6b5b567.1656907314.git.remckee0@gmail.com
Diffstat (limited to 'tools/testing/memblock/internal.h')
-rw-r--r-- | tools/testing/memblock/internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |