/linux-6.6.21/include/linux/ |
D | kprobes.h | 53 struct kretprobe_instance; 57 typedef int (*kretprobe_handler_t) (struct kretprobe_instance *, 164 struct kretprobe_instance { struct 203 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe() 208 static nokprobe_inline unsigned long get_kretprobe_retaddr(struct kretprobe_instance *ri) in get_kretprobe_retaddr() 213 extern void arch_prepare_kretprobe(struct kretprobe_instance *ri, 249 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe() 254 static nokprobe_inline unsigned long get_kretprobe_retaddr(struct kretprobe_instance *ri) in get_kretprobe_retaddr()
|
/linux-6.6.21/lib/ |
D | test_kprobes.c | 175 static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in entry_handler() 182 static int return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in return_handler() 208 static int return_handler2(struct kretprobe_instance *ri, struct pt_regs *regs) in return_handler2() 248 static int stacktrace_return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in stacktrace_return_handler() 309 static int stacktrace_internal_return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in stacktrace_internal_return_handler()
|
/linux-6.6.21/samples/kprobes/ |
D | kretprobe_example.c | 39 static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in entry_handler() 57 static int ret_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in ret_handler()
|
/linux-6.6.21/kernel/ |
D | kprobes.c | 1882 struct kretprobe_instance *ri = container_of(head, struct kretprobe_instance, rcu); in free_rp_inst_rcu() 1890 static void recycle_rp_inst(struct kretprobe_instance *ri) in recycle_rp_inst() 1909 struct kretprobe_instance *ri; in kprobe_flush_task() 1920 ri = container_of(node, struct kretprobe_instance, llist); in kprobe_flush_task() 1932 struct kretprobe_instance *ri; in free_rp_inst() 1938 ri = container_of(node, struct kretprobe_instance, freelist); in free_rp_inst() 1955 struct kretprobe_instance *ri = NULL; in __kretprobe_find_ret_addr() 1964 ri = container_of(node, struct kretprobe_instance, llist); in __kretprobe_find_ret_addr() 1993 struct kretprobe_instance *ri = NULL; in kretprobe_find_ret_addr() 2003 ri = container_of(*cur, struct kretprobe_instance, llist); in kretprobe_find_ret_addr() [all …]
|
/linux-6.6.21/Documentation/trace/ |
D | kprobes.rst | 124 stored in an object of type kretprobe_instance. Before calling 128 pre-allocates the indicated number of kretprobe_instance objects. 139 time the probed function is entered but there is no kretprobe_instance 155 kretprobe_instance object associated with them. Additionally, a user 157 kretprobe_instance object. This is especially useful when sharing private 161 accessed through the data field of each kretprobe_instance object. 163 In case probed function is entered but there is no kretprobe_instance 434 int kretprobe_handler(struct kretprobe_instance *ri, 438 kretprobe_instance object, of which the following fields may be
|
/linux-6.6.21/arch/parisc/kernel/ |
D | kprobes.c | 208 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/kernel/trace/ |
D | trace_kprobe.c | 240 static int kretprobe_dispatcher(struct kretprobe_instance *ri, 1383 __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in __kretprobe_trace_func() 1413 kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_trace_func() 1575 kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_perf_func() 1683 kretprobe_dispatcher(struct kretprobe_instance *ri, struct pt_regs *regs) in kretprobe_dispatcher()
|
/linux-6.6.21/arch/arc/kernel/ |
D | kprobes.c | 371 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/arm64/kernel/probes/ |
D | kprobes.c | 404 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/csky/kernel/probes/ |
D | kprobes.c | 396 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/sparc/kernel/ |
D | kprobes.c | 435 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/arm/probes/kprobes/ |
D | core.c | 420 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
D | test-core.c | 370 kretprobe_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in kretprobe_handler()
|
/linux-6.6.21/arch/mips/kernel/ |
D | kprobes.c | 481 void arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/sh/kernel/ |
D | kprobes.c | 203 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | kprobes.c | 245 void arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) in arch_prepare_kretprobe()
|
/linux-6.6.21/arch/s390/lib/ |
D | test_unwind.c | 158 static int kretprobe_ret_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in kretprobe_ret_handler()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | kprobes.c | 410 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|