]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit866117b70d7ee9ad87703e6cf2afc1effc7e916b
treed5560a28100aed24e3bb09e68c17a0ea1fbde07b
parent4146aa2afb5547e76a32c3eedf6cb1dc0457516a
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