Home
last modified time | relevance | path

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

/linux-6.6.21/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()
857 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph()
892 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph()
958 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.c808 static u64 buffer_ftrace_now(struct array_buffer *buf, int cpu) in buffer_ftrace_now()
824 return buffer_ftrace_now(&global_trace.array_buffer, cpu); in ftrace_now()
1001 if (tr->array_buffer.buffer) in tracer_tracing_on()
1002 ring_buffer_record_on(tr->array_buffer.buffer); in tracer_tracing_on()
1067 buffer = tr->array_buffer.buffer; in __trace_array_puts()
1129 buffer = global_trace.array_buffer.buffer; in __trace_bputs()
1260 static int resize_buffer_duplicate_size(struct array_buffer *trace_buf,
1261 struct array_buffer *size_buf, int cpu_id);
1262 static void set_buffer_entries(struct array_buffer *buf, unsigned long val);
1272 &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()
380 struct trace_buffer *buffer = tr->array_buffer.buffer; in tracing_sched_switch_trace()
410 struct trace_buffer *buffer = tr->array_buffer.buffer; in tracing_sched_wakeup_trace()
460 disabled = atomic_inc_return(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup_sched_switch()
474 data = per_cpu_ptr(wakeup_trace->array_buffer.data, wakeup_cpu); in probe_wakeup_sched_switch()
497 atomic_dec(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup_sched_switch()
516 tracing_reset_online_cpus(&tr->array_buffer); in wakeup_reset()
552 disabled = atomic_inc_return(&per_cpu_ptr(wakeup_trace->array_buffer.data, cpu)->disabled); in probe_wakeup()
584 data = per_cpu_ptr(wakeup_trace->array_buffer.data, wakeup_cpu); in probe_wakeup()
599 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()
386 data = per_cpu_ptr(tr->array_buffer.data, cpu); in start_critical_timing()
422 data = per_cpu_ptr(tr->array_buffer.data, cpu); in stop_critical_timing()
Dtrace_functions_graph.c109 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry()
179 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_entry()
228 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return()
259 data = per_cpu_ptr(tr->array_buffer.data, cpu); in trace_graph_return()
451 ring_buffer_consume(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf()
453 event = ring_buffer_peek(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf()
510 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.h210 struct array_buffer { struct
322 struct array_buffer array_buffer; member
335 struct array_buffer max_buffer;
608 void tracing_reset_online_cpus(struct array_buffer *buf);
1019 return this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid) != in ftrace_trace_task()
Dtrace_osnoise.c483 buffer = inst->tr->array_buffer.buffer; \
528 buffer = inst->tr->array_buffer.buffer; in trace_osnoise_sample()
602 buffer = inst->tr->array_buffer.buffer; in trace_timerlat_sample()
691 buffer = inst->tr->array_buffer.buffer; in timerlat_dump_stack()
1198 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, in osnoise_stop_exception()
1360 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.c489 data = this_cpu_ptr(tr->array_buffer.data); in trace_event_ignore_this_pid()
808 this_cpu_write(tr->array_buffer.data->ignore_pid, ret || in event_filter_pid_sched_switch_probe_pre()
826 this_cpu_write(tr->array_buffer.data->ignore_pid, in event_filter_pid_sched_switch_probe_post()
838 if (!this_cpu_read(tr->array_buffer.data->ignore_pid)) in event_filter_pid_sched_wakeup_probe_pre()
844 this_cpu_write(tr->array_buffer.data->ignore_pid, in event_filter_pid_sched_wakeup_probe_pre()
856 if (this_cpu_read(tr->array_buffer.data->ignore_pid)) in event_filter_pid_sched_wakeup_probe_post()
863 this_cpu_write(tr->array_buffer.data->ignore_pid, in event_filter_pid_sched_wakeup_probe_post()
906 per_cpu_ptr(tr->array_buffer.data, cpu)->ignore_pid = false; in __ftrace_clear_event_pids()
1933 this_cpu_write(tr->array_buffer.data->ignore_pid, in ignore_task_cpu()
Dblktrace.c81 buffer = blk_tr->array_buffer.buffer; in trace_note()
256 buffer = blk_tr->array_buffer.buffer; in __blk_add_trace()
Dftrace.c177 pid = this_cpu_read(tr->array_buffer.data->ftrace_ignore_pid); in ftrace_pid_func()
7475 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ftrace_filter_pid_sched_switch_probe()
7478 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ftrace_filter_pid_sched_switch_probe()
7544 per_cpu_ptr(tr->array_buffer.data, cpu)->ftrace_ignore_pid = FTRACE_PID_TRACE; in clear_ftrace_pids()
7743 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ignore_task_cpu()
7746 this_cpu_write(tr->array_buffer.data->ftrace_ignore_pid, in ignore_task_cpu()
Dtrace_events_synth.c546 buffer = trace_file->tr->array_buffer.buffer; in trace_event_raw_event_synth()
1672 trace_state->buffer = file->tr->array_buffer.buffer; in __synth_event_trace_start()
Dtrace_output.c554 unsigned long long abs_ts = iter->ts - iter->array_buffer->time_start; in lat_print_timestamp()
/linux-6.6.21/include/linux/
Dtrace_events.h14 struct array_buffer;
96 struct array_buffer *array_buffer; member