Home
last modified time | relevance | path

Searched refs:tr (Results 1 – 25 of 33) sorted by relevance

12

/kernel/trace/
A Dtrace_irqsoff.c66 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument
172 tr->max_latency = 0; in irqsoff_display_graph()
251 if (is_graph(iter->tr)) in irqsoff_trace_open()
282 if (is_graph(tr)) in irqsoff_print_header()
293 if (is_graph(tr)) in __trace_function()
525 register_irqsoff_function(tr, is_graph(tr), 1); in irqsoff_function_set()
527 unregister_irqsoff_function(tr, is_graph(tr)); in irqsoff_function_set()
593 tr->max_latency = 0; in __irqsoff_tracer_init()
594 irqsoff_trace = tr; in __irqsoff_tracer_init()
601 if (start_irqsoff_tracer(tr, (tr->flags & TRACE_ARRAY_FL_GLOBAL && in __irqsoff_tracer_init()
[all …]
A Dtrace_functions.c72 tr->ops = ops; in ftrace_allocate_ftrace_ops()
80 kfree(tr->ops); in ftrace_free_ftrace_ops()
81 tr->ops = NULL; in ftrace_free_ftrace_ops()
95 if (!tr->ops) in ftrace_create_function_files()
98 ret = allocate_fgraph_ops(tr, tr->ops); in ftrace_create_function_files()
100 kfree(tr->ops); in ftrace_create_function_files()
154 if (!tr->ops) in function_trace_init()
897 if (!tr) in ftrace_trace_onoff_callback()
916 if (!tr) in ftrace_stacktrace_callback()
931 if (!tr) in ftrace_dump_callback()
[all …]
A Dtrace.c648 if (tr && trace_array_get(tr) < 0) in tracing_check_open_get_tr()
4645 iter->tr = tr; in __tracing_open()
6231 tr->current_trace->reset(tr); in tracing_set_nop()
6312 tr->current_trace->reset(tr); in tracing_set_tracer()
6538 iter->tr = tr; in tracing_open_pipe()
7542 iter->tr = tr; in tracing_snapshot_open()
8183 info->iter.tr = tr; in tracing_buffers_open()
9220 topt->tr = tr; in create_trace_option_file()
9639 buf->tr = tr; in allocate_trace_buffer()
9992 if (tr->ref > 1 || (tr->current_trace && tr->trace_ref)) in __remove_instance()
[all …]
A Dtrace_sched_wakeup.c44 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument
110 tr->max_latency = 0; in wakeup_display_graph()
288 register_wakeup_function(tr, is_graph(tr), 1); in wakeup_function_set()
290 unregister_wakeup_function(tr, is_graph(tr)); in wakeup_function_set()
325 if (is_graph(tr)) in __trace_function()
648 wakeup_reset(tr); in start_wakeup_tracer()
659 if (start_func_tracer(tr, is_graph(tr))) in start_wakeup_tracer()
674 stop_func_tracer(tr, is_graph(tr)); in stop_wakeup_tracer()
692 wakeup_trace = tr; in __wakeup_tracer_init()
737 wakeup_reset(tr); in wakeup_tracer_reset()
[all …]
A Dtrace.h212 struct trace_array *tr; member
485 struct trace_array *tr; in top_trace_array() local
491 typeof(*tr), list); in top_trace_array()
493 return tr; in top_trace_array()
579 struct trace_array *tr; member
686 if (tr->array_buffer.buffer) in tracer_tracing_is_on_cpu()
852 struct trace_array *tr);
1213 struct trace_array *tr,
1217 struct trace_array *tr,
1221 struct trace_array *tr,
[all …]
A Dtrace_events.c634 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local
770 struct trace_array *tr = file->tr; in __ftrace_event_enable_disable() local
1394 if (!tr) in ftrace_set_clr_event()
1458 if (!tr) in trace_set_clr_event()
1483 if (!tr) in trace_array_set_clr_event()
1889 struct trace_array *tr = dir->tr; in system_enable_read() local
2237 dir->tr = tr; in system_tr_open()
2835 dir->tr = tr; in event_subsystem_dir()
2979 struct trace_array *tr = file->tr; in event_create_dir() local
3509 file->tr = tr; in trace_create_new_event()
[all …]
A Dtrace_selftest.c425 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
433 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
727 trace->reset(tr); in trace_selftest_startup_function()
1222 trace->stop(tr); in trace_selftest_startup_irqsoff()
1229 trace->reset(tr); in trace_selftest_startup_irqsoff()
1284 trace->stop(tr); in trace_selftest_startup_preemptoff()
1291 trace->reset(tr); in trace_selftest_startup_preemptoff()
1350 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1371 trace->start(tr); in trace_selftest_startup_preemptirqsoff()
1380 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
[all …]
A Dtrace_functions_graph.c413 tr->gops = gops; in allocate_fgraph_ops()
414 gops->private = tr; in allocate_fgraph_ops()
423 kfree(tr->gops); in free_fgraph_ops()
494 graph_trace_reset(tr); in graph_trace_update_thresh()
686 struct trace_array *tr = iter->tr; in print_graph_irq() local
904 struct trace_array *tr = iter->tr; in print_graph_entry_leaf() local
977 struct trace_array *tr = iter->tr; in print_graph_entry_nested() local
1037 struct trace_array *tr = iter->tr; in print_graph_prologue() local
1242 struct trace_array *tr = iter->tr; in print_graph_return() local
1321 struct trace_array *tr = iter->tr; in print_graph_comment() local
[all …]
A Dtrace_boot.c39 if (trace_set_options(tr, buf) < 0) in trace_boot_set_instance_options()
48 tracer_tracing_on(tr); in trace_boot_set_instance_options()
50 tracer_tracing_off(tr); in trace_boot_set_instance_options()
55 if (tracing_set_clock(tr, p) < 0) in trace_boot_set_instance_options()
615 trace_boot_init_events(tr, node); in trace_boot_init_one_instance()
624 struct trace_array *tr; in trace_boot_init_instances() local
637 if (!tr) { in trace_boot_init_instances()
642 trace_array_put(tr); in trace_boot_init_instances()
649 struct trace_array *tr; in trace_boot_init() local
655 tr = top_trace_array(); in trace_boot_init()
[all …]
A Dtrace_hwlat.c300 if (latency > tr->max_latency) { in get_sample()
301 tr->max_latency = latency; in get_sample()
302 latency_fsnotify(tr); in get_sample()
703 hwlat_tracer_stop(tr); in hwlat_mode_write()
717 hwlat_tracer_start(tr); in hwlat_mode_write()
814 err = start_single_kthread(tr); in hwlat_tracer_start()
833 hwlat_trace = tr; in hwlat_tracer_init()
836 tr->max_latency = 0; in hwlat_tracer_init()
843 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init()
844 hwlat_tracer_start(tr); in hwlat_tracer_init()
[all …]
A Dtrace_mmiotrace.c28 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data() argument
33 tracing_reset_online_cpus(&tr->array_buffer); in mmio_reset_data()
36 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init() argument
39 mmio_trace_array = tr; in mmio_trace_init()
41 mmio_reset_data(tr); in mmio_trace_init()
51 mmio_reset_data(tr); in mmio_trace_reset()
58 mmio_reset_data(tr); in mmio_trace_start()
316 struct trace_array *tr = mmio_trace_array; in mmio_trace_rw() local
317 __trace_mmiotrace_rw(tr, rw); in mmio_trace_rw()
343 struct trace_array *tr = mmio_trace_array; in mmio_trace_mapping() local
[all …]
A Dtrace_syscalls.c130 struct trace_array *tr = iter->tr; in print_syscall_enter() local
157 if (tr && tr->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter()
385 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local
397 tr->sys_refcount_enter++; in reg_event_syscall_enter()
406 struct trace_array *tr = file->tr; in unreg_event_syscall_enter() local
413 tr->sys_refcount_enter--; in unreg_event_syscall_enter()
423 struct trace_array *tr = file->tr; in reg_event_syscall_exit() local
431 if (!tr->sys_refcount_exit) in reg_event_syscall_exit()
435 tr->sys_refcount_exit++; in reg_event_syscall_exit()
444 struct trace_array *tr = file->tr; in unreg_event_syscall_exit() local
[all …]
A Dtrace_nop.c37 static void start_nop_trace(struct trace_array *tr) in start_nop_trace() argument
42 static void stop_nop_trace(struct trace_array *tr) in stop_nop_trace() argument
47 static int nop_trace_init(struct trace_array *tr) in nop_trace_init() argument
49 ctx_trace = tr; in nop_trace_init()
50 start_nop_trace(tr); in nop_trace_init()
54 static void nop_trace_reset(struct trace_array *tr) in nop_trace_reset() argument
56 stop_nop_trace(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() argument
A Dftrace.c179 if (tr) { in ftrace_pid_func()
4048 struct trace_array *tr = iter->tr; in t_mod_next() local
4101 struct trace_array *tr = iter->tr; in t_mod_show() local
4641 iter->tr = tr; in ftrace_regex_open()
4647 mod_head = tr ? &tr->mod_notrace : NULL; in ftrace_regex_open()
4650 mod_head = tr ? &tr->mod_trace : NULL; in ftrace_regex_open()
5423 probe->tr = tr; in register_ftrace_function_probe()
7400 if (!tr->ops || !tr->ops->func_hash) in clear_mod_from_hashes()
7788 if (!tr->ops || !tr->ops->func_hash) in clear_func_from_hashes()
8007 init_array_fgraph_ops(tr, tr->ops); in ftrace_init_global_array_ops()
[all …]
A Dtrace_osnoise.c78 struct trace_array *tr; member
100 if (inst->tr == tr) in osnoise_instance_registered()
129 inst->tr = tr; in osnoise_register_instance()
152 if (inst->tr == tr) { in osnoise_unregister_instance()
1170 struct trace_array *tr; in osnoise_stop_exception() local
1174 tr = inst->tr; in osnoise_stop_exception()
1347 tr = inst->tr; in osnoise_stop_tracing()
1385 tr = inst->tr; in notify_new_max_latency()
1386 if (tracer_tracing_is_on(tr) && tr->max_latency < latency) { in notify_new_max_latency()
2978 tr->max_latency = 0; in osnoise_tracer_init()
[all …]
A Dtrace_kdb.c25 struct trace_array *tr; in ftrace_dump_buf() local
29 tr = iter.tr; in ftrace_dump_buf()
31 old_userobj = tr->trace_flags; in ftrace_dump_buf()
34 tr->trace_flags &= ~TRACE_ITER_SYM_USEROBJ; in ftrace_dump_buf()
80 tr->trace_flags = old_userobj; in ftrace_dump_buf()
120 tracer_tracing_disable(iter.tr); in kdb_ftdump()
133 tracer_tracing_enable(iter.tr); in kdb_ftdump()
A Dsynth_event_gen_test.c104 ret = trace_array_set_clr_event(gen_synth_test->tr, in test_gen_synth_cmd()
209 ret = trace_array_set_clr_event(empty_synth_test->tr, in test_empty_synth_event()
281 ret = trace_array_set_clr_event(create_synth_test->tr, in test_create_synth_event()
448 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
458 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
464 WARN_ON(trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init()
482 trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
485 trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init()
488 trace_array_set_clr_event(create_synth_test->tr, in synth_event_gen_test_init()
498 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_exit()
[all …]
A Dtrace_events_hist.c869 struct trace_array *tr = hist_data->event_file->tr; in hist_field_timestamp() local
969 struct trace_array *tr = hist_data->event_file->tr; in find_any_var_ref() local
1018 struct trace_array *tr = hist_data->event_file->tr; in find_hist_vars() local
1073 struct trace_array *tr = hist_data->event_file->tr; in save_hist_vars() local
1097 struct trace_array *tr = hist_data->event_file->tr; in remove_hist_vars() local
1213 struct trace_array *tr = hist_data->event_file->tr; in find_match_var() local
2316 struct trace_array *tr = file->tr; in parse_field() local
3255 struct trace_array *tr = file->tr; in create_field_var() local
3613 struct trace_array *tr = file->tr; in track_data_create() local
4113 struct trace_array *tr = file->tr; in action_create() local
[all …]
A Dtrace_branch.c33 struct trace_array *tr = branch_tracer; in probe_likely_condition() local
51 if (unlikely(!tr)) in probe_likely_condition()
56 if (!tracer_tracing_is_on_cpu(tr, raw_smp_processor_id())) in probe_likely_condition()
60 buffer = tr->array_buffer.buffer; in probe_likely_condition()
96 int enable_branch_tracing(struct trace_array *tr) in enable_branch_tracing() argument
99 branch_tracer = tr; in enable_branch_tracing()
124 static int branch_trace_init(struct trace_array *tr) in branch_trace_init() argument
126 return enable_branch_tracing(tr); in branch_trace_init()
129 static void branch_trace_reset(struct trace_array *tr) in branch_trace_reset() argument
A Dkprobe_event_gen_test.c136 ret = trace_array_set_clr_event(gen_kprobe_test->tr, in test_gen_kprobe_cmd()
201 ret = trace_array_set_clr_event(gen_kretprobe_test->tr, in test_gen_kretprobe_cmd()
229 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_init()
244 WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr, in kprobe_event_gen_test_exit()
258 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_exit()
A Dtrace_output.c571 struct trace_array *tr = iter->tr; in lat_print_timestamp() local
630 struct trace_array *tr = iter->tr; in trace_print_context() local
639 if (tr->trace_flags & TRACE_ITER_RECORD_TGID) { in trace_print_context()
650 if (tr->trace_flags & TRACE_ITER_IRQ_INFO) in trace_print_context()
662 struct trace_array *tr = iter->tr; in trace_print_lat_context() local
947 struct trace_array *tr = iter->tr; in print_fields() local
1035 ip = trace_adjust_address(tr, ip); in print_fields()
1040 addr = trace_adjust_address(tr, addr); in print_fields()
1121 struct trace_array *tr, int flags) in print_fn_trace() argument
1123 ip = trace_adjust_address(tr, ip); in print_fn_trace()
[all …]
A Dtrace_events_trigger.c1261 if (tracer_tracing_is_on(file->tr)) in traceon_trigger()
1264 tracer_tracing_on(file->tr); in traceon_trigger()
1282 if (tracer_tracing_is_on(file->tr)) in traceon_count_trigger()
1296 tracer_tracing_on(file->tr); in traceon_count_trigger()
1309 if (!tracer_tracing_is_on(file->tr)) in traceoff_trigger()
1312 tracer_tracing_off(file->tr); in traceoff_trigger()
1330 if (!tracer_tracing_is_on(file->tr)) in traceoff_count_trigger()
1344 tracer_tracing_off(file->tr); in traceoff_count_trigger()
1468 tracing_disarm_snapshot(file->tr); in register_snapshot_trigger()
1477 tracing_disarm_snapshot(file->tr); in unregister_snapshot_trigger()
[all …]
A Dtrace_events_filter.c1329 struct trace_array *tr) in filter_free_subsystem_preds() argument
1333 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_preds()
1438 struct trace_array *tr, in filter_free_subsystem_filters() argument
1451 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_filters()
1477 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_filters()
2253 struct trace_array *tr, in process_system_preds() argument
2287 append_filter_err(tr, pe, filter); in process_system_preds()
2409 append_filter_err(tr, pe, *filterp); in create_filter()
2446 append_filter_err(dir->tr, pe, *filterp); in create_system_filter()
2508 struct trace_array *tr = dir->tr; in apply_subsystem_event_filter() local
[all …]
A Dtrace_eprobe.c563 ret = create_event_filter(file->tr, ep->event, in new_eprobe_trigger()
587 struct trace_array *tr = eprobe_file->tr; in enable_eprobe() local
589 file = find_event_file(tr, ep->event_system, ep->event_name); in enable_eprobe()
609 struct trace_array *tr) in disable_eprobe() argument
616 file = find_event_file(tr, ep->event_system, ep->event_name); in disable_eprobe()
693 disable_eprobe(ep, file->tr); in enable_trace_eprobe()
728 disable_eprobe(ep, file->tr); in disable_trace_eprobe()
/kernel/bpf/
A Dtrampoline.c152 tr = kzalloc(sizeof(*tr), GFP_KERNEL); in bpf_trampoline_lookup()
153 if (!tr) in bpf_trampoline_lookup()
158 kfree(tr); in bpf_trampoline_lookup()
159 tr = NULL; in bpf_trampoline_lookup()
162 tr->fops->private = tr; in bpf_trampoline_lookup()
175 return tr; in bpf_trampoline_lookup()
411 err = unregister_fentry(tr, tr->cur_image->image); in bpf_trampoline_update()
459 &tr->func.model, tr->flags, tlinks, in bpf_trampoline_update()
751 if (!tr) in bpf_trampoline_link_cgroup_shim()
828 if (!tr) in bpf_trampoline_get()
[all …]

Completed in 148 milliseconds

12