Home
last modified time | relevance | path

Searched refs:rethook (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.6/kernel/trace/
Drethook.c38 struct rethook *rh = container_of(head, struct rethook, rcu); in rethook_free_rcu()
64 void rethook_stop(struct rethook *rh) in rethook_stop()
79 void rethook_free(struct rethook *rh) in rethook_free()
95 struct rethook *rethook_alloc(void *data, rethook_handler_t handler) in rethook_alloc()
97 struct rethook *rh = kzalloc(sizeof(struct rethook), GFP_KERNEL); in rethook_alloc()
120 void rethook_add_node(struct rethook *rh, struct rethook_node *node) in rethook_add_node()
122 node->rethook = rh; in rethook_add_node()
131 if (refcount_dec_and_test(&node->rethook->ref)) in free_rethook_node_rcu()
132 kfree(node->rethook); in free_rethook_node_rcu()
147 if (likely(READ_ONCE(node->rethook->handler))) in rethook_recycle()
[all …]
Dfprobe.c36 rh = rethook_try_get(fp->rethook); in __fprobe_handler()
196 fp->rethook = NULL; in fprobe_init_rethook()
208 fp->rethook = rethook_alloc((void *)fp, fprobe_exit_handler); in fprobe_init_rethook()
209 if (!fp->rethook) in fprobe_init_rethook()
216 rethook_free(fp->rethook); in fprobe_init_rethook()
217 fp->rethook = NULL; in fprobe_init_rethook()
220 rethook_add_node(fp->rethook, &node->node); in fprobe_init_rethook()
227 if (fp->rethook) { in fprobe_fail_cleanup()
229 rethook_free(fp->rethook); in fprobe_fail_cleanup()
230 fp->rethook = NULL; in fprobe_fail_cleanup()
[all …]
DMakefile107 obj-$(CONFIG_RETHOOK) += rethook.o
/Linux-v6.6/include/linux/
Drethook.h30 struct rethook { struct
56 struct rethook *rethook; member
61 struct rethook *rethook_alloc(void *data, rethook_handler_t handler);
62 void rethook_stop(struct rethook *rh);
63 void rethook_free(struct rethook *rh);
64 void rethook_add_node(struct rethook *rh, struct rethook_node *node);
65 struct rethook_node *rethook_try_get(struct rethook *rh);
Dfprobe.h33 struct rethook *rethook; member
Dkprobes.h155 struct rethook *rh;
208 return (struct kretprobe *)READ_ONCE(ri->node.rethook->data); in get_kretprobe()
/Linux-v6.6/arch/riscv/kernel/probes/
DMakefile3 obj-$(CONFIG_RETHOOK) += rethook.o rethook_trampoline.o
/Linux-v6.6/arch/loongarch/kernel/
DMakefile71 obj-$(CONFIG_RETHOOK) += rethook.o rethook_trampoline.o
/Linux-v6.6/arch/s390/kernel/
DMakefile62 obj-$(CONFIG_RETHOOK) += rethook.o
/Linux-v6.6/arch/x86/kernel/
DMakefile99 obj-$(CONFIG_RETHOOK) += rethook.o
/Linux-v6.6/Documentation/trace/
Dfprobe.rst168 - fprobe fails to setup the function exit because of the shortage of rethook