Home
last modified time | relevance | path

Searched refs:trace_array (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.15/kernel/trace/
Dtrace.h142 struct trace_array;
177 struct trace_array *tr;
220 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data);
281 struct trace_array { struct
384 extern int trace_array_get(struct trace_array *tr); argument
385 extern int tracing_check_open_get_tr(struct trace_array *tr);
386 extern struct trace_array *trace_array_find(const char *instance);
387 extern struct trace_array *trace_array_find_get(const char *instance);
390 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set);
391 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
[all …]
Dtrace_irqsoff.c24 static struct trace_array *irqsoff_trace __read_mostly;
40 static void stop_irqsoff_tracer(struct trace_array *tr, int graph);
41 static int start_irqsoff_tracer(struct trace_array *tr, int graph);
65 static int irqsoff_display_graph(struct trace_array *tr, int set);
68 static inline int irqsoff_display_graph(struct trace_array *tr, int set) in irqsoff_display_graph()
99 static int func_prolog_dec(struct trace_array *tr, in func_prolog_dec()
143 struct trace_array *tr = irqsoff_trace; in irqsoff_tracer_call()
160 static int irqsoff_display_graph(struct trace_array *tr, int set) in irqsoff_display_graph()
180 struct trace_array *tr = irqsoff_trace; in irqsoff_graph_entry()
210 struct trace_array *tr = irqsoff_trace; in irqsoff_graph_return()
[all …]
Dtrace_functions.c22 static void tracing_start_function_trace(struct trace_array *tr);
23 static void tracing_stop_function_trace(struct trace_array *tr);
52 int ftrace_allocate_ftrace_ops(struct trace_array *tr) in ftrace_allocate_ftrace_ops()
74 void ftrace_free_ftrace_ops(struct trace_array *tr) in ftrace_free_ftrace_ops()
80 int ftrace_create_function_files(struct trace_array *tr, in ftrace_create_function_files()
98 void ftrace_destroy_function_files(struct trace_array *tr) in ftrace_destroy_function_files()
120 static bool handle_func_repeats(struct trace_array *tr, u32 flags_val) in handle_func_repeats()
132 static int function_trace_init(struct trace_array *tr) in function_trace_init()
159 static void function_trace_reset(struct trace_array *tr) in function_trace_reset()
166 static void function_trace_start(struct trace_array *tr) in function_trace_start()
[all …]
Dtrace_sched_wakeup.c22 static struct trace_array *wakeup_trace;
36 static void wakeup_reset(struct trace_array *tr);
37 static void __wakeup_reset(struct trace_array *tr);
38 static int start_func_tracer(struct trace_array *tr, int graph);
39 static void stop_func_tracer(struct trace_array *tr, int graph);
68 func_prolog_preempt_disable(struct trace_array *tr, in func_prolog_preempt_disable()
102 static int wakeup_display_graph(struct trace_array *tr, int set) in wakeup_display_graph()
117 struct trace_array *tr = wakeup_trace; in wakeup_graph_entry()
146 struct trace_array *tr = wakeup_trace; in wakeup_graph_return()
214 struct trace_array *tr = wakeup_trace; in wakeup_tracer_call()
[all …]
Dtrace_nop.c35 static struct trace_array *ctx_trace;
37 static void start_nop_trace(struct trace_array *tr) in start_nop_trace()
42 static void stop_nop_trace(struct trace_array *tr) in stop_nop_trace()
47 static int nop_trace_init(struct trace_array *tr) in nop_trace_init()
54 static void nop_trace_reset(struct trace_array *tr) in nop_trace_reset()
64 static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in nop_set_flag()
Dtrace.c99 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag()
178 int tracing_set_tracer(struct trace_array *tr, const char *buf);
179 static void ftrace_trace_userstack(struct trace_array *tr,
435 static struct trace_array global_trace = {
441 int trace_array_get(struct trace_array *this_tr) in trace_array_get()
443 struct trace_array *tr; in trace_array_get()
459 static void __trace_array_put(struct trace_array *this_tr) in __trace_array_put()
474 void trace_array_put(struct trace_array *this_tr) in trace_array_put()
485 int tracing_check_open_get_tr(struct trace_array *tr) in tracing_check_open_get_tr()
922 static inline void ftrace_trace_stack(struct trace_array *tr,
[all …]
Dtrace_hwlat.c48 static struct trace_array *hwlat_trace;
132 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample()
189 struct trace_array *tr = hwlat_trace; \
204 struct trace_array *tr = hwlat_trace; in get_sample()
317 struct trace_array *tr = hwlat_trace; in move_to_next_cpu()
421 static int start_single_kthread(struct trace_array *tr) in start_single_kthread()
513 struct trace_array *tr = hwlat_trace; in hwlat_hotplug_workfn()
579 static int start_per_cpu_kthreads(struct trace_array *tr) in start_per_cpu_kthreads()
665 static void hwlat_tracer_start(struct trace_array *tr);
666 static void hwlat_tracer_stop(struct trace_array *tr);
[all …]
Dtrace_events.c445 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid()
535 struct trace_array *tr; in trace_event_enable_cmd_record()
557 struct trace_array *tr; in trace_event_enable_tgid_record()
580 struct trace_array *tr = file->tr; in __ftrace_event_enable_disable()
706 static void ftrace_clear_events(struct trace_array *tr) in ftrace_clear_events()
721 struct trace_array *tr = data; in event_filter_pid_sched_process_exit()
736 struct trace_array *tr = data; in event_filter_pid_sched_process_fork()
745 void trace_event_follow_fork(struct trace_array *tr, bool enable) in trace_event_follow_fork()
764 struct trace_array *tr = data; in event_filter_pid_sched_switch_probe_pre()
788 struct trace_array *tr = data; in event_filter_pid_sched_switch_probe_post()
[all …]
Dtrace_mmiotrace.c23 static struct trace_array *mmio_trace_array;
28 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data()
36 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init()
46 static void mmio_trace_reset(struct trace_array *tr) in mmio_trace_reset()
55 static void mmio_trace_start(struct trace_array *tr) in mmio_trace_start()
293 static void __trace_mmiotrace_rw(struct trace_array *tr, in __trace_mmiotrace_rw()
319 struct trace_array *tr = mmio_trace_array; in mmio_trace_rw()
324 static void __trace_mmiotrace_map(struct trace_array *tr, in __trace_mmiotrace_map()
350 struct trace_array *tr = mmio_trace_array; in mmio_trace_mapping()
Dtrace_functions_graph.c80 static struct trace_array *graph_array;
94 print_graph_duration(struct trace_array *tr, unsigned long long duration,
97 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry()
128 struct trace_array *tr = graph_array; in trace_graph_entry()
189 __trace_graph_function(struct trace_array *tr, in __trace_graph_function()
209 trace_graph_function(struct trace_array *tr, in trace_graph_function()
216 void __trace_graph_return(struct trace_array *tr, in __trace_graph_return()
237 struct trace_array *tr = graph_array; in trace_graph_return()
263 void set_graph_array(struct trace_array *tr) in set_graph_array()
298 static int graph_trace_init(struct trace_array *tr) in graph_trace_init()
[all …]
Dtrace_osnoise.c41 static struct trace_array *osnoise_trace;
318 struct trace_array *tr = osnoise_trace; \
329 struct trace_array *tr = osnoise_trace; in trace_osnoise_sample()
395 struct trace_array *tr = osnoise_trace; in trace_timerlat_sample()
461 struct trace_array *tr = osnoise_trace; in timerlat_dump_stack()
1080 struct trace_array *tr = osnoise_trace; in osnoise_stop_tracing()
1099 struct trace_array *tr = osnoise_trace; in run_osnoise()
1296 struct trace_array *tr = osnoise_trace; in timerlat_irq()
1548 static int start_per_cpu_kthreads(struct trace_array *tr) in start_per_cpu_kthreads()
1583 struct trace_array *tr = osnoise_trace; in osnoise_hotplug_workfn()
[all …]
Dtrace_boot.c25 trace_boot_set_instance_options(struct trace_array *tr, struct xbc_node *node) in trace_boot_set_instance_options()
83 trace_boot_enable_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_events()
458 trace_boot_init_one_event(struct trace_array *tr, struct xbc_node *gnode, in trace_boot_init_one_event()
514 trace_boot_init_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_init_events()
556 trace_boot_set_ftrace_filter(struct trace_array *tr, struct xbc_node *node) in trace_boot_set_ftrace_filter()
588 trace_boot_enable_tracer(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_tracer()
608 trace_boot_init_one_instance(struct trace_array *tr, struct xbc_node *node) in trace_boot_init_one_instance()
620 struct trace_array *tr; in trace_boot_init_instances()
645 struct trace_array *tr; in trace_boot_init()
Dtrace_selftest.c182 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops()
323 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing()
657 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function()
759 struct trace_array *tr) in trace_selftest_startup_function_graph()
825 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff()
874 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff()
936 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff()
1037 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop()
1089 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup()
1167 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_branch()
Dtrace_branch.c28 static struct trace_array *branch_tracer;
34 struct trace_array *tr = branch_tracer; in probe_likely_condition()
102 int enable_branch_tracing(struct trace_array *tr) in enable_branch_tracing()
130 static int branch_trace_init(struct trace_array *tr) in branch_trace_init()
135 static void branch_trace_reset(struct trace_array *tr) in branch_trace_reset()
Dtrace_syscalls.c130 struct trace_array *tr = iter->tr; in print_syscall_enter()
295 struct trace_array *tr = data; in ftrace_syscall_enter()
343 struct trace_array *tr = data; in ftrace_syscall_exit()
388 struct trace_array *tr = file->tr; in reg_event_syscall_enter()
409 struct trace_array *tr = file->tr; in unreg_event_syscall_enter()
426 struct trace_array *tr = file->tr; in reg_event_syscall_exit()
447 struct trace_array *tr = file->tr; in unreg_event_syscall_exit()
Dftrace.c98 struct trace_array *tr; in ftrace_pids_enabled()
145 struct trace_array *tr = op->private; in ftrace_pid_func()
1020 struct trace_array *tr;
1286 static int ftrace_add_mod(struct trace_array *tr, in ftrace_add_mod()
3258 struct trace_array *tr;
3269 struct trace_array *tr = iter->ops->private; in t_probe_next()
3400 struct trace_array *tr = iter->tr; in t_mod_next()
3453 struct trace_array *tr = iter->tr; in t_mod_show()
3762 struct trace_array *tr = ops->private; in ftrace_regex_open()
4131 static int cache_mod(struct trace_array *tr, in cache_mod()
[all …]
Dtrace_events_hist.c608 static void hist_err(struct trace_array *tr, u8 err_type, u8 err_pos) in hist_err()
670 struct trace_array *tr = hist_data->event_file->tr; in hist_field_timestamp()
761 struct trace_array *tr = hist_data->event_file->tr; in find_any_var_ref()
810 struct trace_array *tr = hist_data->event_file->tr; in find_hist_vars()
865 struct trace_array *tr = hist_data->event_file->tr; in save_hist_vars()
889 struct trace_array *tr = hist_data->event_file->tr; in remove_hist_vars()
950 static struct trace_event_file *find_var_file(struct trace_array *tr, in find_var_file()
1005 struct trace_array *tr = hist_data->event_file->tr; in find_match_var()
1040 struct trace_array *tr = hist_data->event_file->tr; in find_event_var()
1258 static int parse_assignment(struct trace_array *tr, in parse_assignment()
[all …]
Dtrace_events_filter.c929 static void append_filter_err(struct trace_array *tr, in append_filter_err()
1052 struct trace_array *tr) in filter_free_subsystem_preds()
1070 struct trace_array *tr) in filter_free_subsystem_filters()
1570 struct trace_array *tr, in process_system_preds()
1712 static int create_filter(struct trace_array *tr, in create_filter()
1736 int create_event_filter(struct trace_array *tr, in create_event_filter()
1831 struct trace_array *tr = dir->tr; in apply_subsystem_event_filter()
Dtrace_kdb.c25 struct trace_array *tr; in ftrace_dump_buf()
Dblktrace.c33 static struct trace_array *blk_tr;
1431 static void blk_tracer_start(struct trace_array *tr) in blk_tracer_start()
1436 static int blk_tracer_init(struct trace_array *tr) in blk_tracer_init()
1443 static void blk_tracer_stop(struct trace_array *tr) in blk_tracer_stop()
1448 static void blk_tracer_reset(struct trace_array *tr) in blk_tracer_reset()
1478 struct trace_array *tr = iter->tr; in print_one_line()
1547 blk_tracer_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in blk_tracer_set_flag()
Dtrace_output.c553 struct trace_array *tr = iter->tr; in lat_print_timestamp()
612 struct trace_array *tr = iter->tr; in trace_print_context()
644 struct trace_array *tr = iter->tr; in trace_print_lat_context()
1126 struct trace_array *tr = iter->tr; in trace_user_stack_print()
Dtrace_eprobe.c637 struct trace_array *tr = eprobe_file->tr; in enable_eprobe()
659 struct trace_array *tr) in disable_eprobe()
/Linux-v5.15/include/linux/
Dtrace.h34 struct trace_array;
38 int trace_array_printk(struct trace_array *tr, unsigned long ip,
40 int trace_array_init_printk(struct trace_array *tr);
41 void trace_array_put(struct trace_array *tr);
42 struct trace_array *trace_array_get_by_name(const char *name);
43 int trace_array_destroy(struct trace_array *tr);
Dtrace_events.h13 struct trace_array;
82 struct trace_array *tr;
628 struct trace_array *tr;
801 int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
803 int trace_array_set_clr_event(struct trace_array *tr, const char *system,
/Linux-v5.15/samples/ftrace/
Dsample-trace-array.c20 struct trace_array *tr;

12