ring-buffer: Add stats field for amount read from trace ring buffer
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 29 Jan 2013 22:45:49 +0000 (17:45 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 30 Jan 2013 16:01:53 +0000 (11:01 -0500)
commitad964704ba9326d027fc10fd0099b7c880e50172
treee08884c0f383e5b954233c323df67a3d726b6537
parent03274a3ffb449632970fdd35da72ea41cf8474da
ring-buffer: Add stats field for amount read from trace ring buffer

Add a stat about the number of events read from the ring buffer:

 #  cat /debug/tracing/per_cpu/cpu0/stats
entries: 39869
overrun: 870512
commit overrun: 0
bytes: 1449912
oldest event ts:  6561.368690
now ts:  6565.246426
dropped events: 0
read events: 112    <-- Added

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c
kernel/trace/trace.c