]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:17:46 +0000 (12:17 -0700)
commitbfd57f5c82892a0202eca29d9f609e30b9090c8c
tree6ca9a6ac287d921dc15cf2b6962fc0ba7247947f
parent61ff05825e3bac02538a50f1b15c41b005e33d29
tracing: Keep overwrite in sync between regular and snapshot buffers

commit 80902822658aab18330569587cdb69ac1dfdcea8 upstream.

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.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c