summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorTal Shorer <tal.shorer@gmail.com>2015-08-01 15:27:57 +0300
committerSteven Rostedt <rostedt@goodmis.org>2015-10-20 21:55:44 -0400
commitc63b7682b6d90530d3a071ff75b81bfddcce8598 (patch)
tree06ae1511fd717a638d28550388fb2f52b312d179 /include/trace
parentb86d9371be2fcb6ebf47e6c15d23d0ec1586664a (diff)
tracing: Allow disabling compilation of specific trace systems
Allow a trace events header file to disable compilation of its trace events by defining the preprocessor macro NOTRACE. This could be done, for example, according to a Kconfig option. Link: http://lkml.kernel.org/r/1438432079-11704-3-git-send-email-tal.shorer@gmail.com Signed-off-by: Tal Shorer <tal.shorer@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/define_trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h
index 09b3880105a9..2d8639ea64d5 100644
--- a/include/trace/define_trace.h
+++ b/include/trace/define_trace.h
@@ -86,7 +86,7 @@
#undef DECLARE_TRACE
#define DECLARE_TRACE(name, proto, args)
-#ifdef CONFIG_EVENT_TRACING
+#ifdef TRACEPOINTS_ENABLED
#include <trace/trace_events.h>
#include <trace/perf.h>
#endif