mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
31ff0ceeb2
commit
8ab8ba38d4
7 changed files with 71 additions and 7 deletions
|
@ -324,7 +324,7 @@ static void single_thread_tests(bool long_run)
|
|||
printv(2, "after dynamic_height_check: %d allocated, preempt %d\n",
|
||||
nr_allocated, preempt_count);
|
||||
idr_checks();
|
||||
ida_checks();
|
||||
ida_tests();
|
||||
rcu_barrier();
|
||||
printv(2, "after idr_checks: %d allocated, preempt %d\n",
|
||||
nr_allocated, preempt_count);
|
||||
|
@ -371,7 +371,6 @@ int main(int argc, char **argv)
|
|||
iteration_test(0, 10 + 90 * long_run);
|
||||
iteration_test(7, 10 + 90 * long_run);
|
||||
single_thread_tests(long_run);
|
||||
ida_thread_tests();
|
||||
|
||||
/* Free any remaining preallocated nodes */
|
||||
radix_tree_cpu_dead(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue