Home
last modified time | relevance | path

Searched refs:array_buffer (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/kernel/trace/
Dtrace_selftest.c26 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 …]
Dtrace_kdb.c46 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()
Dtrace.c767 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 …]
Dtrace_sched_wakeup.c85 *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()
Dtrace_mmiotrace.c33 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()
Dtrace_functions.c152 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()
Dtrace_irqsoff.c125 *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()
Dtrace_functions_graph.c103 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()
Dtrace_branch.c58 data = this_cpu_ptr(tr->array_buffer.data); in probe_likely_condition()
63 buffer = tr->array_buffer.buffer; in probe_likely_condition()
Dtrace.h183 struct array_buffer { struct
295 struct array_buffer array_buffer; member
308 struct array_buffer max_buffer;
579 void tracing_reset_online_cpus(struct array_buffer *buf);
986 return this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid) != in ftrace_trace_task()
Dtrace_osnoise.c459 buffer = inst->tr->array_buffer.buffer; \
504 buffer = inst->tr->array_buffer.buffer; in trace_osnoise_sample()
578 buffer = inst->tr->array_buffer.buffer; in trace_timerlat_sample()
667 buffer = inst->tr->array_buffer.buffer; in timerlat_dump_stack()
1254 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, in osnoise_stop_tracing()
Dtrace_hwlat.c134 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample()
191 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, msg); \
Dtrace_events.c472 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()
Dtrace_events_synth.c485 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()
Dblktrace.c81 buffer = blk_tr->array_buffer.buffer; in trace_note()
256 buffer = blk_tr->array_buffer.buffer; in __blk_add_trace()
Dftrace.c146 pid = this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid); in ftrace_pid_func()
7651 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ftrace_filter_pid_sched_switch_probe()
7654 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ftrace_filter_pid_sched_switch_probe()
7720 per_cpu_ptr(tr->array_buffer.data, cpu)->ftrace_ignore_pid = FTRACE_PID_TRACE; in clear_ftrace_pids()
7919 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ignore_task_cpu()
7922 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ignore_task_cpu()
Dtrace_output.c551 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp()
/linux-6.1.9/include/linux/
Dtrace_events.h14 struct array_buffer;
85 struct array_buffer *array_buffer; member