Home
last modified time | relevance | path

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

/linux-6.3-rc2/kernel/trace/
A Drethook.c38 struct rethook *rh = container_of(head, struct rethook, rcu); in rethook_free_rcu()
66 void rethook_free(struct rethook *rh) in rethook_free()
84 struct rethook *rh = kzalloc(sizeof(struct rethook), GFP_KERNEL); in rethook_alloc()
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()
148 struct rethook_node *rethook_try_get(struct rethook *rh) in rethook_try_get()
302 handler = READ_ONCE(rhn->rethook->handler); in rethook_trampoline_handler()
[all …]
A Dfprobe.c44 rh = rethook_try_get(fp->rethook); in fprobe_handler()
134 fp->rethook = NULL; 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()
316 if (fp->rethook) in unregister_fprobe()
[all …]
A DMakefile106 obj-$(CONFIG_RETHOOK) += rethook.o
/linux-6.3-rc2/include/linux/
A Drethook.h30 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);
A Dfprobe.h31 struct rethook *rethook; member
A Dkprobes.h155 struct rethook *rh;
208 return (struct kretprobe *)READ_ONCE(ri->node.rethook->data); in get_kretprobe()
/linux-6.3-rc2/arch/riscv/kernel/probes/
A DMakefile3 obj-$(CONFIG_RETHOOK) += rethook.o rethook_trampoline.o
/linux-6.3-rc2/arch/s390/kernel/
A DMakefile61 obj-$(CONFIG_RETHOOK) += rethook.o
/linux-6.3-rc2/arch/x86/kernel/
A DMakefile98 obj-$(CONFIG_RETHOOK) += rethook.o
/linux-6.3-rc2/Documentation/trace/
A Dfprobe.rst156 - fprobe fails to setup the function exit because of the shortage of rethook

Completed in 14 milliseconds