Home
last modified time | relevance | path

Searched refs:kretprobe (Results 1 – 17 of 17) sorted by relevance

/linux/include/linux/
H A Dkprobes.h51 struct kretprobe;
142 struct kretprobe __rcu *rp;
146 struct kretprobe { struct
198 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe()
201 return (struct kretprobe *)ri->node.rethook->data; in get_kretprobe()
244 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe()
256 static inline void arch_prepare_kretprobe(struct kretprobe *rp, in arch_prepare_kretprobe()
410 int register_kretprobe(struct kretprobe *rp);
411 void unregister_kretprobe(struct kretprobe *rp);
412 int register_kretprobes(struct kretprobe **rps, int num);
[all …]
H A Dtrace_events.h596 bool kretprobe,
/linux/tools/testing/selftests/bpf/benchs/
H A Drun_bench_trigger.sh10 kretprobe kretprobe-multi kretprobe-multi-all \
H A Drun_bench_rename.sh5 for i in base kprobe kretprobe rawtp fentry fexit
H A Dbench_trigger.c229 static void attach_ksyms_all(struct bpf_program *empty, bool kretprobe) in trigger_fexit_setup()
240 * So, don't run the kprobe-multi-all and kretprobe-multi-all on in trigger_fmodret_setup()
250 opts.retprobe = kretprobe; in trigger_tp_setup()
570 BENCH_TRIG_KERNEL(kretprobe, "kretprobe");
572 BENCH_TRIG_KERNEL(kretprobe_multi, "kretprobe-multi");
575 BENCH_TRIG_KERNEL(kretprobe_multi_all, "kretprobe-multi-all");
/linux/Documentation/trace/
H A Dkprobes.rst58 a kretprobe. But if you're in a hurry to start using Kprobes, you
120 kretprobe, then sets the saved instruction pointer to the saved return
126 kretprobe struct to specify how many instances of the specified
137 some probes. In the kretprobe struct, the nmissed field is set to
147 field of the kretprobe struct. Whenever the kprobe placed by kretprobe at the
152 the kretprobe has no further effect for that particular function instance.
159 private data object can be specified at kretprobe registration time by
160 setting the data_size field of the kretprobe struct. This data can be
421 int register_kretprobe(struct kretprobe *rp);
443 - rp: points to the corresponding kretprobe object
[all …]
H A Dkprobetrace.rst10 this is based on kprobes (kprobe and kretprobe). So it can probe wherever
74 Function arguments at kretprobe
76 Function arguments can be accessed at kretprobe using $arg<N> fetcharg. This
213 This sets a kretprobe on the return point of do_sys_open() function with
/linux/kernel/
H A Dkprobes.c1886 struct kretprobe *rp = get_kretprobe(ri); in recycle_rp_inst()
1924 static inline void free_rp_inst(struct kretprobe *rp) in free_rp_inst()
2008 struct kretprobe *rp; in __kretprobe_trampoline_handler()
2072 struct kretprobe *rp = container_of(p, struct kretprobe, kp); in NOKPROBE_SYMBOL()
2101 struct kretprobe *rp = container_of(p, struct kretprobe, kp); in pre_handler_kretprobe()
2126 struct kretprobe *rp = (struct kretprobe *)data; in kretprobe_rethook_handler()
2174 int register_kretprobe(struct kretprobe *rp) in register_kretprobe()
2246 int register_kretprobes(struct kretprobe **rps, int num) in register_kretprobes()
2264 void unregister_kretprobe(struct kretprobe *rp) in unregister_kretprobe()
2270 void unregister_kretprobes(struct kretprobe **rps, int num) in unregister_kretprobes()
[all …]
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-perf.rst57 pid 21765 fd 5: prog_id 7 kretprobe func __x64_sys_nanosleep offset 0
67 … {"pid":21765,"fd":5,"prog_id":7,"fd_type":"kretprobe","func":"__x64_sys_nanosleep","offset":0}, \
H A Dbpftool-prog.rst46 | **socket** | **kprobe** | **kretprobe** | **classifier** | **action** |
/linux/arch/arm64/kernel/
H A Dstacktrace.c35 kretprobe : 1; member
158 state->flags.kretprobe = 1; in kunwind_recover_return_address()
471 flags.kretprobe ? "K" : "", in dump_backtrace_entry()
/linux/samples/kprobes/
H A Dkretprobe_example.c72 static struct kretprobe my_kretprobe = {
/linux/kernel/trace/
H A Dtrace_kprobe.c61 struct kretprobe rp; /* Use rp.kp for kprobe use */
1157 int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe, in __kprobe_event_gen_cmd_start() argument
1171 if (kretprobe) in __kprobe_event_gen_cmd_start()
1508 struct kretprobe *rp = get_kretprobe(ri); in trace_kprobe_entry_handler()
1836 struct kretprobe *rp = get_kretprobe(ri); in kretprobe_dispatcher()
/linux/arch/s390/lib/
H A Dtest_unwind.c191 struct kretprobe my_kretprobe; in test_unwind_kretprobe()
/linux/arch/arm/probes/kprobes/
H A Dtest-core.c378 static struct kretprobe the_kretprobe = {
/linux/arch/
H A DKconfig284 stacktrace may see the kretprobe trampoline address instead
/linux/lib/
H A DKconfig.debug2341 boot. Samples of kprobe and kretprobe are inserted and