ftrace: disable tracing on resize
authorSteven Rostedt <srostedt@redhat.com>
Tue, 11 Nov 2008 02:46:00 +0000 (21:46 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Tue, 11 Nov 2008 02:47:35 +0000 (21:47 -0500)
commitbf5e6519b85b3853f2d0bb4f17a4e2eaeffeb574
treed5560a28100aed24e3bb09e68c17a0ea1fbde07b
parent3ad4f597058301c97f362e500a32f63f5c950a45
ftrace: disable tracing on resize

Impact: fix for bug on resize

This patch addresses the bug found here:

 http://bugzilla.kernel.org/show_bug.cgi?id=11996

When ftrace converted to the new unified trace buffer, the resizing of
the buffer was not protected as much as it was originally. If tracing
is performed while the resize occurs, then the buffer can be corrupted.

This patch disables all ftrace buffer modifications before a resize
takes place.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace.c