Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dfprobe.h13 struct fprobe;
14 typedef int (*fprobe_entry_cb)(struct fprobe *fp, unsigned long entry_ip,
18 typedef void (*fprobe_exit_cb)(struct fprobe *fp, unsigned long entry_ip,
32 struct fprobe *fp;
47 struct fprobe *fp;
62 struct fprobe { struct
82 static inline bool fprobe_disabled(struct fprobe *fp) in fprobe_disabled()
87 static inline bool fprobe_shared_with_kprobes(struct fprobe *fp) in fprobe_shared_with_kprobes()
93 int register_fprobe(struct fprobe *fp, const char *filter, const char *notfilter);
94 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num);
[all …]
/linux/Documentation/trace/
H A Dfprobe.rst16 use fprobe. Compared with kprobes and kretprobes, fprobe gives faster
18 describes how to use fprobe.
20 The usage of fprobe
23 The fprobe is a wrapper of ftrace (+ kretprobe-like return callback) to
25 the `struct fprobe` and pass it to `register_fprobe()`.
27 Typically, `fprobe` data structure is initialized with the `entry_handler`
32 struct fprobe fp = {
37 To enable the fprobe, call one of register_fprobe(), register_fprobe_ips(), and
38 register_fprobe_syms(). These functions register the fprobe with different types
41 The register_fprobe() enables a fprobe by function-name filters.
[all …]
H A Dfprobetrace.rst21 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
174 Here is an example to add fprobe events on ``vfs_read()`` function entry
H A Deprobetrace.rst77 attach to a kprobe event, a synthetic event or a fprobe event. This is useful
H A Dboottime-trace.rst129 Defines new fprobe event based on PROBEs. This option is available only
H A Dkprobetrace.rst91 See the :ref:`sample<fprobetrace_exit_args_sample>` in fprobe event for how
/linux/kernel/trace/
H A Dfprobe.c82 static int __insert_fprobe_node(struct fprobe_hlist_node *node, struct fprobe *fp) in __insert_fprobe_node()
108 static bool fprobe_registered(struct fprobe *fp) in fprobe_registered()
123 static int add_fprobe_hash(struct fprobe *fp) in add_fprobe_hash()
138 static int del_fprobe_hash(struct fprobe *fp) in del_fprobe_hash()
161 struct fprobe *fp, unsigned int size_words) in write_fprobe_header()
172 struct fprobe **fp, unsigned int *size_words) in read_fprobe_header()
182 struct fprobe *fp;
189 struct fprobe *fp, unsigned int size_words) in write_fprobe_header()
202 struct fprobe **fp, unsigned int *size_words) in read_fprobe_header()
222 struct fprobe *fp, struct ftrace_regs *fregs, in __fprobe_handler()
[all …]
H A Dtrace_fprobe.c190 struct fprobe fp;
390 static int trace_fprobe_entry_handler(struct fprobe *fp, unsigned long entry_ip, in trace_fprobe_entry_handler()
517 static int fentry_dispatcher(struct fprobe *fp, unsigned long entry_ip, in fentry_dispatcher()
536 static void fexit_dispatcher(struct fprobe *fp, unsigned long entry_ip, in fexit_dispatcher()
H A DKconfig22 features like fprobe and kprobes.
364 bool "Kernel Function Probe (fprobe)"
370 This option enables kernel function probe (fprobe) based on ftrace.
371 The fprobe is similar to kprobes, but probes only for kernel function
373 fprobe.
759 bool "Enable fprobe-based dynamic events"
768 transparently converted to this fprobe events.
H A Dbpf_trace.c2338 struct fprobe fp;
2638 kprobe_multi_link_handler(struct fprobe *fp, unsigned long fentry_ip, in kprobe_multi_link_handler()
2652 kprobe_multi_link_exit_handler(struct fprobe *fp, unsigned long fentry_ip, in kprobe_multi_link_exit_handler()
/linux/lib/tests/
H A Dtest_fprobe.c35 static notrace int fp_entry_handler(struct fprobe *fp, unsigned long ip, in fp_entry_handler()
54 static notrace void fp_exit_handler(struct fprobe *fp, unsigned long ip, in fp_exit_handler()
79 struct fprobe fp_entry = { in test_fprobe_entry()
106 struct fprobe fp = { in test_fprobe()
132 struct fprobe fp = { in test_fprobe_syms()
158 struct fprobe fp = { in test_fprobe_data()
174 struct fprobe fp = { in test_fprobe_skip()
195 static notrace int entry_only_handler(struct fprobe *fp, unsigned long ip, in entry_only_handler()
208 static notrace int fprobe_entry_multi_handler(struct fprobe *fp, unsigned long ip, in fprobe_entry_multi_handler()
222 static notrace void fprobe_exit_multi_handler(struct fprobe *fp, unsigned long ip, in fprobe_exit_multi_handler()
[all …]
/linux/samples/fprobe/
H A Dfprobe_example.c23 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/include/asm-generic/
H A Dfprobe.h42 ((struct fprobe *)(((unsigned long)(val) & FPROBE_HEADER_MSB_MASK) | \
/linux/arch/riscv/include/asm/
H A DKbuild7 generic-y += fprobe.h
/linux/samples/
H A DMakefile41 obj-$(CONFIG_SAMPLE_FPROBE) += fprobe/
H A DKconfig90 tristate "Build fprobe examples -- loadable modules only"
93 This builds a fprobe example module. This module has an option 'symbol'.