Skip to content

Commit

Permalink
tracing/events: enable code with EVENT_TRACING not EVENT_TRACER
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 17, 2009
1 parent ac1adc5 commit b0afdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/trace/define_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)

#ifdef CONFIG_EVENT_TRACER
#ifdef CONFIG_EVENT_TRACING
#include <trace/ftrace.h>
#endif

Expand Down

0 comments on commit b0afdc1

Please sign in to comment.