Home
last modified time | relevance | path

Searched refs:fprobe (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/include/linux/
Dfprobe.h19 struct fprobe { struct
33 void (*entry_handler)(struct fprobe *fp, unsigned long entry_ip, struct pt_regs *regs); argument
34 void (*exit_handler)(struct fprobe *fp, unsigned long entry_ip, struct pt_regs *regs); argument
46 static inline bool fprobe_disabled(struct fprobe *fp) in fprobe_disabled()
51 static inline bool fprobe_shared_with_kprobes(struct fprobe *fp) in fprobe_shared_with_kprobes()
57 int register_fprobe(struct fprobe *fp, const char *filter, const char *notfilter);
58 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num);
59 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num);
60 int unregister_fprobe(struct fprobe *fp);
62 static inline int register_fprobe(struct fprobe *fp, const char *filter, const char *notfilter) in register_fprobe()
[all …]
/linux-6.1.9/Documentation/trace/
Dfprobe.rst15 use fprobe. Compared with kprobes and kretprobes, fprobe gives faster
17 describes how to use fprobe.
19 The usage of fprobe
22 The fprobe is a wrapper of ftrace (+ kretprobe-like return callback) to
24 the `struct fprobe` and pass it to `register_fprobe()`.
26 Typically, `fprobe` data structure is initialized with the `entry_handler`
31 struct fprobe fp = {
36 To enable the fprobe, call one of register_fprobe(), register_fprobe_ips(), and
37 register_fprobe_syms(). These functions register the fprobe with different types
40 The register_fprobe() enables a fprobe by function-name filters.
[all …]
Dindex.rst12 fprobe
/linux-6.1.9/kernel/trace/
Dfprobe.c27 struct fprobe *fp; in fprobe_handler()
30 fp = container_of(ops, struct fprobe, ops); in fprobe_handler()
62 struct fprobe *fp = container_of(ops, struct fprobe, ops); in fprobe_kprobe_handler()
76 struct fprobe *fp = (struct fprobe *)data; in fprobe_exit_handler()
116 static void fprobe_init(struct fprobe *fp) in fprobe_init()
126 static int fprobe_init_rethook(struct fprobe *fp, int num) in fprobe_init_rethook()
160 static void fprobe_fail_cleanup(struct fprobe *fp) in fprobe_fail_cleanup()
181 int register_fprobe(struct fprobe *fp, const char *filter, const char *notfilter) in register_fprobe()
240 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num) in register_fprobe_ips()
274 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms()
[all …]
DMakefile105 obj-$(CONFIG_FPROBE) += fprobe.o
DKconfig22 features like fprobe and kprobes.
259 bool "Kernel Function Probe (fprobe)"
266 This option enables kernel function probe (fprobe) based on ftrace.
267 The fprobe is similar to kprobes, but probes only for kernel function
269 fprobe.
Dbpf_trace.c2451 struct fprobe fp;
2627 kprobe_multi_link_handler(struct fprobe *fp, unsigned long fentry_ip, in kprobe_multi_link_handler()
/linux-6.1.9/lib/
Dtest_fprobe.c33 static notrace void fp_entry_handler(struct fprobe *fp, unsigned long ip, struct pt_regs *regs) in fp_entry_handler()
42 static notrace void fp_exit_handler(struct fprobe *fp, unsigned long ip, struct pt_regs *regs) in fp_exit_handler()
59 struct fprobe fp_entry = { in test_fprobe_entry()
86 struct fprobe fp = { in test_fprobe()
112 struct fprobe fp = { in test_fprobe_syms()
DKconfig.debug2128 bool "Self test for fprobe"
2133 This option will enable testing the fprobe when the system boot.
2134 A series of tests are made to verify that the fprobe is functioning
/linux-6.1.9/samples/fprobe/
Dfprobe_example.c23 static struct fprobe sample_probe;
51 static void sample_entry_handler(struct fprobe *fp, unsigned long ip, struct pt_regs *regs) in sample_entry_handler()
66 static void sample_exit_handler(struct fprobe *fp, unsigned long ip, struct pt_regs *regs) in sample_exit_handler()
/linux-6.1.9/samples/
DMakefile37 obj-$(CONFIG_SAMPLE_FPROBE) += fprobe/
DKconfig83 tristate "Build fprobe examples -- loadable modules only"
86 This builds a fprobe example module. This module has an option 'symbol'.