]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Keep overwrite in sync between regular and snapshot buffers
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 14 Mar 2013 18:20:54 +0000 (14:20 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 03:40:15 +0000 (23:40 -0400)
commit2746b120caa86e30b2e565615f793281c7547be4
tree552d06bf6a7dfcc6c392d7103cfc84e725545c75
parent9f100051d92e3acf90d1e7e1420bfd0375e8ba0a
tracing: Keep overwrite in sync between regular and snapshot buffers

Changing the overwrite mode for the ring buffer via the trace
option only sets the normal buffer. But the snapshot buffer could
swap with it, and then the snapshot would be in non overwrite mode
and the normal buffer would be in overwrite mode, even though the
option flag states otherwise.

Keep the two buffers overwrite modes in sync.

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