diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-09-03 10:23:58 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-04 11:43:36 -0400 |
commit | a1863c212b7517afc2b13e549552ac322fb44cab (patch) | |
tree | 20ad746370b0d03950f23a349ebb07c913f99fd2 /scripts | |
parent | dc892f7339af2d125478b800edb9081d6149665b (diff) |
ring-buffer: do not count discarded events
The latency tracers report the number of items in the trace buffer.
This uses the ring buffer data to calculate this. Because discarded
events are also counted, the numbers do not match the number of items
that are printed. The ring buffer also adds a "padding" item to the
end of each buffer page which also gets counted as a discarded item.
This patch decrements the counter to the page entries on a discard.
This allows us to ignore discarded entries while reading the buffer.
Decrementing the counter is still safe since it can only happen while
the committing flag is still set.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions