mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
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/[email protected] Acked-by: Linus Walleij <[email protected]> Signed-off-by: Tal Shorer <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
This commit is contained in:
committed by
Steven Rostedt
parent
c63b7682b6
commit
ddd70280bf
@@ -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
|
||||
|
||||
|
||||
@@ -635,6 +635,13 @@ config TRACE_ENUM_MAP_FILE
|
||||
|
||||
If unsure, say N
|
||||
|
||||
config TRACING_EVENTS_GPIO
|
||||
bool "Trace gpio events"
|
||||
depends on GPIOLIB
|
||||
default y
|
||||
help
|
||||
Enable tracing events for gpio subsystem
|
||||
|
||||
endif # FTRACE
|
||||
|
||||
endif # TRACING_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user