]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Fix accounting of entries when removing pages
authorVaibhav Nagarnaik <vnagarnaik@google.com>
Fri, 29 Jun 2012 19:31:41 +0000 (12:31 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Jun 2012 20:17:17 +0000 (16:17 -0400)
commit6eb25752cb1fd5ed13bef1c50db791d15e1d88d5
treebaaec367ed2c155d35c76b6d79b7bf1eb9092af7
parentab775b515e64829df0f62ff6690202b3925ca6e4
ring-buffer: Fix accounting of entries when removing pages

When removing pages from the ring buffer, its state is not reset. This
means that the counters need to be correctly updated to account for the
pages removed.

Update the overrun counter to reflect the removed events from the pages.

Link: http://lkml.kernel.org/r/1340998301-1715-1-git-send-email-vnagarnaik@google.com
Cc: Justin Teravest <teravest@google.com>
Cc: David Sharp <dhsharp@google.com>
Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c