aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/main.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-06-18 16:59:29 -0400
committerMatthew Wilcox <willy@infradead.org>2018-08-21 23:54:20 -0400
commit8ab8ba38d48867aac01812e18f48fc9173ccd400 (patch)
tree4d149499e92ea666779d91caa2a487dfc322ffba /tools/testing/radix-tree/main.c
parent31ff0ceeb266a4ac96f3fc8cebb85df862a22f92 (diff)
ida: Start new test_ida module
Start transitioning the IDA tests into kernel space. Framework heavily cribbed from test_xarray.c. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'tools/testing/radix-tree/main.c')
-rw-r--r--tools/testing/radix-tree/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/radix-tree/main.c b/tools/testing/radix-tree/main.c
index 584a8732f5ce..b741686e53d6 100644
--- a/tools/testing/radix-tree/main.c
+++ b/tools/testing/radix-tree/main.c
@@ -324,7 +324,7 @@ static void single_thread_tests(bool long_run)
324 printv(2, "after dynamic_height_check: %d allocated, preempt %d\n", 324 printv(2, "after dynamic_height_check: %d allocated, preempt %d\n",
325 nr_allocated, preempt_count); 325 nr_allocated, preempt_count);
326 idr_checks(); 326 idr_checks();
327 ida_checks(); 327 ida_tests();
328 rcu_barrier(); 328 rcu_barrier();
329 printv(2, "after idr_checks: %d allocated, preempt %d\n", 329 printv(2, "after idr_checks: %d allocated, preempt %d\n",
330 nr_allocated, preempt_count); 330 nr_allocated, preempt_count);
@@ -371,7 +371,6 @@ int main(int argc, char **argv)
371 iteration_test(0, 10 + 90 * long_run); 371 iteration_test(0, 10 + 90 * long_run);
372 iteration_test(7, 10 + 90 * long_run); 372 iteration_test(7, 10 + 90 * long_run);
373 single_thread_tests(long_run); 373 single_thread_tests(long_run);
374 ida_thread_tests();
375 374
376 /* Free any remaining preallocated nodes */ 375 /* Free any remaining preallocated nodes */
377 radix_tree_cpu_dead(0); 376 radix_tree_cpu_dead(0);