ftrace: clean up enable logic for sched_switch
authorZhaolei <zhaolei@cn.fujitsu.com>
Tue, 31 Mar 2009 07:26:14 +0000 (15:26 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Apr 2009 12:43:09 +0000 (14:43 +0200)
commitdcef788eb9659b61a2110284fcce3ca6e63480d2
treeb888723a3131d37afdae47e2d80a63796d19a6db
parent597af81537654097b67fd7a0c92775e66d4a86fe
ftrace: clean up enable logic for sched_switch

Unify sched_switch and sched_wakeup's action to following logic:
Do record_cmdline when start_cmdline_record() is called.
Start tracing events when the tracer is started.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
LKML-Reference: <49D1C596.5050203@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_sched_switch.c