]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Add integrity check at end of iter read
authorSteven Rostedt <srostedt@redhat.com>
Mon, 14 May 2012 21:02:33 +0000 (17:02 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 16 May 2012 23:50:23 +0000 (19:50 -0400)
commit75c6e6cbc26f97ca7d480ca49df5adfb50dfc619
treeda818329ad9c47e3a5c5414e37e836cb8bda5bec
parentd3f4b29030d682d985fedc4fc949ab91de87e07a
ring-buffer: Add integrity check at end of iter read

There use to be ring buffer integrity checks after updating the
size of the ring buffer. But now that the ring buffer can modify
the size while the system is running, the integrity checks were
removed, as they require the ring buffer to be disabed to perform
the check.

Move the integrity check to the reading of the ring buffer via the
iterator reads (the "trace" file). As reading via an iterator requires
disabling the ring buffer, it is a perfect place to have it.

If the ring buffer happens to be disabled when updating the size,
we still perform the integrity check.

Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c