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

tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig

Make architectures select TRACE_IRQFLAGS_SUPPORT instead of
having many defines.

Link: https://lkml.kernel.org/r/20210731052233.4703-2-masahiroy@kernel.org

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>   #arch/arc
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Masahiro Yamada and committed by
Steven Rostedt (VMware)
4aae683f de32951b

+21 -64
+3
arch/Kconfig
··· 197 197 config HAVE_NMI 198 198 bool 199 199 200 + config TRACE_IRQFLAGS_SUPPORT 201 + bool 202 + 200 203 # 201 204 # An arch should select this if it provides all these things: 202 205 #
+1 -3
arch/arc/Kconfig
··· 49 49 select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING 50 50 select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32 51 51 select SET_FS 52 - 53 - config TRACE_IRQFLAGS_SUPPORT 54 - def_bool y 52 + select TRACE_IRQFLAGS_SUPPORT 55 53 56 54 config LOCKDEP_SUPPORT 57 55 def_bool y
+1 -4
arch/arm/Kconfig
··· 128 128 select RTC_LIB 129 129 select SET_FS 130 130 select SYS_SUPPORTS_APM_EMULATION 131 + select TRACE_IRQFLAGS_SUPPORT if !CPU_V7M 131 132 # Above selects are sorted alphabetically; please add new ones 132 133 # according to that. Thanks. 133 134 help ··· 191 190 config LOCKDEP_SUPPORT 192 191 bool 193 192 default y 194 - 195 - config TRACE_IRQFLAGS_SUPPORT 196 - bool 197 - default !CPU_V7M 198 193 199 194 config ARCH_HAS_ILOG2_U32 200 195 bool
+1 -3
arch/arm64/Kconfig
··· 221 221 select SYSCTL_EXCEPTION_TRACE 222 222 select THREAD_INFO_IN_TASK 223 223 select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD 224 + select TRACE_IRQFLAGS_SUPPORT 224 225 help 225 226 ARM 64-bit (AArch64) Linux support. 226 227 ··· 287 286 default 0xdead000000000000 288 287 289 288 config LOCKDEP_SUPPORT 290 - def_bool y 291 - 292 - config TRACE_IRQFLAGS_SUPPORT 293 289 def_bool y 294 290 295 291 config GENERIC_BUG
+1 -3
arch/csky/Kconfig
··· 82 82 select PCI_SYSCALL if PCI 83 83 select PCI_MSI if PCI 84 84 select SET_FS 85 + select TRACE_IRQFLAGS_SUPPORT 85 86 86 87 config LOCKDEP_SUPPORT 87 88 def_bool y ··· 138 137 def_bool y 139 138 140 139 config TIME_LOW_RES 141 - def_bool y 142 - 143 - config TRACE_IRQFLAGS_SUPPORT 144 140 def_bool y 145 141 146 142 config CPU_TLB_SIZE
+1 -3
arch/hexagon/Kconfig
··· 31 31 select GENERIC_CPU_DEVICES 32 32 select SET_FS 33 33 select ARCH_WANT_LD_ORPHAN_WARN 34 + select TRACE_IRQFLAGS_SUPPORT 34 35 help 35 36 Qualcomm Hexagon is a processor architecture designed for high 36 37 performance and low power across a wide variety of applications. ··· 51 50 def_bool y 52 51 53 52 config MMU 54 - def_bool y 55 - 56 - config TRACE_IRQFLAGS_SUPPORT 57 53 def_bool y 58 54 59 55 config GENERIC_CSUM
+1
arch/microblaze/Kconfig
··· 44 44 select SPARSE_IRQ 45 45 select SET_FS 46 46 select ZONE_DMA 47 + select TRACE_IRQFLAGS_SUPPORT 47 48 48 49 # Endianness selection 49 50 choice
-5
arch/microblaze/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - # For a description of the syntax of this configuration file, 3 - # see Documentation/kbuild/kconfig-language.rst. 4 - 5 - config TRACE_IRQFLAGS_SUPPORT 6 - def_bool y
+1
arch/mips/Kconfig
··· 97 97 select PCI_MSI_ARCH_FALLBACKS if PCI_MSI 98 98 select RTC_LIB 99 99 select SYSCTL_EXCEPTION_TRACE 100 + select TRACE_IRQFLAGS_SUPPORT 100 101 select VIRT_TO_BUS 101 102 select ARCH_HAS_ELFCORE_COMPAT 102 103
-4
arch/mips/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - config TRACE_IRQFLAGS_SUPPORT 4 - bool 5 - default y 6 - 7 3 config EARLY_PRINTK 8 4 bool "Early printk" if EXPERT 9 5 depends on SYS_HAS_EARLY_PRINTK
+1 -3
arch/nds32/Kconfig
··· 48 48 select HAVE_FTRACE_MCOUNT_RECORD 49 49 select HAVE_DYNAMIC_FTRACE 50 50 select SET_FS 51 + select TRACE_IRQFLAGS_SUPPORT 51 52 help 52 53 Andes(nds32) Linux support. 53 54 ··· 64 63 config GENERIC_LOCKBREAK 65 64 def_bool y 66 65 depends on PREEMPTION 67 - 68 - config TRACE_IRQFLAGS_SUPPORT 69 - def_bool y 70 66 71 67 config STACKTRACE_SUPPORT 72 68 def_bool y
-3
arch/nios2/Kconfig
··· 43 43 config FPU 44 44 def_bool n 45 45 46 - config TRACE_IRQFLAGS_SUPPORT 47 - def_bool n 48 - 49 46 menu "Kernel features" 50 47 51 48 source "kernel/Kconfig.hz"
+1 -3
arch/openrisc/Kconfig
··· 39 39 select GENERIC_IRQ_MULTI_HANDLER 40 40 select MMU_GATHER_NO_RANGE if MMU 41 41 select SET_FS 42 + select TRACE_IRQFLAGS_SUPPORT 42 43 43 44 config CPU_BIG_ENDIAN 44 45 def_bool y ··· 51 50 def_bool y 52 51 53 52 config NO_IOPORT_MAP 54 - def_bool y 55 - 56 - config TRACE_IRQFLAGS_SUPPORT 57 53 def_bool y 58 54 59 55 # For now, use generic checksum functions
+1
arch/parisc/Kconfig
··· 67 67 select HAVE_DYNAMIC_FTRACE_WITH_REGS 68 68 select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS 69 69 select SET_FS 70 + select TRACE_IRQFLAGS_SUPPORT 70 71 71 72 help 72 73 The PA-RISC microprocessor is designed by Hewlett-Packard and used
-3
arch/parisc/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - 3 - config TRACE_IRQFLAGS_SUPPORT 4 - def_bool y
+1 -4
arch/powerpc/Kconfig
··· 94 94 bool 95 95 default y 96 96 97 - config TRACE_IRQFLAGS_SUPPORT 98 - bool 99 - default y 100 - 101 97 config LOCKDEP_SUPPORT 102 98 bool 103 99 default y ··· 267 271 select STRICT_KERNEL_RWX if STRICT_MODULE_RWX 268 272 select SYSCTL_EXCEPTION_TRACE 269 273 select THREAD_INFO_IN_TASK 274 + select TRACE_IRQFLAGS_SUPPORT 270 275 select VIRT_TO_BUS if !PPC64 271 276 # 272 277 # Please keep this list sorted alphabetically.
+1 -3
arch/riscv/Kconfig
··· 109 109 select SPARSE_IRQ 110 110 select SYSCTL_EXCEPTION_TRACE 111 111 select THREAD_INFO_IN_TASK 112 + select TRACE_IRQFLAGS_SUPPORT 112 113 select UACCESS_MEMCPY if !MMU 113 114 select ZONE_DMA32 if 64BIT 114 115 ··· 177 176 def_bool y 178 177 179 178 config STACKTRACE_SUPPORT 180 - def_bool y 181 - 182 - config TRACE_IRQFLAGS_SUPPORT 183 179 def_bool y 184 180 185 181 config GENERIC_BUG
+1
arch/s390/Kconfig
··· 207 207 select SWIOTLB 208 208 select SYSCTL_EXCEPTION_TRACE 209 209 select THREAD_INFO_IN_TASK 210 + select TRACE_IRQFLAGS_SUPPORT 210 211 select TTY 211 212 select VIRT_CPU_ACCOUNTING 212 213 select ZONE_DMA
-3
arch/s390/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - config TRACE_IRQFLAGS_SUPPORT 4 - def_bool y 5 - 6 3 config EARLY_PRINTK 7 4 def_bool y 8 5
+1
arch/sh/Kconfig
··· 72 72 select RTC_LIB 73 73 select SET_FS 74 74 select SPARSE_IRQ 75 + select TRACE_IRQFLAGS_SUPPORT 75 76 help 76 77 The SuperH is a RISC processor targeted for use in embedded systems 77 78 and consumer electronics; it was also used in the Sega Dreamcast
-3
arch/sh/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - config TRACE_IRQFLAGS_SUPPORT 4 - def_bool y 5 - 6 3 config SH_STANDARD_BIOS 7 4 bool "Use LinuxSH standard BIOS" 8 5 help
+1
arch/sparc/Kconfig
··· 50 50 select NEED_DMA_MAP_STATE 51 51 select NEED_SG_DMA_LENGTH 52 52 select SET_FS 53 + select TRACE_IRQFLAGS_SUPPORT 53 54 54 55 config SPARC32 55 56 def_bool !64BIT
-4
arch/sparc/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - config TRACE_IRQFLAGS_SUPPORT 4 - bool 5 - default y 6 - 7 3 config DEBUG_DCFLUSH 8 4 bool "D-cache flush debugging" 9 5 depends on SPARC64 && DEBUG_KERNEL
+1 -4
arch/um/Kconfig
··· 20 20 select GENERIC_CPU_DEVICES 21 21 select HAVE_GCC_PLUGINS 22 22 select SET_FS 23 + select TRACE_IRQFLAGS_SUPPORT 23 24 select TTY # Needed for line.c 24 25 25 26 config MMU ··· 50 49 51 50 config SBUS 52 51 bool 53 - 54 - config TRACE_IRQFLAGS_SUPPORT 55 - bool 56 - default y 57 52 58 53 config LOCKDEP_SUPPORT 59 54 bool
+1
arch/x86/Kconfig
··· 261 261 select STACK_VALIDATION if HAVE_STACK_VALIDATION && (HAVE_STATIC_CALL_INLINE || RETPOLINE) 262 262 select SYSCTL_EXCEPTION_TRACE 263 263 select THREAD_INFO_IN_TASK 264 + select TRACE_IRQFLAGS_SUPPORT 264 265 select USER_STACKTRACE_SUPPORT 265 266 select VIRT_TO_BUS 266 267 select HAVE_ARCH_KCSAN if X86_64
-3
arch/x86/Kconfig.debug
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - config TRACE_IRQFLAGS_SUPPORT 4 - def_bool y 5 - 6 3 config TRACE_IRQFLAGS_NMI_SUPPORT 7 4 def_bool y 8 5
+1 -3
arch/xtensa/Kconfig
··· 41 41 select MODULES_USE_ELF_RELA 42 42 select PERF_USE_VMALLOC 43 43 select SET_FS 44 + select TRACE_IRQFLAGS_SUPPORT 44 45 select VIRT_TO_BUS 45 46 help 46 47 Xtensa processors are 32-bit RISC machines designed by Tensilica ··· 71 70 def_bool y 72 71 73 72 config STACKTRACE_SUPPORT 74 - def_bool y 75 - 76 - config TRACE_IRQFLAGS_SUPPORT 77 73 def_bool y 78 74 79 75 config MMU