Lines Matching refs:array_buffer

767 static u64 buffer_ftrace_now(struct array_buffer *buf, int cpu)  in buffer_ftrace_now()
783 return buffer_ftrace_now(&global_trace.array_buffer, cpu); in ftrace_now()
960 if (tr->array_buffer.buffer) in tracer_tracing_on()
961 ring_buffer_record_on(tr->array_buffer.buffer); in tracer_tracing_on()
1028 buffer = global_trace.array_buffer.buffer; in __trace_puts()
1078 buffer = global_trace.array_buffer.buffer; in __trace_bputs()
1209 static int resize_buffer_duplicate_size(struct array_buffer *trace_buf,
1210 struct array_buffer *size_buf, int cpu_id);
1211 static void set_buffer_entries(struct array_buffer *buf, unsigned long val);
1221 &tr->array_buffer, RING_BUFFER_ALL_CPUS); in tracing_alloc_snapshot_instance()
1429 if (tr->array_buffer.buffer) in tracer_tracing_off()
1430 ring_buffer_record_off(tr->array_buffer.buffer); in tracer_tracing_off()
1461 trace_array_printk_buf(global_trace.array_buffer.buffer, _THIS_IP_, in disable_trace_on_warning()
1475 if (tr->array_buffer.buffer) in tracer_tracing_is_on()
1476 return ring_buffer_record_is_on(tr->array_buffer.buffer); in tracer_tracing_is_on()
1770 struct array_buffer *trace_buf = &tr->array_buffer; in __update_max_tr()
1771 struct array_buffer *max_buf = &tr->max_buffer; in __update_max_tr()
1830 if (ring_buffer_record_is_set_on(tr->array_buffer.buffer)) in update_max_tr()
1841 swap(tr->array_buffer.buffer, tr->max_buffer.buffer); in update_max_tr()
1873 ret = ring_buffer_swap_cpu(tr->max_buffer.buffer, tr->array_buffer.buffer, cpu); in update_max_tr_single()
1900 return ring_buffer_wait(iter->array_buffer->buffer, iter->cpu_file, in wait_on_pipe()
1957 tracing_reset_online_cpus(&tr->array_buffer); in run_tracer_selftest()
1983 tracing_reset_online_cpus(&tr->array_buffer); in run_tracer_selftest()
2148 static void tracing_reset_cpu(struct array_buffer *buf, int cpu) in tracing_reset_cpu()
2164 void tracing_reset_online_cpus(struct array_buffer *buf) in tracing_reset_online_cpus()
2194 tracing_reset_online_cpus(&tr->array_buffer); in tracing_reset_all_online_cpus_unlocked()
2319 buffer = global_trace.array_buffer.buffer; in tracing_start()
2358 buffer = tr->array_buffer.buffer; in tracing_start_tr()
2384 buffer = global_trace.array_buffer.buffer; in tracing_stop()
2413 buffer = tr->array_buffer.buffer; in tracing_stop_tr()
2793 *current_rb = tr->array_buffer.buffer; in trace_event_buffer_lock_reserve()
3004 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_function()
3125 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_stack()
3159 __ftrace_trace_stack(global_trace.array_buffer.buffer, in trace_dump_stack()
3235 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_last_func_repeats()
3343 if (global_trace.array_buffer.buffer) in trace_printk_init_buffers()
3405 buffer = tr->array_buffer.buffer; in trace_vbprintk()
3494 return __trace_array_vprintk(tr->array_buffer.buffer, ip, fmt, args); in trace_array_vprintk()
3607 event = ring_buffer_peek(iter->array_buffer->buffer, cpu, ts, in peek_next_entry()
3623 struct trace_buffer *buffer = iter->array_buffer->buffer; in __find_next_entry()
4043 ring_buffer_consume(iter->array_buffer->buffer, iter->cpu, &iter->ts, in trace_consume()
4080 per_cpu_ptr(iter->array_buffer->data, cpu)->skipped_entries = 0; in tracing_iter_reset()
4094 if (ts >= iter->array_buffer->time_start) in tracing_iter_reset()
4100 per_cpu_ptr(iter->array_buffer->data, cpu)->skipped_entries = entries; in tracing_iter_reset()
4179 get_total_entries_cpu(struct array_buffer *buf, unsigned long *total, in get_total_entries_cpu()
4201 get_total_entries(struct array_buffer *buf, in get_total_entries()
4224 get_total_entries_cpu(&tr->array_buffer, &total, &entries, cpu); in trace_total_entries_cpu()
4236 get_total_entries(&tr->array_buffer, &total, &entries); in trace_total_entries()
4254 static void print_event_info(struct array_buffer *buf, struct seq_file *m) in print_event_info()
4265 static void print_func_help_header(struct array_buffer *buf, struct seq_file *m, in print_func_help_header()
4276 static void print_func_help_header_irq(struct array_buffer *buf, struct seq_file *m, in print_func_help_header_irq()
4299 struct array_buffer *buf = iter->array_buffer; in print_trace_header()
4366 if (per_cpu_ptr(iter->array_buffer->data, iter->cpu)->skipped_entries) in test_cpu_buff_start()
4500 if (!ring_buffer_empty_cpu(iter->array_buffer->buffer, cpu)) in trace_empty()
4512 if (!ring_buffer_empty_cpu(iter->array_buffer->buffer, cpu)) in trace_empty()
4606 print_func_help_header_irq(iter->array_buffer, in trace_default_header()
4609 print_func_help_header(iter->array_buffer, m, in trace_default_header()
4789 iter->array_buffer = &tr->max_buffer; in __tracing_open()
4792 iter->array_buffer = &tr->array_buffer; in __tracing_open()
4803 if (ring_buffer_overruns(iter->array_buffer->buffer)) in __tracing_open()
4820 ring_buffer_read_prepare(iter->array_buffer->buffer, in __tracing_open()
4831 ring_buffer_read_prepare(iter->array_buffer->buffer, in __tracing_open()
4966 struct array_buffer *trace_buf = &tr->array_buffer; in tracing_open()
5180 atomic_inc(&per_cpu_ptr(tr->array_buffer.data, cpu)->disabled); in tracing_set_cpumask()
5181 ring_buffer_record_disable_cpu(tr->array_buffer.buffer, cpu); in tracing_set_cpumask()
5185 atomic_dec(&per_cpu_ptr(tr->array_buffer.data, cpu)->disabled); in tracing_set_cpumask()
5186 ring_buffer_record_enable_cpu(tr->array_buffer.buffer, cpu); in tracing_set_cpumask()
5362 ring_buffer_change_overwrite(tr->array_buffer.buffer, enabled); in set_tracer_flag()
6182 tracing_reset_online_cpus(&tr->array_buffer); in tracer_init()
6186 static void set_buffer_entries(struct array_buffer *buf, unsigned long val) in set_buffer_entries()
6196 static int resize_buffer_duplicate_size(struct array_buffer *trace_buf, in resize_buffer_duplicate_size()
6197 struct array_buffer *size_buf, int cpu_id) in resize_buffer_duplicate_size()
6235 if (!tr->array_buffer.buffer) in __tracing_resize_ring_buffer()
6238 ret = ring_buffer_resize(tr->array_buffer.buffer, size, cpu); in __tracing_resize_ring_buffer()
6249 int r = resize_buffer_duplicate_size(&tr->array_buffer, in __tracing_resize_ring_buffer()
6250 &tr->array_buffer, cpu); in __tracing_resize_ring_buffer()
6281 set_buffer_entries(&tr->array_buffer, size); in __tracing_resize_ring_buffer()
6283 per_cpu_ptr(tr->array_buffer.data, cpu)->entries = size; in __tracing_resize_ring_buffer()
6633 iter->array_buffer = &tr->array_buffer; in tracing_open_pipe()
6694 return ring_buffer_poll_wait(iter->array_buffer->buffer, iter->cpu_file, in trace_poll()
7014 size = per_cpu_ptr(tr->array_buffer.data, cpu)->entries; in tracing_entries_read()
7015 if (size != per_cpu_ptr(tr->array_buffer.data, cpu)->entries) { in tracing_entries_read()
7031 r = sprintf(buf, "%lu\n", per_cpu_ptr(tr->array_buffer.data, cpu)->entries >> 10); in tracing_entries_read()
7078 size += per_cpu_ptr(tr->array_buffer.data, cpu)->entries >> 10; in tracing_total_entries_read()
7155 buffer = tr->array_buffer.buffer; in tracing_mark_write()
7231 buffer = tr->array_buffer.buffer; in tracing_mark_raw_write()
7283 ring_buffer_set_clock(tr->array_buffer.buffer, trace_clocks[i].func); in tracing_set_clock()
7289 tracing_reset_online_cpus(&tr->array_buffer); in tracing_set_clock()
7352 if (ring_buffer_time_stamp_abs(tr->array_buffer.buffer)) in tracing_time_stamp_mode_show()
7449 iter->array_buffer = &tr->max_buffer; in tracing_snapshot_open()
7514 &tr->array_buffer, iter->cpu_file); in tracing_snapshot_write()
7589 info->iter.array_buffer = &info->iter.tr->max_buffer; in snapshot_raw_open()
8078 info->iter.array_buffer = &tr->array_buffer; in tracing_buffers_open()
8123 info->spare = ring_buffer_alloc_read_page(iter->array_buffer->buffer, in tracing_buffers_read()
8141 ret = ring_buffer_read_page(iter->array_buffer->buffer, in tracing_buffers_read()
8194 ring_buffer_wake_waiters(iter->array_buffer->buffer, iter->cpu_file); in tracing_buffers_release()
8197 ring_buffer_free_read_page(iter->array_buffer->buffer, in tracing_buffers_release()
8300 entries = ring_buffer_entries_cpu(iter->array_buffer->buffer, iter->cpu_file); in tracing_buffers_splice_read()
8313 ref->buffer = iter->array_buffer->buffer; in tracing_buffers_splice_read()
8341 entries = ring_buffer_entries_cpu(iter->array_buffer->buffer, iter->cpu_file); in tracing_buffers_splice_read()
8398 ring_buffer_wake_waiters(iter->array_buffer->buffer, iter->cpu_file); in tracing_buffers_ioctl()
8420 struct array_buffer *trace_buf = &tr->array_buffer; in tracing_stats_read()
9079 struct trace_buffer *buffer = tr->array_buffer.buffer; in rb_simple_write()
9171 allocate_trace_buffer(struct trace_array *tr, struct array_buffer *buf, int size) in allocate_trace_buffer()
9191 set_buffer_entries(&tr->array_buffer, in allocate_trace_buffer()
9192 ring_buffer_size(tr->array_buffer.buffer, 0)); in allocate_trace_buffer()
9197 static void free_trace_buffer(struct array_buffer *buf) in free_trace_buffer()
9211 ret = allocate_trace_buffer(tr, &tr->array_buffer, size); in allocate_trace_buffers()
9219 free_trace_buffer(&tr->array_buffer); in allocate_trace_buffers()
9239 free_trace_buffer(&tr->array_buffer); in free_trace_buffers()
9949 iter->array_buffer = &global_trace.array_buffer; in trace_init_global_iter()
9955 if (ring_buffer_overruns(iter->array_buffer->buffer)) in trace_init_global_iter()
10001 atomic_inc(&per_cpu_ptr(iter.array_buffer->data, cpu)->disabled); in ftrace_dump()
10069 atomic_dec(&per_cpu_ptr(iter.array_buffer->data, cpu)->disabled); in ftrace_dump()