Searched refs:rethook (Results 1 – 8 of 8) sorted by relevance
| /Linux-v6.1/kernel/trace/ |
| D | rethook.c | 38 struct rethook *rh = container_of(head, struct rethook, rcu); in rethook_free_rcu() 66 void rethook_free(struct rethook *rh) in rethook_free() 82 struct rethook *rethook_alloc(void *data, rethook_handler_t handler) in rethook_alloc() 84 struct rethook *rh = kzalloc(sizeof(struct rethook), GFP_KERNEL); in rethook_alloc() 107 void rethook_add_node(struct rethook *rh, struct rethook_node *node) in rethook_add_node() 109 node->rethook = rh; in rethook_add_node() 118 if (refcount_dec_and_test(&node->rethook->ref)) in free_rethook_node_rcu() 119 kfree(node->rethook); in free_rethook_node_rcu() 134 if (likely(READ_ONCE(node->rethook->handler))) in rethook_recycle() 135 freelist_add(&node->freelist, &node->rethook->pool); in rethook_recycle() [all …]
|
| D | fprobe.c | 44 rh = rethook_try_get(fp->rethook); in fprobe_handler() 134 fp->rethook = NULL; in fprobe_init_rethook() 143 fp->rethook = rethook_alloc((void *)fp, fprobe_exit_handler); in fprobe_init_rethook() 144 if (!fp->rethook) in fprobe_init_rethook() 151 rethook_free(fp->rethook); in fprobe_init_rethook() 152 fp->rethook = NULL; in fprobe_init_rethook() 155 rethook_add_node(fp->rethook, &node->node); in fprobe_init_rethook() 162 if (fp->rethook) { in fprobe_fail_cleanup() 164 rethook_free(fp->rethook); in fprobe_fail_cleanup() 165 fp->rethook = NULL; in fprobe_fail_cleanup() [all …]
|
| D | Makefile | 106 obj-$(CONFIG_RETHOOK) += rethook.o
|
| /Linux-v6.1/include/linux/ |
| D | rethook.h | 30 struct rethook { struct 56 struct rethook *rethook; member 61 struct rethook *rethook_alloc(void *data, rethook_handler_t handler); 62 void rethook_free(struct rethook *rh); 63 void rethook_add_node(struct rethook *rh, struct rethook_node *node); 64 struct rethook_node *rethook_try_get(struct rethook *rh);
|
| D | fprobe.h | 31 struct rethook *rethook; member
|
| D | kprobes.h | 155 struct rethook *rh; 208 return (struct kretprobe *)READ_ONCE(ri->node.rethook->data); in get_kretprobe()
|
| /Linux-v6.1/arch/x86/kernel/ |
| D | Makefile | 99 obj-$(CONFIG_RETHOOK) += rethook.o
|
| /Linux-v6.1/Documentation/trace/ |
| D | fprobe.rst | 156 - fprobe fails to setup the function exit because of the shortage of rethook
|