]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ring-buffer: add total count in ring-buffer-benchmark
authorSteven Rostedt <srostedt@redhat.com>
Thu, 7 May 2009 23:52:20 +0000 (19:52 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 7 May 2009 23:52:20 +0000 (19:52 -0400)
commit7da3046d6ce6ea97494020081c509b642b7016af
tree8bd27902977bc821980331054a6b2c5876bf2918
parent0574ea421b90e0e45a72c447dd3c2c79ffd8c153
ring-buffer: add total count in ring-buffer-benchmark

It is nice to see the overhead of the benchmark test when tracing is
disabled. That is, we turn off the ring buffer just to see what the
cost of running the loop that calls into the ring buffer is.

Currently, if no entries wer made, we get 0. This is not informative.
This patch changes it to check if we had any "missed" (non recorded)
events. If so, a total count is also reported.

[ Impact: evaluate the over head of the ring buffer benchmark test ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer_benchmark.c