/linux-6.1.9/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() 210 static nokprobe_inline unsigned long get_kretprobe_retaddr(struct kretprobe_instance *ri) in get_kretprobe_retaddr() 215 extern void arch_prepare_kretprobe(struct kretprobe_instance *ri, 251 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe() 259 static nokprobe_inline unsigned long get_kretprobe_retaddr(struct kretprobe_instance *ri) in get_kretprobe_retaddr()
|
/linux-6.1.9/lib/ |
D | test_kprobes.c | 142 static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in entry_handler() 149 static int return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in return_handler() 175 static int return_handler2(struct kretprobe_instance *ri, struct pt_regs *regs) in return_handler2() 215 static int stacktrace_return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in stacktrace_return_handler() 276 static int stacktrace_internal_return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in stacktrace_internal_return_handler()
|
/linux-6.1.9/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.1.9/kernel/ |
D | kprobes.c | 1873 struct kretprobe_instance *ri = container_of(head, struct kretprobe_instance, rcu); in free_rp_inst_rcu() 1881 static void recycle_rp_inst(struct kretprobe_instance *ri) in recycle_rp_inst() 1900 struct kretprobe_instance *ri; in kprobe_flush_task() 1911 ri = container_of(node, struct kretprobe_instance, llist); in kprobe_flush_task() 1923 struct kretprobe_instance *ri; in free_rp_inst() 1929 ri = container_of(node, struct kretprobe_instance, freelist); in free_rp_inst() 1946 struct kretprobe_instance *ri = NULL; in __kretprobe_find_ret_addr() 1955 ri = container_of(node, struct kretprobe_instance, llist); in __kretprobe_find_ret_addr() 1984 struct kretprobe_instance *ri = NULL; in kretprobe_find_ret_addr() 1994 ri = container_of(*cur, struct kretprobe_instance, llist); in kretprobe_find_ret_addr() [all …]
|
/linux-6.1.9/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.1.9/arch/parisc/kernel/ |
D | kprobes.c | 208 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/kernel/trace/ |
D | trace_kprobe.c | 240 static int kretprobe_dispatcher(struct kretprobe_instance *ri, 1366 __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in __kretprobe_trace_func() 1397 kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_trace_func() 1559 kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, in kretprobe_perf_func() 1672 kretprobe_dispatcher(struct kretprobe_instance *ri, struct pt_regs *regs) in kretprobe_dispatcher()
|
/linux-6.1.9/arch/riscv/kernel/probes/ |
D | kprobes.c | 353 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/arc/kernel/ |
D | kprobes.c | 371 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/arm64/kernel/probes/ |
D | kprobes.c | 422 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/sparc/kernel/ |
D | kprobes.c | 435 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/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.1.9/arch/csky/kernel/probes/ |
D | kprobes.c | 396 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | kprobes.c | 248 void arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/mips/kernel/ |
D | kprobes.c | 481 void arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/sh/kernel/ |
D | kprobes.c | 203 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|
/linux-6.1.9/arch/s390/kernel/ |
D | kprobes.c | 285 void arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) in arch_prepare_kretprobe()
|
/linux-6.1.9/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.1.9/arch/ia64/kernel/ |
D | kprobes.c | 410 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe()
|