Searched refs:fprobe (Results 1 – 13 of 13) sorted by relevance
/linux/include/linux/ |
H A D | fprobe.h | 10 struct fprobe; 12 typedef int (*fprobe_entry_cb)(struct fprobe *fp, unsigned long entry_ip, 16 typedef void (*fprobe_exit_cb)(struct fprobe *fp, unsigned long entry_ip, 31 struct fprobe { struct 60 static inline bool fprobe_disabled(struct fprobe *fp) in fprobe_disabled() 65 static inline bool fprobe_shared_with_kprobes(struct fprobe *fp) in fprobe_shared_with_kprobes() 71 int register_fprobe(struct fprobe *fp, const char *filter, const char *notfilter); 72 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num); 73 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num); 74 int unregister_fprobe(struct fprobe *fp); [all …]
|
/linux/Documentation/trace/ |
H A D | fprobe.rst | 15 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 …]
|
H A D | fprobetrace.rst | 21 As same as other dynamic events, fprobe events and tracepoint probe 24 Synopsis of fprobe-events 32 GRP1 : Group name for fprobe. If omitted, use "fprobes" for it. 34 EVENT1 : Event name for fprobe. If omitted, the event name is 41 as defined in Documentation/trace/fprobe.rst 164 Here is an example to add fprobe events on ``vfs_read()`` function entry
|
H A D | kprobetrace.rst | 80 See the :ref:`sample<fprobetrace_exit_args_sample>` in fprobe event for how
|
/linux/kernel/trace/ |
H A D | fprobe.c | 29 struct fprobe *fp; in __fprobe_handler() 33 fp = container_of(ops, struct fprobe, ops); in __fprobe_handler() 63 struct fprobe *fp; in fprobe_handler() 66 fp = container_of(ops, struct fprobe, ops); in fprobe_handler() 87 struct fprobe *fp; in fprobe_kprobe_handler() 90 fp = container_of(ops, struct fprobe, ops); in fprobe_kprobe_handler() 125 struct fprobe *fp = (struct fprobe *)data; in fprobe_exit_handler() 178 static void fprobe_init(struct fprobe *fp) in fprobe_init() 188 static int fprobe_init_rethook(struct fprobe *fp, int num) in fprobe_init_rethook() 215 static void fprobe_fail_cleanup(struct fprobe *fp) in fprobe_fail_cleanup() [all …]
|
H A D | Makefile | 106 obj-$(CONFIG_FPROBE) += fprobe.o
|
H A D | trace_fprobe.c | 46 struct fprobe fp; 219 static int trace_fprobe_entry_handler(struct fprobe *fp, unsigned long entry_ip, in trace_fprobe_entry_handler() 341 static int fentry_dispatcher(struct fprobe *fp, unsigned long entry_ip, in fentry_dispatcher() 358 static void fexit_dispatcher(struct fprobe *fp, unsigned long entry_ip, in fexit_dispatcher()
|
H A D | bpf_trace.c | 2567 struct fprobe fp; 2815 kprobe_multi_link_handler(struct fprobe *fp, unsigned long fentry_ip, in kprobe_multi_link_handler() 2828 kprobe_multi_link_exit_handler(struct fprobe *fp, unsigned long fentry_ip, in kprobe_multi_link_exit_handler()
|
/linux/lib/ |
H A D | test_fprobe.c | 41 static notrace int fp_entry_handler(struct fprobe *fp, unsigned long ip, in fp_entry_handler() 60 static notrace void fp_exit_handler(struct fprobe *fp, unsigned long ip, in fp_exit_handler() 82 static notrace int nest_entry_handler(struct fprobe *fp, unsigned long ip, in nest_entry_handler() 90 static notrace void nest_exit_handler(struct fprobe *fp, unsigned long ip, in nest_exit_handler() 101 struct fprobe fp_entry = { in test_fprobe_entry() 128 struct fprobe fp = { in test_fprobe() 154 struct fprobe fp = { in test_fprobe_syms() 180 struct fprobe fp = { in test_fprobe_data() 198 struct fprobe fp = { in test_fprobe_nest() 215 struct fprobe fp = { in test_fprobe_skip()
|
H A D | Kconfig.debug | 2337 bool "Self test for fprobe" 2342 This option will enable testing the fprobe when the system boot. 2343 A series of tests are made to verify that the fprobe is functioning
|
/linux/samples/fprobe/ |
H A D | fprobe_example.c | 23 static struct fprobe sample_probe; 51 static int sample_entry_handler(struct fprobe *fp, unsigned long ip, in sample_entry_handler() 69 static void sample_exit_handler(struct fprobe *fp, unsigned long ip, in sample_exit_handler()
|
/linux/samples/ |
H A D | Makefile | 40 obj-$(CONFIG_SAMPLE_FPROBE) += fprobe/
|
H A D | Kconfig | 90 tristate "Build fprobe examples -- loadable modules only" 93 This builds a fprobe example module. This module has an option 'symbol'.
|