tracing: arm: arm64: Hide trace events ipi_raise, ipi_entry and ipi_exit
Subsystems (3)
Steven Rostedt
maintainerPATCH 1/1 tracing: arm: arm64: Hide trace events ipi_raise, ipi_entry and ipi_exit
From: Steven Rostedt <[email protected]>
The ipi tracepoints are mostly generic, but the tracepoints ipi_raise, ipi_entry and ipi_exit are only used by arm and arm64. This means these trace events are wasting memory in all the other architectures that do not use them.
Add CONFIG_HAVE_EXTRA_IPI_TRACEPOINTS and have arm and arm64 select it to enable these trace events. The config makes it easy if other architectures decide to trace these as well.
--- arch/arm/Kconfig | 1 + arch/arm64/Kconfig | 1 + include/trace/events/ipi.h | 58 ++++++++++++++++++++------------------ kernel/trace/Kconfig | 6 ++++ 4 files changed, 38 insertions(+), 28 deletions(-)
arch/arm/Kconfig +1 -0
@@ -100,6 +100,7 @@ config ARM select HAVE_BUILDTIME_MCOUNT_SORT select HAVE_DEBUG_KMEMLEAK if !XIP_KERNEL select HAVE_DMA_CONTIGUOUS if MMU + select HAVE_EXTRA_IPI_TRACEPOINTS select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
arch/arm64/Kconfig +1 -0
@@ -134,6 +134,7 @@ config ARM64 select CPU_PM if (SUSPEND || CPU_IDLE) select CPUMASK_OFFSTACK if NR_CPUS > 256 select DCACHE_WORD_ACCESS + select HAVE_EXTRA_IPI_TRACEPOINTS select DYNAMIC_FTRACE if FUNCTION_TRACER select DMA_BOUNCE_UNALIGNED_KMALLOC select DMA_DIRECT_REMAP
include/trace/events/ipi.h +30 -28
76 lines not on this page · raw message
kernel/trace/Kconfig +6 -0
@@ -53,6 +53,12 @@ config HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS config HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS bool +config HAVE_EXTRA_IPI_TRACEPOINTS + bool + help + For architectures that use ipi_raise, ipi_entry and ipi_exit + tracepoints. + config HAVE_DYNAMIC_FTRACE_WITH_ARGS bool help
Signature · 1 line
2.47.2
Quoted 7 lines · Steven Rostedt
From: Steven Rostedt <[email protected]>
The ipi tracepoints are mostly generic, but the tracepoints
ipi_raise,ipi_entryandipi_exitare only used by arm and arm64. This means these trace events are wasting memory in all the other architectures that do not use them.
Quoted 5 lines
Add
CONFIG_HAVE_EXTRA_IPI_TRACEPOINTSand have arm and arm64 select it to enable these trace events. The config makes it easy if other architectures decide to trace these as well.Signed-off-by Steven Rostedt (Google) <[email protected]>