| /linux-6.15/kernel/trace/ |
| H A D | ftrace_internal.h | 5 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 D | ftrace.c | 143 struct ftrace_ops *op, in ftrace_ops_nop_func() 304 struct ftrace_ops **p; in remove_ftrace_ops() 396 struct ftrace_ops *op; in ftrace_update_pid_func() 1051 struct ftrace_ops ops; 1692 struct ftrace_ops *ops; in test_rec_ops_needs_regs() 1930 struct ftrace_ops *op; in ftrace_hash_rec_update_modify() 2415 struct ftrace_ops *op; in ftrace_find_tramp_ops_any() 2433 struct ftrace_ops *op; in ftrace_find_tramp_ops_any_other() 2469 struct ftrace_ops *op; in ftrace_find_tramp_ops_curr() 2539 struct ftrace_ops *op; in ftrace_find_tramp_ops_new() [all …]
|
| H A D | trace_selftest.c | 110 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 = { 186 struct ftrace_ops *dyn_ops; in trace_selftest_ops() 451 struct ftrace_ops *op, in trace_selftest_test_recursion_func() 466 struct ftrace_ops *op, in trace_selftest_test_recursion_safe_func() 585 struct ftrace_ops *op, in trace_selftest_test_regs_func() [all …]
|
| H A D | trace_event_perf.c | 436 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 D | trace_functions.c | 26 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() 236 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_args_trace_call() 281 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_stack_trace_call() 350 struct ftrace_ops *op, in function_no_repeats_trace_call() [all …]
|
| H A D | trace_stack.c | 293 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 D | trace.h | 417 struct ftrace_ops *ops; 950 extern void init_array_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops); 951 extern int allocate_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops); 1109 void fgraph_init_ops(struct ftrace_ops *dst_ops, 1110 struct ftrace_ops *src_ops); 1236 void ftrace_create_filter_files(struct ftrace_ops *ops, 1238 void ftrace_destroy_filter_files(struct ftrace_ops *ops); 1240 extern int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf, 1242 extern int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf,
|
| /linux-6.15/include/linux/ |
| H A D | ftrace.h | 40 struct ftrace_ops; 69 extern const struct ftrace_ops ftrace_nop_ops; 70 extern const struct ftrace_ops ftrace_list_ops; 426 struct ftrace_ops { struct 428 struct ftrace_ops __rcu *next; argument 441 struct ftrace_ops *managed; argument 448 extern struct ftrace_ops __rcu *ftrace_ops_list; argument 449 extern struct ftrace_ops ftrace_list_end; 530 struct ftrace_ops; 729 void ftrace_free_filter(struct ftrace_ops *ops); [all …]
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | ftrace.c | 304 create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) in create_trampoline() 425 struct ftrace_ops *ops; in set_ftrace_ops_ro() 465 void arch_ftrace_update_trampoline(struct ftrace_ops *ops) in arch_ftrace_update_trampoline() 522 static void *static_tramp_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) in static_tramp_func() 551 void *arch_ftrace_trampoline_func(struct ftrace_ops *ops, struct dyn_ftrace *rec) in arch_ftrace_trampoline_func() 563 void arch_ftrace_trampoline_free(struct ftrace_ops *ops) in arch_ftrace_trampoline_free() 648 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
|
| /linux-6.15/Documentation/trace/ |
| H A D | ftrace-uses.rst | 37 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); 106 flags are set in the ftrace_ops structure, then this will be pointing 157 Alternatively, if the FTRACE_OPS_FL_RCU flag is set on the ftrace_ops 174 a ftrace_ops with this flag set on an architecture that does not 179 ftrace_ops on an architecture that does not support passing of regs 205 Note, only one ftrace_ops with FTRACE_OPS_FL_IPMODIFY set may be [all …]
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | ftrace.h | 66 struct ftrace_ops; 70 struct ftrace_ops *op, struct ftrace_regs *fregs); 132 struct ftrace_ops *ftrace_op;
|
| /linux-6.15/arch/loongarch/include/asm/ |
| H A D | ftrace.h | 45 struct ftrace_ops; 72 struct ftrace_ops *op, struct ftrace_regs *fregs);
|
| /linux-6.15/samples/ftrace/ |
| H A D | ftrace-ops.c | 96 struct ftrace_ops ops; 101 struct ftrace_ops *op, in ops_func_nop() 108 struct ftrace_ops *op, in ops_func_count()
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | ftrace.c | 346 static const struct ftrace_ops *arm64_rec_get_ops(struct dyn_ftrace *rec) in arm64_rec_get_ops() 348 const struct ftrace_ops *ops = NULL; in arm64_rec_get_ops() 362 const struct ftrace_ops *ops) in ftrace_rec_set_ops() 544 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | ftrace.h | 76 struct ftrace_ops; 79 struct ftrace_ops *op, struct ftrace_regs *fregs);
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | ftrace.h | 42 struct ftrace_ops; 134 struct ftrace_ops *op, struct ftrace_regs *fregs);
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | ftrace.h | 61 struct ftrace_ops; 172 struct ftrace_ops *op, struct ftrace_regs *fregs);
|
| /linux-6.15/arch/riscv/include/asm/ |
| H A D | ftrace.h | 128 struct ftrace_ops; 221 struct ftrace_ops *op, struct ftrace_regs *fregs);
|
| /linux-6.15/arch/parisc/kernel/ |
| H A D | ftrace.c | 61 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-6.15/fs/pstore/ |
| H A D | ftrace.c | 28 struct ftrace_ops *op, in pstore_ftrace_call() 60 static struct ftrace_ops pstore_ftrace_ops __read_mostly = {
|
| /linux-6.15/kernel/livepatch/ |
| H A D | patch.h | 25 struct ftrace_ops fops;
|
| /linux-6.15/arch/powerpc/kernel/trace/ |
| H A D | ftrace.c | 280 static const struct ftrace_ops *powerpc_rec_get_ops(struct dyn_ftrace *rec) in powerpc_rec_get_ops() 282 const struct ftrace_ops *ops = NULL; in powerpc_rec_get_ops() 295 static int ftrace_rec_set_ops(struct dyn_ftrace *rec, const struct ftrace_ops *ops) in ftrace_rec_set_ops() 656 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func()
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | kprobes-ftrace.c | 17 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
|
| /linux-6.15/arch/x86/kernel/kprobes/ |
| H A D | ftrace.c | 18 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler()
|
| /linux-6.15/arch/loongarch/kernel/ |
| H A D | ftrace_dyn.c | 241 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()
|