ftrace: separate out the function enabled variable
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 11 Jul 2008 00:58:16 +0000 (20:58 -0400)
committerIngo Molnar <mingo@elte.hu>
Fri, 11 Jul 2008 13:49:22 +0000 (15:49 +0200)
commit60bc080090e3bf6afa29c62cb25f913706551010
tree42fa03bbae28072c0302f6c8f4efead22307828f
parenta2bb6a3d85ef3124cd336403a95abc0540d3fbe2
ftrace: separate out the function enabled variable

Currently the function tracer uses the global tracer_enabled variable that
is used to keep track if the tracer is enabled or not. The function tracing
startup needs to be separated out, otherwise the internal happenings of
the tracer startup is also recorded.

This patch creates a ftrace_function_enabled variable to all the starting
of the function traces to happen after everything has been started.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Steven Rostedt <srostedt@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c