summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorTal Shorer <tal.shorer@gmail.com>2015-08-01 15:27:58 +0300
committerSteven Rostedt <rostedt@goodmis.org>2015-10-20 21:56:10 -0400
commitddd70280bf0e92ad81a9526971409603fba21679 (patch)
treec97e90370c998526b68b62a91295723bb1780086 /include/trace
parentc63b7682b6d90530d3a071ff75b81bfddcce8598 (diff)
tracing: gpio: Add Kconfig option for enabling/disabling trace events
Add a new options to trace Kconfig, CONFIG_TRACING_EVENTS_GPIO, that is used for enabling/disabling compilation of gpio function trace events. Link: http://lkml.kernel.org/r/1438432079-11704-4-git-send-email-tal.shorer@gmail.com Acked-by: Linus Walleij <linus.walleij@linaro.org> 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/events/gpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/trace/events/gpio.h b/include/trace/events/gpio.h
index 927a8ad9e51b..2da73b92d47e 100644
--- a/include/trace/events/gpio.h
+++ b/include/trace/events/gpio.h
@@ -1,6 +1,10 @@
#undef TRACE_SYSTEM
#define TRACE_SYSTEM gpio
+#ifndef CONFIG_TRACING_EVENTS_GPIO
+#define NOTRACE
+#endif
+
#if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_GPIO_H