From: Steven Rostedt Date: Fri, 4 Sep 2009 16:02:35 +0000 (-0400) Subject: tracing: disable buffers and synchronize_sched before resetting X-Git-Tag: v2.6.32-rc1~718^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621968cdb2563b667d6ecb484ba91ef4c3a797b3;p=pandora-kernel.git tracing: disable buffers and synchronize_sched before resetting Resetting the ring buffers while traces are happening can corrupt the ring buffer and disable it (no kernel crash to worry about). The safest thing to do is disable the ring buffers, call synchronize_sched() to wait for all current writers to finish and then reset the buffer. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed