Home
last modified time | relevance | path

Searched refs:ftrace_ops (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.15/kernel/trace/
Dftrace_internal.h8 extern struct ftrace_ops global_ops;
12 int ftrace_startup(struct ftrace_ops *ops, int command);
13 int ftrace_shutdown(struct ftrace_ops *ops, int command);
14 int ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs);
18 int __register_ftrace_function(struct ftrace_ops *ops);
19 int __unregister_ftrace_function(struct ftrace_ops *ops);
36 ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs) in ftrace_ops_test()
Dftrace.c81 struct ftrace_ops ftrace_list_end __read_mostly = {
92 struct ftrace_ops *function_trace_op __read_mostly = &ftrace_list_end;
94 static struct ftrace_ops *set_function_trace_op;
96 static bool ftrace_pids_enabled(struct ftrace_ops *ops) in ftrace_pids_enabled()
108 static void ftrace_update_trampoline(struct ftrace_ops *ops);
118 struct ftrace_ops __rcu *ftrace_ops_list __read_mostly = &ftrace_list_end;
120 struct ftrace_ops global_ops;
124 struct ftrace_ops *op, struct ftrace_regs *fregs);
131 static inline void ftrace_ops_init(struct ftrace_ops *ops) in ftrace_ops_init()
143 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_pid_func()
[all …]
Dtrace_selftest.c109 struct ftrace_ops *op, in trace_selftest_test_probe1_func()
118 struct ftrace_ops *op, in trace_selftest_test_probe2_func()
127 struct ftrace_ops *op, in trace_selftest_test_probe3_func()
136 struct ftrace_ops *op, in trace_selftest_test_global_func()
145 struct ftrace_ops *op, in trace_selftest_test_dyn_func()
151 static struct ftrace_ops test_probe1 = {
155 static struct ftrace_ops test_probe2 = {
159 static struct ftrace_ops test_probe3 = {
185 struct ftrace_ops *dyn_ops; in trace_selftest_ops()
416 struct ftrace_ops *op, in trace_selftest_test_recursion_func()
[all …]
Dtrace_event_perf.c432 struct ftrace_ops *ops, struct ftrace_regs *fregs) in perf_ftrace_function_call()
451 event = container_of(ops, struct perf_event, ftrace_ops); in perf_ftrace_function_call()
485 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_register()
495 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_unregister()
518 event->ftrace_ops.private = (void *)(unsigned long)smp_processor_id(); in perf_ftrace_event_register()
521 event->ftrace_ops.private = (void *)(unsigned long)nr_cpu_ids; in perf_ftrace_event_register()
Dtrace_functions.c26 struct ftrace_ops *op, struct ftrace_regs *fregs);
29 struct ftrace_ops *op, struct ftrace_regs *fregs);
32 struct ftrace_ops *op, struct ftrace_regs *fregs);
35 struct ftrace_ops *op,
54 struct ftrace_ops *ops; in ftrace_allocate_ftrace_ops()
173 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_trace_call()
220 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_stack_trace_call()
283 struct ftrace_ops *op, in function_no_repeats_trace_call()
332 struct ftrace_ops *op, in function_stack_no_repeats_trace_call()
Dtrace_stack.c293 struct ftrace_ops *op, struct ftrace_regs *fregs) in stack_trace_call()
318 static struct ftrace_ops trace_ops __read_mostly =
499 struct ftrace_ops *ops = inode->i_private; in stack_trace_filter_open()
Dfgraph.c335 static struct ftrace_ops graph_ops = {
462 struct ftrace_ops *op; in update_function_graph_func()
Dtrace.h356 struct ftrace_ops *ops;
1069 void ftrace_create_filter_files(struct ftrace_ops *ops,
1071 void ftrace_destroy_filter_files(struct ftrace_ops *ops);
1073 extern int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf,
1075 extern int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf,
Dtrace_events_filter.c1881 struct ftrace_ops *ops;
1907 static int ftrace_function_set_regexp(struct ftrace_ops *ops, int filter, in ftrace_function_set_regexp()
2012 .ops = &event->ftrace_ops, in ftrace_function_set_filter()
/Linux-v5.15/include/linux/
Dftrace.h91 struct ftrace_ops;
118 struct ftrace_ops *op, struct ftrace_regs *fregs);
120 ftrace_func_t ftrace_ops_get_func(struct ftrace_ops *ops);
225 struct ftrace_ops { struct
227 struct ftrace_ops __rcu *next; argument
241 extern struct ftrace_ops __rcu *ftrace_ops_list; argument
242 extern struct ftrace_ops ftrace_list_end;
282 int register_ftrace_function(struct ftrace_ops *ops);
283 int unregister_ftrace_function(struct ftrace_ops *ops);
286 struct ftrace_ops *op, struct ftrace_regs *fregs);
[all …]
Dkprobes.h355 struct ftrace_ops *ops, struct ftrace_regs *fregs);
Dperf_event.h774 struct ftrace_ops ftrace_ops; member
/Linux-v5.15/Documentation/trace/
Dftrace-uses.rst37 The ftrace_ops structure
40 To register a function callback, a ftrace_ops is required. This structure
46 an ftrace_ops with ftrace:
50 struct ftrace_ops ops = {
90 struct ftrace_ops *op, struct pt_regs *regs);
101 This is a pointer to ftrace_ops that was used to register the callback.
106 flags are set in the ftrace_ops structure, then this will be pointing
141 Alternatively, if the FTRACE_OPS_FL_RECURSION flag is set on the ftrace_ops
157 Alternatively, if the FTRACE_OPS_FL_RCU flag is set on the ftrace_ops
167 The ftrace_ops flags are all defined and documented in include/linux/ftrace.h.
[all …]
/Linux-v5.15/arch/x86/kernel/
Dftrace.c314 create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) in create_trampoline()
437 struct ftrace_ops *ops; in set_ftrace_ops_ro()
477 void arch_ftrace_update_trampoline(struct ftrace_ops *ops) in arch_ftrace_update_trampoline()
537 static void *static_tramp_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) in static_tramp_func()
565 void *arch_ftrace_trampoline_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) in arch_ftrace_trampoline_func()
577 void arch_ftrace_trampoline_free(struct ftrace_ops *ops) in arch_ftrace_trampoline_free()
/Linux-v5.15/arch/nds32/kernel/
Dftrace.c9 struct ftrace_ops*, struct ftrace_regs*);
13 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_stub()
41 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_stub()
/Linux-v5.15/fs/pstore/
Dftrace.c28 struct ftrace_ops *op, in pstore_ftrace_call()
60 static struct ftrace_ops pstore_ftrace_ops __read_mostly = {
/Linux-v5.15/arch/parisc/kernel/
Dftrace.c59 extern struct ftrace_ops *function_trace_op; in ftrace_function_trampoline()
207 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/Linux-v5.15/kernel/livepatch/
Dpatch.h25 struct ftrace_ops fops;
Dpatch.c42 struct ftrace_ops *fops, in klp_ftrace_handler()
/Linux-v5.15/arch/powerpc/kernel/
Dkprobes-ftrace.c17 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/Linux-v5.15/arch/x86/kernel/kprobes/
Dftrace.c17 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/Linux-v5.15/arch/riscv/kernel/probes/
Dftrace.c7 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/Linux-v5.15/arch/csky/kernel/probes/
Dftrace.c14 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/Linux-v5.15/arch/s390/kernel/
Dftrace.c358 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/Linux-v5.15/kernel/
Dkprobes.c1023 static struct ftrace_ops kprobe_ftrace_ops __read_mostly = {
1028 static struct ftrace_ops kprobe_ipmodify_ops __read_mostly = {
1046 static int __arm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, in __arm_kprobe_ftrace()
1088 static int __disarm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, in __disarm_kprobe_ftrace()

12