Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

maple_tree: skip other tests when BENCH is enabled

Skip other tests when BENCH is enabled so that performance can be measured
in user space.

Link: https://lkml.kernel.org/r/20231027033845.90608-8-zhangpeng.00@bytedance.com
Signed-off-by: Peng Zhang <zhangpeng.00@bytedance.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Mike Christie <michael.christie@oracle.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Peng Zhang and committed by
Andrew Morton
f670fa1c 9bc1d3cd

+6 -4
+4 -4
lib/test_maple_tree.c
··· 3585 3585 3586 3586 pr_info("\nTEST STARTING\n\n"); 3587 3587 3588 - mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); 3589 - check_root_expand(&tree); 3590 - mtree_destroy(&tree); 3591 - 3592 3588 #if defined(BENCH_SLOT_STORE) 3593 3589 #define BENCH 3594 3590 mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); ··· 3641 3645 mtree_destroy(&tree); 3642 3646 goto skip; 3643 3647 #endif 3648 + 3649 + mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); 3650 + check_root_expand(&tree); 3651 + mtree_destroy(&tree); 3644 3652 3645 3653 mt_init_flags(&tree, MT_FLAGS_ALLOC_RANGE); 3646 3654 check_iteration(&tree);
+2
tools/testing/radix-tree/maple.c
··· 36299 36299 36300 36300 void maple_tree_tests(void) 36301 36301 { 36302 + #if !defined(BENCH) 36302 36303 farmer_tests(); 36304 + #endif 36303 36305 maple_tree_seed(); 36304 36306 maple_tree_harvest(); 36305 36307 }