kernel_platform/common (Android common kernel, android16-6.12) from opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII), unmodified. This is the kernel Sony ships, so stock-built modules (e.g. the WLAN driver, whose source is not in the archive) match it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
27 lines
657 B
C
27 lines
657 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _TEST_RADIX_TREE_H
|
|
#define _TEST_RADIX_TREE_H
|
|
|
|
#include "../../../../include/linux/radix-tree.h"
|
|
|
|
extern int kmalloc_verbose;
|
|
extern int test_verbose;
|
|
|
|
static inline void trace_call_rcu(struct rcu_head *head,
|
|
void (*func)(struct rcu_head *head))
|
|
{
|
|
if (kmalloc_verbose)
|
|
printf("Delaying free of %p to slab\n", (char *)head -
|
|
offsetof(struct radix_tree_node, rcu_head));
|
|
call_rcu(head, func);
|
|
}
|
|
|
|
#define printv(verbosity_level, fmt, ...) \
|
|
if(test_verbose >= verbosity_level) \
|
|
printf(fmt, ##__VA_ARGS__)
|
|
|
|
#undef call_rcu
|
|
#define call_rcu(x, y) trace_call_rcu(x, y)
|
|
|
|
#endif /* _TEST_RADIX_TREE_H */
|