ftrace: clean up of using ftrace_event_enable_disable()
authorZhaolei <zhaolei@cn.fujitsu.com>
Mon, 25 May 2009 10:13:59 +0000 (18:13 +0800)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 26 May 2009 01:30:31 +0000 (03:30 +0200)
commit0e907c99391362385c8e3af2c43b904dd1fd5d73
tree86f1fc73644d4a7db5e1cbc96434aa89d02879cc
parentb11c53e12f94a46b50bccc7a1a953d7ca1d54a31
ftrace: clean up of using ftrace_event_enable_disable()

Always use ftrace_event_enable_disable() to enable/disable an event
so that we can factorize out the event toggling code.

[ Impact: factorize and cleanup event tracing code ]

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <4A14FDFE.2080402@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/trace/trace_events.c