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

tracing: stop making gpio tracing configurable

gpio tracing was made configurable in 4.4-rc1 (commit ddd70280bf0e
("tracing: gpio: Add Kconfig option for enabling/disabling trace
events")). Since then it is the only event type that can be compiled
conditionally. Given that there is only little overhead I don't
understand the reasoning and I was annoyed more than once that gpio
events were not available without recompiling.

So drop the Kconfig symbol and make gpio events available
unconditionally.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Uwe Kleine-König and committed by
Linus Walleij
12f26390 f70fbc15

-13
-1
arch/arm/configs/aspeed_g4_defconfig
··· 248 248 # CONFIG_SCHED_DEBUG is not set 249 249 CONFIG_SCHED_STACK_END_CHECK=y 250 250 CONFIG_FUNCTION_TRACER=y 251 - # CONFIG_TRACING_EVENTS_GPIO is not set 252 251 # CONFIG_RUNTIME_TESTING_MENU is not set 253 252 CONFIG_DEBUG_WX=y 254 253 CONFIG_DEBUG_USER=y
-1
arch/arm/configs/aspeed_g5_defconfig
··· 248 248 # CONFIG_SCHED_DEBUG is not set 249 249 CONFIG_SCHED_STACK_END_CHECK=y 250 250 CONFIG_FUNCTION_TRACER=y 251 - # CONFIG_TRACING_EVENTS_GPIO is not set 252 251 # CONFIG_RUNTIME_TESTING_MENU is not set 253 252 CONFIG_DEBUG_WX=y 254 253 CONFIG_DEBUG_USER=y
-4
include/trace/events/gpio.h
··· 2 2 #undef TRACE_SYSTEM 3 3 #define TRACE_SYSTEM gpio 4 4 5 - #ifndef CONFIG_TRACING_EVENTS_GPIO 6 - #define NOTRACE 7 - #endif 8 - 9 5 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) 10 6 #define _TRACE_GPIO_H 11 7
-7
kernel/trace/Kconfig
··· 774 774 775 775 If unsure, say N 776 776 777 - config TRACING_EVENTS_GPIO 778 - bool "Trace gpio events" 779 - depends on GPIOLIB 780 - default y 781 - help 782 - Enable tracing events for gpio subsystem 783 - 784 777 config GCOV_PROFILE_FTRACE 785 778 bool "Enable GCOV profiling on ftrace subsystem" 786 779 depends on GCOV_KERNEL