diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-09-29 10:24:56 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-09-29 15:01:34 -0400 |
commit | 8179e8a15b76eaec1e757da7a0f96de9f0c466c6 (patch) | |
tree | 918b3fcdab03e23e2032f70db9de17cb8c76b396 /kernel/trace/trace.h | |
parent | 4ee4301c4bab22c84df20ce694cc6932dd812be5 (diff) | |
download | op-kernel-dev-8179e8a15b76eaec1e757da7a0f96de9f0c466c6.zip op-kernel-dev-8179e8a15b76eaec1e757da7a0f96de9f0c466c6.tar.gz |
tracing: Do not create function tracer options when not compiled in
When the function tracer is not compiled in, do not create the option files
for it.
Fix up both the sched_wakeup and irqsoff tracers to handle the change.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 3f1cc45..b389d40 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -902,6 +902,15 @@ extern int trace_get_user(struct trace_parser *parser, const char __user *ubuf, # define BRANCH_FLAGS #endif +#ifdef CONFIG_FUNCTION_TRACER +# define FUNCTION_FLAGS \ + C(FUNCTION, "function-trace"), +# define FUNCTION_DEFAULT_FLAGS TRACE_ITER_FUNCTION +#else +# define FUNCTION_FLAGS +# define FUNCTION_DEFAULT_FLAGS 0UL +#endif + /* * trace_iterator_flags is an enumeration that defines bit * positions into trace_flags that controls the output. @@ -931,7 +940,7 @@ extern int trace_get_user(struct trace_parser *parser, const char __user *ubuf, C(STOP_ON_FREE, "disable_on_free"), \ C(IRQ_INFO, "irq-info"), \ C(MARKERS, "markers"), \ - C(FUNCTION, "function-trace"), \ + FUNCTION_FLAGS \ FGRAPH_FLAGS \ BRANCH_FLAGS |