Loading...
Note: File does not exist in v4.10.11.
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * xarray.c: Userspace shim for XArray test-suite
4 * Copyright (c) 2018 Matthew Wilcox <willy@infradead.org>
5 */
6
7#include "xarray-shared.h"
8#include "test.h"
9
10#undef XA_DEBUG
11#include "../../../lib/test_xarray.c"
12
13void xarray_tests(void)
14{
15 xarray_checks();
16 xarray_exit();
17}
18
19int __weak main(void)
20{
21 rcu_register_thread();
22 radix_tree_init();
23 xarray_tests();
24 radix_tree_cpu_dead(1);
25 rcu_barrier();
26 if (nr_allocated)
27 printf("nr_allocated = %d\n", nr_allocated);
28 rcu_unregister_thread();
29 return 0;
30}