]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix setting tracer specific options
authorSteven Rostedt <srostedt@redhat.com>
Tue, 22 Dec 2009 03:35:16 +0000 (22:35 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Dec 2009 03:35:16 +0000 (22:35 -0500)
commite8110ad46019629ff4ad140309ee0cad64999b66
treef1a4ddfea72acf13864f543648bf3f79924cbdc3
parentffd610267bb54da35b9a59ca02cf6dd9981c0b66
tracing: Fix setting tracer specific options

The function __set_tracer_option() takes as its last parameter a
"neg" value. If set it should negate the value of the option.

The trace_options_write() passed the value written to the file
which is what the new value needs to be set as. But since this
is not the negative, it never sets the value.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c