]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Only disable ftrace_enabled to test buffer in selftest
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 12 Sep 2014 18:26:51 +0000 (14:26 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 13 Sep 2014 00:48:49 +0000 (20:48 -0400)
commitb241b35433ffcacf86bdd9d8b31b5a6fdaf12926
tree44c4e15c4cc965a5f78ea1f18c0829517bd44651
parentb0f21d32e9e7d92bbc6ad371932a63ea01a97911
ftrace: Only disable ftrace_enabled to test buffer in selftest

The ftrace_enabled variable is set to zero in the self tests to keep
delayed functions from being traced and messing with the checks. This
only needs to be done when the checks are being performed, otherwise,
if ftrace_enabled is off when calls back to the utility that is being
tested, it can cause errors to happen and the tests can fail with
false positives.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_selftest.c