Lines Matching refs:iter
22 static struct trace_iterator iter; in ftrace_dump_buf() local
28 trace_init_global_iter(&iter); in ftrace_dump_buf()
29 iter.buffer_iter = buffer_iter; in ftrace_dump_buf()
30 tr = iter.tr; in ftrace_dump_buf()
33 atomic_inc(&per_cpu_ptr(iter.trace_buffer->data, cpu)->disabled); in ftrace_dump_buf()
43 trace_iterator_reset(&iter); in ftrace_dump_buf()
44 iter.iter_flags |= TRACE_FILE_LAT_FMT; in ftrace_dump_buf()
48 iter.buffer_iter[cpu] = in ftrace_dump_buf()
49 ring_buffer_read_prepare(iter.trace_buffer->buffer, in ftrace_dump_buf()
51 ring_buffer_read_start(iter.buffer_iter[cpu]); in ftrace_dump_buf()
52 tracing_iter_reset(&iter, cpu); in ftrace_dump_buf()
55 iter.cpu_file = cpu_file; in ftrace_dump_buf()
56 iter.buffer_iter[cpu_file] = in ftrace_dump_buf()
57 ring_buffer_read_prepare(iter.trace_buffer->buffer, in ftrace_dump_buf()
59 ring_buffer_read_start(iter.buffer_iter[cpu_file]); in ftrace_dump_buf()
60 tracing_iter_reset(&iter, cpu_file); in ftrace_dump_buf()
63 while (trace_find_next_entry_inc(&iter)) { in ftrace_dump_buf()
69 print_trace_line(&iter); in ftrace_dump_buf()
70 trace_printk_seq(&iter.seq); in ftrace_dump_buf()
88 atomic_dec(&per_cpu_ptr(iter.trace_buffer->data, cpu)->disabled); in ftrace_dump_buf()
92 if (iter.buffer_iter[cpu]) { in ftrace_dump_buf()
93 ring_buffer_read_finish(iter.buffer_iter[cpu]); in ftrace_dump_buf()
94 iter.buffer_iter[cpu] = NULL; in ftrace_dump_buf()