Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tal Shorer and committed by
Steven Rostedt
ddd70280 c63b7682

+11
+4
include/trace/events/gpio.h
··· 1 1 #undef TRACE_SYSTEM 2 2 #define TRACE_SYSTEM gpio 3 3 4 + #ifndef CONFIG_TRACING_EVENTS_GPIO 5 + #define NOTRACE 6 + #endif 7 + 4 8 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) 5 9 #define _TRACE_GPIO_H 6 10
+7
kernel/trace/Kconfig
··· 635 635 636 636 If unsure, say N 637 637 638 + config TRACING_EVENTS_GPIO 639 + bool "Trace gpio events" 640 + depends on GPIOLIB 641 + default y 642 + help 643 + Enable tracing events for gpio subsystem 644 + 638 645 endif # FTRACE 639 646 640 647 endif # TRACING_SUPPORT