summaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/benchmark.c
diff options
context:
space:
mode:
authorRehas Sachdeva <aquannie@gmail.com>2017-01-04 17:55:00 +0100
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-14 03:44:04 +0100
commit73bc029b76482260a144219786d19951f561716e (patch)
tree92fd2111d3da8e9eea6d43f926f5b9368f924d82 /tools/testing/radix-tree/benchmark.c
parentradix tree test suite: Introduce kmalloc_verbose (diff)
downloadlinux-73bc029b76482260a144219786d19951f561716e.tar.xz
linux-73bc029b76482260a144219786d19951f561716e.zip
radix tree test suite: Dial down verbosity with -v
Make the output of radix tree test suite less verbose by default and add -v and -vv command line options for increasing level of verbosity. Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'tools/testing/radix-tree/benchmark.c')
-rw-r--r--tools/testing/radix-tree/benchmark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/radix-tree/benchmark.c b/tools/testing/radix-tree/benchmark.c
index 215ca86c7605..9b09ddfe462f 100644
--- a/tools/testing/radix-tree/benchmark.c
+++ b/tools/testing/radix-tree/benchmark.c
@@ -71,7 +71,7 @@ static void benchmark_size(unsigned long size, unsigned long step, int order)
tagged = benchmark_iter(&tree, true);
normal = benchmark_iter(&tree, false);
- printf("Size %ld, step %6ld, order %d tagged %10lld ns, normal %10lld ns\n",
+ printv(2, "Size %ld, step %6ld, order %d tagged %10lld ns, normal %10lld ns\n",
size, step, order, tagged, normal);
item_kill_tree(&tree);
@@ -85,8 +85,8 @@ void benchmark(void)
128, 256, 512, 12345, 0};
int c, s;
- printf("starting benchmarks\n");
- printf("RADIX_TREE_MAP_SHIFT = %d\n", RADIX_TREE_MAP_SHIFT);
+ printv(1, "starting benchmarks\n");
+ printv(1, "RADIX_TREE_MAP_SHIFT = %d\n", RADIX_TREE_MAP_SHIFT);
for (c = 0; size[c]; c++)
for (s = 0; step[s]; s++)