ftrace: disable tracing when current_tracer is set to "none"
authorAnkita Garg <ankita@in.ibm.com>
Mon, 9 Jun 2008 08:40:25 +0000 (13:40 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Jun 2008 12:52:30 +0000 (14:52 +0200)
commit2b1bce1787700768cbc87c8509851c6f49d252dc
treed21617cd4b77ce13417eee35aebec9f91850ce90
parent040ec23d07f95285e9777a85cda29cb339a3065b
ftrace: disable tracing when current_tracer is set to "none"

Found that inspite of setting the current_tracer to "none", trace from
the previous trace type continued to be collected. The patch below fixes
this and causes the trace to be disabled when the "none" type is
selected.

Compile and boot tested the patch for functionality.

Signed-off-by: Ankita Garg <ankita@in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c