tracing: Only create stacktrace option when STACKTRACE is configured
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 29 Sep 2015 19:38:55 +0000 (15:38 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 29 Sep 2015 19:38:55 +0000 (15:38 -0400)
commit73dddbb57bb08d465dd0ecab93db0c5209e50cfe
tree63f5adc345c08a15d42b9dff1d9d394ceddb1740
parent8179e8a15b76eaec1e757da7a0f96de9f0c466c6
tracing: Only create stacktrace option when STACKTRACE is configured

Only create the stacktrace trace option when CONFIG_STACKTRACE is
configured.

Cleaned up the ftrace_trace_stack() function call a little to allow better
encapsulation of the stacktrace trace flag.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h