Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160715 > unrolled thread

[Patch RFC 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events

Started byTal Shorer <tal.shorer@gmail.com>
First post2015-06-08 21:10 +0200
Last post2015-06-08 21:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [Patch RFC 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events Tal Shorer <tal.shorer@gmail.com> - 2015-06-08 21:10 +0200

#1160715 — [Patch RFC 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events

FromTal Shorer <tal.shorer@gmail.com>
Date2015-06-08 21:10 +0200
Subject[Patch RFC 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events
Message-ID<pzaAN-7UC-5@gated-at.bofh.it>
Add a new options to gpio Kconfig, CONFIG_GPIO_TRACING, that is used
fir enabling/disabling compilation of gpio function trace events.

Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
---
 drivers/gpio/Kconfig        | 6 ++++++
 include/trace/events/gpio.h | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index caefe80..1480a22 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -88,6 +88,12 @@ config GPIO_SYSFS
 config GPIO_GENERIC
 	tristate
 
+config GPIO_TRACING
+	bool "gpio tracing"
+	depends on TRACING
+	help
+	  Enable tracing for gpio subsystem
+
 # put drivers in the right section, in alphabetical order
 
 # This symbol is selected by both I2C and SPI expanders
diff --git a/include/trace/events/gpio.h b/include/trace/events/gpio.h
index 927a8ad..09af636 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_GPIO_TRACING
+#define NOTRACE
+#endif
+
 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
 #define _TRACE_GPIO_H
 
-- 
2.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web