Lines Matching refs:global_trace
164 * The global_trace is the descriptor that holds the tracing
175 static struct trace_array global_trace;
192 if (!global_trace.buffer)
195 ts = ring_buffer_time_stamp(global_trace.buffer, cpu);
196 ring_buffer_normalize_time_stamp(global_trace.buffer, cpu, &ts);
202 * The max_tr is used to snapshot the global_trace when a maximum
206 * The buffers for the max_tr are set up the same as the global_trace.
208 * with the link list of the global_trace and the buffers are reset for
209 * the global_trace so the tracing can continue.
643 * update_max_tr - snapshot all trace buffers from global_trace to max_tr
772 struct trace_array *tr = &global_trace;
847 current_trace->stop(&global_trace);
894 tracing_reset(&global_trace, cpu);
899 tracing_reset_online_cpus(&global_trace);
967 buffer = global_trace.buffer;
1001 buffer = global_trace.buffer;
1165 *current_rb = global_trace.buffer;
1284 __ftrace_trace_stack(global_trace.buffer, flags, 3, preempt_count());
1346 struct trace_array *tr = &global_trace;
1481 return trace_array_vprintk(&global_trace, ip, fmt, args);
2125 iter->tr = &global_trace;
2240 tracing_reset_online_cpus(&global_trace);
2242 tracing_reset(&global_trace, cpu);
2410 atomic_inc(&global_trace.data[cpu]->disabled);
2414 atomic_dec(&global_trace.data[cpu]->disabled);
2750 ret = ring_buffer_resize(global_trace.buffer, size);
2761 r = ring_buffer_resize(global_trace.buffer,
2762 global_trace.entries);
2786 global_trace.entries = size;
2825 struct trace_array *tr = &global_trace;
2867 ret = ring_buffer_resize(max_tr.buffer, global_trace.entries);
2870 max_tr.entries = global_trace.entries;
3001 iter->tr = &global_trace;
3423 if (global_trace.data[cpu])
3424 atomic_inc(&global_trace.data[cpu]->disabled);
3432 if (val != global_trace.entries) {
3447 if (global_trace.data[cpu])
3448 atomic_dec(&global_trace.data[cpu]->disabled);
3549 ring_buffer_set_clock(global_trace.buffer, trace_clocks[i].func);
3637 info->tr = &global_trace;
3884 struct trace_array *tr = &global_trace;
4299 &global_trace, &tracing_ctrl_fops);
4311 &global_trace, &show_traces_fops);
4314 &global_trace, &set_tracer_fops);
4331 &global_trace, &tracing_entries_fops);
4419 iter->tr = &global_trace;
4461 iter.tr = &global_trace;
4561 global_trace.buffer = ring_buffer_alloc(ring_buf_size,
4563 if (!global_trace.buffer) {
4568 global_trace.entries = ring_buffer_size(global_trace.buffer);
4576 ring_buffer_free(global_trace.buffer);
4584 global_trace.data[i] = &per_cpu(global_trace_cpu, i);