Commit b0afdc126d0515e76890f0a5f26b28501cfa298e

Authored by Steven Rostedt
Committed by Steven Rostedt
1 parent ac1adc55fc

tracing/events: enable code with EVENT_TRACING not EVENT_TRACER

The CONFIG_EVENT_TRACER is the way to turn on event tracing when no
other tracing has been configured. All code to get enabled should
depend on CONFIG_EVENT_TRACING. That is what is enabled when TRACING
(or CONFIG_EVENT_TRACER) is selected.

This patch enables the include/trace/ftrace.h file when
CONFIG_EVENT_TRACING is enabled.

[ Impact: fix warning in event tracer selftest ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/trace/define_trace.h
... ... @@ -56,7 +56,7 @@
56 56  
57 57 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
58 58  
59   -#ifdef CONFIG_EVENT_TRACER
  59 +#ifdef CONFIG_EVENT_TRACING
60 60 #include <trace/ftrace.h>
61 61 #endif
62 62