/linux/kernel/trace/ |
H A D | trace.h | 177 struct trace_array; 212 struct trace_array *tr; 259 typedef bool (*cond_update_fn_t)(struct trace_array *tr, void *cond_data); 320 struct trace_array { struct 454 extern int trace_array_get(struct trace_array *tr); argument 455 extern int tracing_check_open_get_tr(struct trace_array *tr); 456 extern struct trace_array *trace_array_find(const char *instance); 457 extern struct trace_array *trace_array_find_get(const char *instance); 460 extern int tracing_set_filter_buffering(struct trace_array *tr, bool set); 461 extern int tracing_set_clock(struct trace_array *tr, const char *clockstr); [all …]
|
H A D | trace_irqsoff.c | 24 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() 182 struct trace_array *tr = irqsoff_trace; in irqsoff_graph_entry() 221 struct trace_array *tr = irqsoff_trace; in irqsoff_graph_return() [all …]
|
H A D | trace_sched_wakeup.c | 22 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() 119 struct trace_array *tr = wakeup_trace; in wakeup_graph_entry() 157 struct trace_array *tr = wakeup_trace; in wakeup_graph_return() 236 struct trace_array *tr = wakeup_trace; in wakeup_tracer_call() [all …]
|
H A D | trace_functions.c | 22 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() 105 void ftrace_destroy_function_files(struct trace_array *tr) in ftrace_destroy_function_files() 128 static bool handle_func_repeats(struct trace_array *tr, u32 flags_val) in handle_func_repeats() 140 static int function_trace_init(struct trace_array *tr) in function_trace_init() 167 static void function_trace_reset(struct trace_array *tr) in function_trace_reset() 174 static void function_trace_start(struct trace_array *tr) in function_trace_start() [all …]
|
H A D | trace_nop.c | 35 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()
|
H A D | trace.c | 98 dummy_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in dummy_set_flag() 180 int tracing_set_tracer(struct trace_array *tr, const char *buf); 181 static void ftrace_trace_userstack(struct trace_array *tr, 500 static struct trace_array global_trace = { 504 static struct trace_array *printk_trace = &global_trace; 506 static __always_inline bool printk_binsafe(struct trace_array *tr) in printk_binsafe() 517 static void update_printk_trace(struct trace_array *tr) in update_printk_trace() 527 void trace_set_ring_buffer_expanded(struct trace_array *tr) in trace_set_ring_buffer_expanded() 536 int trace_array_get(struct trace_array *this_tr) in trace_array_get() 538 struct trace_array *tr; in trace_array_get() [all …]
|
H A D | trace_hwlat.c | 48 static struct trace_array *hwlat_trace; 132 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() 187 struct trace_array *tr = hwlat_trace; \ 202 struct trace_array *tr = hwlat_trace; in get_sample() 315 struct trace_array *tr = hwlat_trace; in move_to_next_cpu() 419 static int start_single_kthread(struct trace_array *tr) in start_single_kthread() 511 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() 662 static void hwlat_tracer_start(struct trace_array *tr); 663 static void hwlat_tracer_stop(struct trace_array *tr); [all …]
|
H A D | trace_events.c | 617 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() 707 struct trace_array *tr; in trace_event_enable_cmd_record() 729 struct trace_array *tr; in trace_event_enable_tgid_record() 752 struct trace_array *tr = file->tr; in __ftrace_event_enable_disable() 891 static void clear_mod_events(struct trace_array *tr) in clear_mod_events() 900 static int remove_cache_mod(struct trace_array *tr, const char *mod, in remove_cache_mod() 928 static int cache_mod(struct trace_array *tr, const char *mod, int set, in cache_mod() 978 static inline void clear_mod_events(struct trace_array *tr) { } in clear_mod_events() 979 static int cache_mod(struct trace_array *tr, const char *mod, int set, in cache_mod() 986 static void ftrace_clear_events(struct trace_array *tr) in ftrace_clear_events() [all …]
|
H A D | trace_mmiotrace.c | 23 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() 317 struct trace_array *tr = mmio_trace_array; in mmio_trace_rw() 322 static void __trace_mmiotrace_map(struct trace_array *tr, in __trace_mmiotrace_map() 346 struct trace_array *tr = mmio_trace_array; in mmio_trace_mapping()
|
H A D | trace_functions_graph.c | 110 print_graph_duration(struct trace_array *tr, unsigned long long duration, 113 int __trace_graph_entry(struct trace_array *tr, in __trace_graph_entry() 133 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() 155 int __trace_graph_retaddr_entry(struct trace_array *tr, in __trace_graph_retaddr_entry() 182 struct trace_array *tr = gops->private; in trace_graph_entry() 258 __trace_graph_function(struct trace_array *tr, in __trace_graph_function() 276 trace_graph_function(struct trace_array *tr, in trace_graph_function() 283 void __trace_graph_return(struct trace_array *tr, in __trace_graph_return() 317 struct trace_array *tr = gops->private; in trace_graph_return() 386 int allocate_fgraph_ops(struct trace_array *tr, struct ftrace_ops *ops) in allocate_fgraph_ops() [all …]
|
H A D | trace_boot.c | 25 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() 462 trace_boot_init_one_event(struct trace_array *tr, struct xbc_node *gnode, in trace_boot_init_one_event() 518 trace_boot_init_events(struct trace_array *tr, struct xbc_node *node) in trace_boot_init_events() 560 trace_boot_set_ftrace_filter(struct trace_array *tr, struct xbc_node *node) in trace_boot_set_ftrace_filter() 592 trace_boot_enable_tracer(struct trace_array *tr, struct xbc_node *node) in trace_boot_enable_tracer() 612 trace_boot_init_one_instance(struct trace_array *tr, struct xbc_node *node) in trace_boot_init_one_instance() 624 struct trace_array *tr; in trace_boot_init_instances() 649 struct trace_array *tr; in trace_boot_init()
|
H A D | trace_branch.c | 28 static struct trace_array *branch_tracer; 33 struct trace_array *tr = branch_tracer; in probe_likely_condition() 98 int enable_branch_tracing(struct trace_array *tr) in enable_branch_tracing() 126 static int branch_trace_init(struct trace_array *tr) in branch_trace_init() 131 static void branch_trace_reset(struct trace_array *tr) in branch_trace_reset()
|
H A D | trace_syscalls.c | 130 struct trace_array *tr = iter->tr; in print_syscall_enter() 293 struct trace_array *tr = data; in ftrace_syscall_enter() 341 struct trace_array *tr = data; in ftrace_syscall_exit() 385 struct trace_array *tr = file->tr; in reg_event_syscall_enter() 406 struct trace_array *tr = file->tr; in unreg_event_syscall_enter() 423 struct trace_array *tr = file->tr; in reg_event_syscall_exit() 444 struct trace_array *tr = file->tr; in unreg_event_syscall_exit()
|
H A D | trace_osnoise.c | 78 struct trace_array *tr; 93 static int osnoise_instance_registered(struct trace_array *tr) in osnoise_instance_registered() 114 static int osnoise_register_instance(struct trace_array *tr) in osnoise_register_instance() 141 static void osnoise_unregister_instance(struct trace_array *tr) in osnoise_unregister_instance() 1193 struct trace_array *tr; in osnoise_stop_exception() 1366 struct trace_array *tr; in osnoise_stop_tracing() 1404 struct trace_array *tr; in notify_new_max_latency() 2972 static void osnoise_tracer_start(struct trace_array *tr) in osnoise_tracer_start() 2990 static void osnoise_tracer_stop(struct trace_array *tr) in osnoise_tracer_stop() 2996 static int osnoise_tracer_init(struct trace_array *tr) in osnoise_tracer_init() [all …]
|
H A D | ftrace.c | 105 struct trace_array *tr; in ftrace_pids_enabled() 176 struct trace_array *tr = op->private; in ftrace_pid_func() 1052 struct trace_array *tr; 1324 static int ftrace_add_mod(struct trace_array *tr, in ftrace_add_mod() 3858 struct trace_array *tr; 3869 struct trace_array *tr = iter->ops->private; in t_probe_next() 4000 struct trace_array *tr = iter->tr; in t_mod_next() 4053 struct trace_array *tr = iter->tr; in t_mod_show() 4535 struct trace_array *tr = ops->private; in ftrace_regex_open() 4919 static int cache_mod(struct trace_array *tr, in cache_mod() [all …]
|
H A D | trace_events_hist.c | 801 static void hist_err(struct trace_array *tr, u8 err_type, u16 err_pos) in hist_err() 867 struct trace_array *tr = hist_data->event_file->tr; in hist_field_timestamp() 958 struct trace_array *tr = hist_data->event_file->tr; in find_any_var_ref() 1007 struct trace_array *tr = hist_data->event_file->tr; in find_hist_vars() 1062 struct trace_array *tr = hist_data->event_file->tr; in save_hist_vars() 1086 struct trace_array *tr = hist_data->event_file->tr; in remove_hist_vars() 1147 static struct trace_event_file *find_var_file(struct trace_array *tr, in find_var_file() 1202 struct trace_array *tr = hist_data->event_file->tr; in find_match_var() 1237 struct trace_array *tr = hist_data->event_file->tr; in find_event_var() 1456 static int parse_assignment(struct trace_array *tr, in parse_assignment() [all …]
|
H A D | blktrace.c | 33 static struct trace_array *blk_tr; 1425 static void blk_tracer_start(struct trace_array *tr) 1430 static int blk_tracer_init(struct trace_array *tr) in blk_tracer_print_header() 1437 static void blk_tracer_stop(struct trace_array *tr) 1442 static void blk_tracer_reset(struct trace_array *tr) 1472 struct trace_array *tr = iter->tr; 1542 blk_tracer_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in blk_trace_event_print_binary()
|
H A D | trace_events_filter.c | 1204 static void append_filter_err(struct trace_array *tr, in append_filter_err() 1327 struct trace_array *tr) in filter_free_subsystem_preds() 1345 struct trace_array *tr) in filter_free_subsystem_filters() 2140 struct trace_array *tr, in process_system_preds() 2282 static int create_filter(struct trace_array *tr, in create_filter() 2306 int create_event_filter(struct trace_array *tr, in create_event_filter() 2404 struct trace_array *tr = dir->tr; in apply_subsystem_event_filter()
|
H A D | trace_output.c | 566 struct trace_array *tr = iter->tr; in lat_print_timestamp() 625 struct trace_array *tr = iter->tr; in trace_print_context() 657 struct trace_array *tr = iter->tr; in trace_print_lat_context() 1288 struct trace_array *tr = iter->tr; in trace_user_stack_print()
|
H A D | trace_eprobe.c | 581 struct trace_array *tr = eprobe_file->tr; in enable_eprobe() 603 struct trace_array *tr) in disable_eprobe()
|
H A D | trace_events_trigger.c | 486 clear_event_triggers(struct trace_array *tr) in clear_event_triggers() 1749 struct trace_array *tr = file->tr; in event_enable_trigger_parse()
|
H A D | trace_kprobe.c | 1960 struct trace_array *tr = top_trace_array(); in enable_boot_kprobe_events() 2040 find_trace_probe_file(struct trace_kprobe *tk, struct trace_array *tr) in find_trace_probe_file()
|
/linux/include/linux/ |
H A D | trace.h | 29 struct trace_array; 45 int __trace_array_puts(struct trace_array *tr, unsigned long ip, 50 int trace_array_printk(struct trace_array *tr, unsigned long ip, 52 int trace_array_init_printk(struct trace_array *tr); 53 void trace_array_put(struct trace_array *tr); 54 struct trace_array *trace_array_get_by_name(const char *name, const char *systems); 55 int trace_array_destroy(struct trace_array *tr); 75 static inline int trace_array_printk(struct trace_array *tr, unsigned long ip, in trace_array_printk() 80 static inline int trace_array_init_printk(struct trace_array *tr) in trace_array_init_printk() 84 static inline void trace_array_put(struct trace_array *tr) in trace_array_put() [all …]
|
H A D | trace_events.h | 13 struct trace_array; 97 struct trace_array *tr; 650 struct trace_array *tr; 858 int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set); 860 int trace_array_set_clr_event(struct trace_array *tr, const char *system,
|
/linux/samples/ftrace/ |
H A D | sample-trace-array.c | 20 struct trace_array *tr;
|