1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _TEST_RADIX_TREE_H
3 #define _TEST_RADIX_TREE_H
5 #include "../../../../include/linux/radix-tree.h"
7 extern int kmalloc_verbose;
8 extern int test_verbose;
10 static inline void trace_call_rcu(struct rcu_head *head,
11 void (*func)(struct rcu_head *head))
14 printf("Delaying free of %p to slab\n", (char *)head -
15 offsetof(struct radix_tree_node, rcu_head));
19 #define printv(verbosity_level, fmt, ...) \
20 if(test_verbose >= verbosity_level) \
21 printf(fmt, ##__VA_ARGS__)
24 #define call_rcu(x, y) trace_call_rcu(x, y)
26 #endif /* _TEST_RADIX_TREE_H */