Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dkprobes.h52 struct kretprobe;
143 struct kretprobe __rcu *rp;
147 struct kretprobe { struct
203 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe()
206 return (struct kretprobe *)ri->node.rethook->data; in get_kretprobe()
249 static nokprobe_inline struct kretprobe *get_kretprobe(struct kretprobe_instance *ri) in get_kretprobe()
261 static inline void arch_prepare_kretprobe(struct kretprobe *rp, in arch_prepare_kretprobe()
420 int register_kretprobe(struct kretprobe *rp);
421 void unregister_kretprobe(struct kretprobe *rp);
422 int register_kretprobes(struct kretprobe **rps, int num);
[all …]
Dtrace_events.h602 bool kretprobe,
/linux-6.6.21/lib/
Dtest_kprobes.c193 static struct kretprobe rp = {
218 static struct kretprobe rp2 = {
226 struct kretprobe *rps[2] = {&rp, &rp2}; in test_kretprobes()
283 static struct kretprobe rp3 = {
344 static struct kretprobe rp4 = {
352 struct kretprobe *rps[2] = {&rp3, &rp4}; in test_stacktrace_on_nested_kretprobe()
DKconfig.debug2246 boot. Samples of kprobe and kretprobe are inserted and
/linux-6.6.21/Documentation/trace/
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
420 int register_kretprobe(struct kretprobe *rp);
442 - rp: points to the corresponding kretprobe object
[all …]
Dkprobetrace.rst10 this is based on kprobes (kprobe and kretprobe). So it can probe wherever
196 This sets a kretprobe on the return point of do_sys_open() function with
Devents.rst593 kretprobe events.
604 - dynamically creating kprobe and kretprobe event definitions
923 7.3 Dyamically creating kprobe and kretprobe event definitions
926 To create a kprobe or kretprobe trace event from kernel code, the
967 or kretprobe command was started::
978 Similarly, a kretprobe event can be created using
Dfprobe.rst22 The fprobe is a wrapper of ftrace (+ kretprobe-like return callback) to
/linux-6.6.21/tools/bpf/bpftool/Documentation/
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}, \
Dbpftool-prog.rst45 | **socket** | **kprobe** | **kretprobe** | **classifier** | **action** |
/linux-6.6.21/kernel/
Dkprobes.c1892 struct kretprobe *rp = get_kretprobe(ri); in recycle_rp_inst()
1930 static inline void free_rp_inst(struct kretprobe *rp) in free_rp_inst()
2025 struct kretprobe *rp; in __kretprobe_trampoline_handler()
2089 struct kretprobe *rp = container_of(p, struct kretprobe, kp); in NOKPROBE_SYMBOL()
2120 struct kretprobe *rp = container_of(p, struct kretprobe, kp); in pre_handler_kretprobe()
2145 struct kretprobe *rp = (struct kretprobe *)data; in kretprobe_rethook_handler()
2193 int register_kretprobe(struct kretprobe *rp) in register_kretprobe()
2279 int register_kretprobes(struct kretprobe **rps, int num) in register_kretprobes()
2297 void unregister_kretprobe(struct kretprobe *rp) in unregister_kretprobe()
2303 void unregister_kretprobes(struct kretprobe **rps, int num) in unregister_kretprobes()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/benchs/
Drun_bench_rename.sh5 for i in base kprobe kretprobe rawtp fentry fexit
/linux-6.6.21/samples/kprobes/
Dkretprobe_example.c72 static struct kretprobe my_kretprobe = {
/linux-6.6.21/Documentation/bpf/libbpf/
Dprogram_types.rst78 | | | ``kretprobe+…
96 | | | ``kretprobe.…
/linux-6.6.21/kernel/trace/
Dtrace_kprobe.c60 struct kretprobe rp; /* Use rp.kp for kprobe use */
1043 int __kprobe_event_gen_cmd_start(struct dynevent_cmd *cmd, bool kretprobe, in __kprobe_event_gen_cmd_start() argument
1057 if (kretprobe) in __kprobe_event_gen_cmd_start()
1685 struct kretprobe *rp = get_kretprobe(ri); in kretprobe_dispatcher()
/linux-6.6.21/arch/s390/lib/
Dtest_unwind.c191 struct kretprobe my_kretprobe; in test_unwind_kretprobe()
/linux-6.6.21/arch/arm/probes/kprobes/
Dtest-core.c378 static struct kretprobe the_kretprobe = {
/linux-6.6.21/tools/bpf/bpftool/bash-completion/
Dbpftool479 kretprobe classifier flow_dissector \
/linux-6.6.21/arch/
DKconfig222 stacktrace may see the kretprobe trampoline address instead