]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: Have tracing_off() actually turn tracing off
authorSteven Rostedt <srostedt@redhat.com>
Wed, 6 Jun 2012 23:50:40 +0000 (19:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:36:55 +0000 (11:36 -0700)
commit3993b24649773080897fde524ea2d9f311eba2aa
tree22cbe6a20e2d52c2886c309a6307cce4364734f0
parentd946d96cd89b13fc354b6f7ed2c4de3e72c87d8e
tracing: Have tracing_off() actually turn tracing off

commit f2bf1f6f5f89d031245067512449fc889b2f4bb2 upstream.

A recent update to have tracing_on/off() only affect the ftrace ring
buffers instead of all ring buffers had a cut and paste error.
The tracing_off() did the exact same thing as tracing_on() and
would not actually turn off tracing. Unfortunately, tracing_off()
is more important to be working than tracing_on() as this is a key
development tool, as it lets the developer turn off tracing as soon
as a problem is discovered. It is also used by panic and oops code.

This bug also breaks the 'echo func:traceoff > set_ftrace_filter'

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