]> 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)
commitdb4d89dc38dfdba1461755c1f719ae873c53b9a8
tree552d06bf6a7dfcc6c392d7103cfc84e725545c75
parent31d615d60e08e9f552c9bd22b891ec2a24de4d09
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