Home
last modified time | relevance | path

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

123

/linux/kernel/trace/
H A Dftrace_internal.h5 int __register_ftrace_function(struct ftrace_ops *ops);
6 int __unregister_ftrace_function(struct ftrace_ops *ops);
11 extern struct ftrace_ops global_ops;
15 int ftrace_startup(struct ftrace_ops *ops, int command);
16 int ftrace_shutdown(struct ftrace_ops *ops, int command);
17 int ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs);
18 int ftrace_startup_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command);
19 int ftrace_shutdown_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command);
39 ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs) in ftrace_ops_test()
43 static inline int ftrace_startup_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int comm… in ftrace_startup_subops()
[all …]
H A Dftrace.c87 struct ftrace_ops ftrace_list_end __read_mostly = {
98 struct ftrace_ops *function_trace_op __read_mostly = &ftrace_list_end;
100 static struct ftrace_ops *set_function_trace_op;
102 bool ftrace_pids_enabled(struct ftrace_ops *ops) in ftrace_pids_enabled()
114 static void ftrace_update_trampoline(struct ftrace_ops *ops);
124 struct ftrace_ops __rcu *ftrace_ops_list __read_mostly = (struct ftrace_ops __rcu *)&ftrace_list_en…
126 struct ftrace_ops global_ops;
130 struct ftrace_ops *op, struct ftrace_regs *fregs);
136 const struct ftrace_ops ftrace_list_ops = {
142 struct ftrace_ops *op, in ftrace_ops_nop_func()
[all …]
H A Dtrace_selftest.c110 struct ftrace_ops *op, in trace_selftest_test_probe1_func()
119 struct ftrace_ops *op, in trace_selftest_test_probe2_func()
128 struct ftrace_ops *op, in trace_selftest_test_probe3_func()
137 struct ftrace_ops *op, in trace_selftest_test_global_func()
146 struct ftrace_ops *op, in trace_selftest_test_dyn_func()
152 static struct ftrace_ops test_probe1 = {
156 static struct ftrace_ops test_probe2 = {
160 static struct ftrace_ops test_probe3 = {
186 struct ftrace_ops *dyn_ops; in trace_selftest_ops()
451 struct ftrace_ops *op, in trace_selftest_test_recursion_func()
[all …]
H A Dtrace_event_perf.c436 struct ftrace_ops *ops, struct ftrace_regs *fregs) in perf_ftrace_function_call()
455 event = container_of(ops, struct perf_event, ftrace_ops); in perf_ftrace_function_call()
489 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_register()
499 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_unregister()
522 event->ftrace_ops.private = (void *)(unsigned long)smp_processor_id(); in perf_ftrace_event_register()
525 event->ftrace_ops.private = (void *)(unsigned long)nr_cpu_ids; in perf_ftrace_event_register()
H A 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, struct ftrace_regs *fregs);
38 struct ftrace_ops *op,
58 struct ftrace_ops *ops; in ftrace_allocate_ftrace_ops()
209 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_trace_call()
233 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_args_trace_call()
273 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_stack_trace_call()
342 struct ftrace_ops *op, in function_no_repeats_trace_call()
[all …]
H A 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()
H A Dtrace.h429 struct ftrace_ops *ops;
998 extern void init_array_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops);
999 extern int allocate_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops);
1158 void fgraph_init_ops(struct ftrace_ops *dst_ops,
1159 struct ftrace_ops *src_ops);
1276 void ftrace_create_filter_files(struct ftrace_ops *ops,
1278 void ftrace_destroy_filter_files(struct ftrace_ops *ops);
1280 extern int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf,
1282 extern int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf,
/linux/include/linux/
H A Dftrace.h40 struct ftrace_ops;
67 struct ftrace_ops *op, struct ftrace_regs *fregs);
69 extern const struct ftrace_ops ftrace_nop_ops;
70 extern const struct ftrace_ops ftrace_list_ops;
71 struct ftrace_ops *ftrace_find_unique_ops(struct dyn_ftrace *rec);
282 struct ftrace_ops *op, struct ftrace_regs *fregs);
284 ftrace_func_t ftrace_ops_get_func(struct ftrace_ops *ops);
408 typedef int (*ftrace_ops_func_t)(struct ftrace_ops *op, unsigned long ip, enum ftrace_ops_cmd cmd);
447 struct ftrace_ops { struct
449 struct ftrace_ops __rcu *next; argument
[all …]
/linux/arch/x86/kernel/
H A Dftrace.c309 create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) in create_trampoline()
430 struct ftrace_ops *ops; in set_ftrace_ops_ro()
470 void arch_ftrace_update_trampoline(struct ftrace_ops *ops) in arch_ftrace_update_trampoline()
527 static void *static_tramp_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) in static_tramp_func()
556 void *arch_ftrace_trampoline_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) in arch_ftrace_trampoline_func()
568 void arch_ftrace_trampoline_free(struct ftrace_ops *ops) in arch_ftrace_trampoline_free()
653 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
/linux/Documentation/trace/
H A 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/arch/riscv/kernel/
H A Dftrace.c81 static const struct ftrace_ops *riscv64_rec_get_ops(struct dyn_ftrace *rec) in riscv64_rec_get_ops()
83 const struct ftrace_ops *ops = NULL; in riscv64_rec_get_ops()
96 static int ftrace_rec_set_ops(const struct dyn_ftrace *rec, const struct ftrace_ops *ops) in ftrace_rec_set_ops()
251 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
/linux/arch/powerpc/include/asm/
H A Dftrace.h81 struct ftrace_ops;
85 struct ftrace_ops *op, struct ftrace_regs *fregs);
147 struct ftrace_ops *ftrace_op;
/linux/samples/ftrace/
H A Dftrace-ops.c96 struct ftrace_ops ops;
101 struct ftrace_ops *op, in ops_func_nop()
108 struct ftrace_ops *op, in ops_func_count()
/linux/arch/loongarch/include/asm/
H A Dftrace.h45 struct ftrace_ops;
72 struct ftrace_ops *op, struct ftrace_regs *fregs);
/linux/arch/arm64/kernel/
H A Dftrace.c353 static const struct ftrace_ops *arm64_rec_get_ops(struct dyn_ftrace *rec) in arm64_rec_get_ops()
355 const struct ftrace_ops *ops = NULL; in arm64_rec_get_ops()
369 const struct ftrace_ops *ops) in ftrace_rec_set_ops()
551 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
/linux/arch/s390/include/asm/
H A Dftrace.h42 struct ftrace_ops;
117 struct ftrace_ops *op, struct ftrace_regs *fregs);
/linux/arch/arm64/include/asm/
H A Dftrace.h61 struct ftrace_ops;
173 struct ftrace_ops *op, struct ftrace_regs *fregs);
/linux/arch/riscv/include/asm/
H A Dftrace.h123 struct ftrace_ops;
226 struct ftrace_ops *op, struct ftrace_regs *fregs);
/linux/fs/pstore/
H A Dftrace.c28 struct ftrace_ops *op, in pstore_ftrace_call()
60 static struct ftrace_ops pstore_ftrace_ops __read_mostly = {
/linux/arch/parisc/kernel/
H A Dftrace.c61 extern struct ftrace_ops *function_trace_op; in ftrace_function_trampoline()
202 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/linux/kernel/livepatch/
H A Dpatch.h25 struct ftrace_ops fops;
/linux/arch/powerpc/kernel/trace/
H A Dftrace.c298 static const struct ftrace_ops *powerpc_rec_get_ops(struct dyn_ftrace *rec) in powerpc_rec_get_ops()
300 const struct ftrace_ops *ops = NULL; in powerpc_rec_get_ops()
313 static int ftrace_rec_set_ops(struct dyn_ftrace *rec, const struct ftrace_ops *ops) in ftrace_rec_set_ops()
680 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
/linux/kernel/bpf/
H A Dtrampoline.c37 static struct bpf_trampoline *direct_ops_ip_lookup(struct ftrace_ops *ops, unsigned long ip) in direct_ops_ip_lookup()
54 static struct bpf_trampoline *direct_ops_ip_lookup(struct ftrace_ops *ops, unsigned long ip) in direct_ops_ip_lookup()
60 static int bpf_tramp_ftrace_ops_func(struct ftrace_ops *ops, unsigned long ip, in bpf_tramp_ftrace_ops_func()
183 struct ftrace_ops direct_ops = {
259 tr->fops = kzalloc_obj(struct ftrace_ops); in direct_ops_alloc()
278 struct ftrace_ops *ops = tr->fops; in direct_ops_add()
298 struct ftrace_ops *ops = tr->fops; in direct_ops_mod()
/linux/arch/loongarch/kernel/
H A Dftrace_dyn.c241 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
290 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
/linux/arch/s390/kernel/
H A Dftrace.c267 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
284 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()

123