Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.12 26 lines 651 B view raw
1#ifndef _TEST_RADIX_TREE_H 2#define _TEST_RADIX_TREE_H 3 4#include "generated/map-shift.h" 5#include "../../../../include/linux/radix-tree.h" 6 7extern int kmalloc_verbose; 8extern int test_verbose; 9 10static inline void trace_call_rcu(struct rcu_head *head, 11 void (*func)(struct rcu_head *head)) 12{ 13 if (kmalloc_verbose) 14 printf("Delaying free of %p to slab\n", (char *)head - 15 offsetof(struct radix_tree_node, rcu_head)); 16 call_rcu(head, func); 17} 18 19#define printv(verbosity_level, fmt, ...) \ 20 if(test_verbose >= verbosity_level) \ 21 printf(fmt, ##__VA_ARGS__) 22 23#undef call_rcu 24#define call_rcu(x, y) trace_call_rcu(x, y) 25 26#endif /* _TEST_RADIX_TREE_H */