linux/kernel/trace
Steven Rostedt 8789a9e7df ring-buffer: read page interface
Impact: new API to ring buffer

This patch adds a new interface into the ring buffer that allows a
page to be read from the ring buffer on a given CPU. For every page
read, one must also be given to allow for a "swap" of the pages.

 rpage = ring_buffer_alloc_read_page(buffer);
 if (!rpage)
	goto err;
 ret = ring_buffer_read_page(buffer, &rpage, cpu, full);
 if (!ret)
	goto empty;
 process_page(rpage);
 ring_buffer_free_read_page(rpage);

The caller of these functions must handle any waits that are
needed to wait for new data. The ring_buffer_read_page will simply
return 0 if there is no data, or if "full" is set and the writer
is still on the current page.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-12-03 08:56:21 +01:00
..
ftrace.c Merge branches 'tracing/ftrace' and 'tracing/function-graph-tracer' into tracing/core 2008-12-03 08:49:21 +01:00
Kconfig
Makefile
ring_buffer.c ring-buffer: read page interface 2008-12-03 08:56:21 +01:00
trace.c ftrace: replace raw_local_irq_save with local_irq_save 2008-12-03 08:56:19 +01:00
trace.h
trace_boot.c
trace_branch.c ftrace: replace raw_local_irq_save with local_irq_save 2008-12-03 08:56:19 +01:00
trace_bts.c
trace_functions.c
trace_functions_graph.c
trace_irqsoff.c
trace_mmiotrace.c
trace_nop.c
trace_power.c
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_stack.c ftrace: replace raw_local_irq_save with local_irq_save 2008-12-03 08:56:19 +01:00
trace_sysprof.c