Lines Matching refs:iter
20 static struct trace_iterator iter; variable
29 tr = iter.tr; in ftrace_dump_buf()
40 trace_iterator_reset(&iter); in ftrace_dump_buf()
41 iter.iter_flags |= TRACE_FILE_LAT_FMT; in ftrace_dump_buf()
45 iter.buffer_iter[cpu] = in ftrace_dump_buf()
46 ring_buffer_read_prepare(iter.array_buffer->buffer, in ftrace_dump_buf()
48 ring_buffer_read_start(iter.buffer_iter[cpu]); in ftrace_dump_buf()
49 tracing_iter_reset(&iter, cpu); in ftrace_dump_buf()
52 iter.cpu_file = cpu_file; in ftrace_dump_buf()
53 iter.buffer_iter[cpu_file] = in ftrace_dump_buf()
54 ring_buffer_read_prepare(iter.array_buffer->buffer, in ftrace_dump_buf()
56 ring_buffer_read_start(iter.buffer_iter[cpu_file]); in ftrace_dump_buf()
57 tracing_iter_reset(&iter, cpu_file); in ftrace_dump_buf()
60 while (trace_find_next_entry_inc(&iter)) { in ftrace_dump_buf()
66 print_trace_line(&iter); in ftrace_dump_buf()
67 trace_printk_seq(&iter.seq); in ftrace_dump_buf()
85 if (iter.buffer_iter[cpu]) { in ftrace_dump_buf()
86 ring_buffer_read_finish(iter.buffer_iter[cpu]); in ftrace_dump_buf()
87 iter.buffer_iter[cpu] = NULL; in ftrace_dump_buf()
123 trace_init_global_iter(&iter); in kdb_ftdump()
124 iter.buffer_iter = buffer_iter; in kdb_ftdump()
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()