| /* SPDX-License-Identifier: GPL-2.0 */ |
| #ifndef _TEST_RADIX_TREE_H |
| #define _TEST_RADIX_TREE_H |
| #include "generated/map-shift.h" |
| #include "../../../../include/linux/radix-tree.h" |
| extern int kmalloc_verbose; |
| static inline void trace_call_rcu(struct rcu_head *head, |
| void (*func)(struct rcu_head *head)) |
| printf("Delaying free of %p to slab\n", (char *)head - |
| offsetof(struct radix_tree_node, rcu_head)); |
| #define printv(verbosity_level, fmt, ...) \ |
| if(test_verbose >= verbosity_level) \ |
| printf(fmt, ##__VA_ARGS__) |
| #define call_rcu(x, y) trace_call_rcu(x, y) |
| #endif /* _TEST_RADIX_TREE_H */ |