/Linux-v6.1/kernel/trace/ |
D | trace_selftest.c | 26 static int trace_test_buffer_cpu(struct array_buffer *buf, int cpu) in trace_test_buffer_cpu() 63 static int __maybe_unused trace_test_buffer(struct array_buffer *buf, unsigned long *count) in trace_test_buffer() 396 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing() 417 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing() 723 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function() 814 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph() 836 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph() 851 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph() 883 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph() 946 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_irqsoff() [all …]
|
D | trace.c | 767 static u64 buffer_ftrace_now(struct array_buffer *buf, int cpu) in buffer_ftrace_now() 783 return buffer_ftrace_now(&global_trace.array_buffer, cpu); in ftrace_now() 960 if (tr->array_buffer.buffer) in tracer_tracing_on() 961 ring_buffer_record_on(tr->array_buffer.buffer); in tracer_tracing_on() 1028 buffer = global_trace.array_buffer.buffer; in __trace_puts() 1078 buffer = global_trace.array_buffer.buffer; in __trace_bputs() 1209 static int resize_buffer_duplicate_size(struct array_buffer *trace_buf, 1210 struct array_buffer *size_buf, int cpu_id); 1211 static void set_buffer_entries(struct array_buffer *buf, unsigned long val); 1221 &tr->array_buffer, RING_BUFFER_ALL_CPUS); in tracing_alloc_snapshot_instance() [all …]
|
D | trace_kdb.c | 46 ring_buffer_read_prepare(iter.array_buffer->buffer, in ftrace_dump_buf() 54 ring_buffer_read_prepare(iter.array_buffer->buffer, in ftrace_dump_buf() 127 atomic_inc(&per_cpu_ptr(iter.array_buffer->data, cpu)->disabled); in kdb_ftdump() 142 atomic_dec(&per_cpu_ptr(iter.array_buffer->data, cpu)->disabled); in kdb_ftdump()
|
D | trace_sched_wakeup.c | 85 *data = per_cpu_ptr(tr->array_buffer.data, cpu); in func_prolog_preempt_disable() 378 struct trace_buffer *buffer = tr->array_buffer.buffer; in tracing_sched_switch_trace() 408 struct trace_buffer *buffer = tr->array_buffer.buffer; in tracing_sched_wakeup_trace() 458 disabled = atomic_inc_return(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup_sched_switch() 472 data = per_cpu_ptr(wakeup_trace->array_buffer.data, wakeup_cpu); in probe_wakeup_sched_switch() 495 atomic_dec(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup_sched_switch() 514 tracing_reset_online_cpus(&tr->array_buffer); in wakeup_reset() 550 disabled = atomic_inc_return(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup() 582 data = per_cpu_ptr(wakeup_trace->array_buffer.data, wakeup_cpu); in probe_wakeup() 597 atomic_dec(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup()
|
D | trace_mmiotrace.c | 33 tracing_reset_online_cpus(&tr->array_buffer); in mmio_reset_data() 123 unsigned long over = ring_buffer_overruns(iter->array_buffer->buffer); in count_overruns() 298 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_mmiotrace_rw() 320 struct trace_array_cpu *data = per_cpu_ptr(tr->array_buffer.data, smp_processor_id()); in mmio_trace_rw() 329 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_mmiotrace_map() 354 data = per_cpu_ptr(tr->array_buffer.data, smp_processor_id()); in mmio_trace_mapping()
|
D | trace_functions.c | 152 tr->array_buffer.cpu = raw_smp_processor_id(); in function_trace_init() 168 tracing_reset_online_cpus(&tr->array_buffer); in function_trace_start() 191 data = per_cpu_ptr(tr->array_buffer.data, cpu); in function_trace_call() 236 data = per_cpu_ptr(tr->array_buffer.data, cpu); in function_stack_trace_call() 257 ring_buffer_time_stamp(tr->array_buffer.buffer); in is_repeat_check() 300 data = per_cpu_ptr(tr->array_buffer.data, cpu); in function_no_repeats_trace_call() 347 data = per_cpu_ptr(tr->array_buffer.data, cpu); in function_stack_no_repeats_trace_call()
|
D | trace_irqsoff.c | 125 *data = per_cpu_ptr(tr->array_buffer.data, cpu); in func_prolog_dec() 173 tracing_reset_online_cpus(&irqsoff_trace->array_buffer); in irqsoff_display_graph() 385 data = per_cpu_ptr(tr->array_buffer.data, cpu); in start_critical_timing() 421 data = per_cpu_ptr(tr->array_buffer.data, cpu); in stop_critical_timing()
|
D | trace_functions_graph.c | 103 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry() 173 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry() 222 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return() 253 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_return() 445 ring_buffer_consume(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf() 447 event = ring_buffer_peek(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf() 504 usecs = iter->ts - iter->array_buffer->time_start; in print_graph_rel_time()
|
D | trace_branch.c | 58 data = this_cpu_ptr(tr->array_buffer.data); in probe_likely_condition() 63 buffer = tr->array_buffer.buffer; in probe_likely_condition()
|
D | trace.h | 183 struct array_buffer { struct 295 struct array_buffer array_buffer; member 308 struct array_buffer max_buffer; 580 void tracing_reset_online_cpus(struct array_buffer *buf); 988 return this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid) != in ftrace_trace_task()
|
D | trace_osnoise.c | 460 buffer = inst->tr->array_buffer.buffer; \ 505 buffer = inst->tr->array_buffer.buffer; in trace_osnoise_sample() 579 buffer = inst->tr->array_buffer.buffer; in trace_timerlat_sample() 668 buffer = inst->tr->array_buffer.buffer; in timerlat_dump_stack() 1255 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, in osnoise_stop_tracing()
|
D | trace_hwlat.c | 134 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample() 191 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, msg); \
|
D | trace_events.c | 472 data = this_cpu_ptr(tr->array_buffer.data); in trace_event_ignore_this_pid() 797 this_cpu_write(tr->array_buffer.data->ignore_pid, ret || in event_filter_pid_sched_switch_probe_pre() 815 this_cpu_write(tr->array_buffer.data->ignore_pid, in event_filter_pid_sched_switch_probe_post() 827 if (!this_cpu_read(tr->array_buffer.data->ignore_pid)) in event_filter_pid_sched_wakeup_probe_pre() 833 this_cpu_write(tr->array_buffer.data->ignore_pid, in event_filter_pid_sched_wakeup_probe_pre() 845 if (this_cpu_read(tr->array_buffer.data->ignore_pid)) in event_filter_pid_sched_wakeup_probe_post() 852 this_cpu_write(tr->array_buffer.data->ignore_pid, in event_filter_pid_sched_wakeup_probe_post() 895 per_cpu_ptr(tr->array_buffer.data, cpu)->ignore_pid = false; in __ftrace_clear_event_pids() 1908 this_cpu_write(tr->array_buffer.data->ignore_pid, in ignore_task_cpu()
|
D | blktrace.c | 81 buffer = blk_tr->array_buffer.buffer; in trace_note() 256 buffer = blk_tr->array_buffer.buffer; in __blk_add_trace()
|
D | trace_events_synth.c | 485 buffer = trace_file->tr->array_buffer.buffer; in trace_event_raw_event_synth() 1598 trace_state->buffer = file->tr->array_buffer.buffer; in __synth_event_trace_start()
|
D | ftrace.c | 146 pid = this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid); in ftrace_pid_func() 7630 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ftrace_filter_pid_sched_switch_probe() 7633 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ftrace_filter_pid_sched_switch_probe() 7699 per_cpu_ptr(tr->array_buffer.data, cpu)->ftrace_ignore_pid = FTRACE_PID_TRACE; in clear_ftrace_pids() 7898 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ignore_task_cpu() 7901 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ignore_task_cpu()
|
D | trace_output.c | 551 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp()
|
/Linux-v6.1/include/linux/ |
D | trace_events.h | 14 struct array_buffer; 85 struct array_buffer *array_buffer; member
|