Lines Matching refs:max_tr
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.
207 * When a snapshot is taken, the link list of the max_tr is swapped
211 static struct trace_array max_tr;
623 max_tr.cpu = cpu;
624 max_tr.time_start = data->preempt_timestamp;
626 max_data = max_tr.data[cpu];
643 * update_max_tr - snapshot all trace buffers from global_trace to max_tr
648 * Flip the buffers between the @tr and the max_tr and record information
666 tr->buffer = max_tr.buffer;
667 max_tr.buffer = buf;
679 * Flip the trace of a single CPU buffer between the @tr and the max_tr.
699 ret = ring_buffer_swap_cpu(max_tr.buffer, tr->buffer, cpu);
708 trace_array_printk(&max_tr, _THIS_IP_,
971 buffer = max_tr.buffer;
1005 buffer = max_tr.buffer;
2123 iter->tr = &max_tr;
2757 ret = ring_buffer_resize(max_tr.buffer, size);
2784 max_tr.entries = size;
2855 * The max_tr ring buffer has some state (e.g. ring->clock) and
2858 ring_buffer_resize(max_tr.buffer, 1);
2859 max_tr.entries = 1;
2867 ret = ring_buffer_resize(max_tr.buffer, global_trace.entries);
2870 max_tr.entries = global_trace.entries;
3425 if (max_tr.data[cpu])
3426 atomic_inc(&max_tr.data[cpu]->disabled);
3449 if (max_tr.data[cpu])
3450 atomic_dec(&max_tr.data[cpu]->disabled);
3550 if (max_tr.buffer)
3551 ring_buffer_set_clock(max_tr.buffer, trace_clocks[i].func);
4572 max_tr.buffer = ring_buffer_alloc(1, TRACE_BUFFER_FLAGS);
4573 if (!max_tr.buffer) {
4579 max_tr.entries = 1;
4585 max_tr.data[i] = &per_cpu(max_tr_data, i);