Skip to content

Commit

Permalink
tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
masahir0y authored and rostedt committed Aug 16, 2021
1 parent de32951 commit 4aae683
Show file tree
Hide file tree
Showing 27 changed files with 21 additions and 64 deletions.
3 changes: 3 additions & 0 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ config HAVE_FUNCTION_ERROR_INJECTION
config HAVE_NMI
bool

config TRACE_IRQFLAGS_SUPPORT
bool

#
# An arch should select this if it provides all these things:
#
Expand Down
4 changes: 1 addition & 3 deletions arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ config ARC
select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING
select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32
select SET_FS

config TRACE_IRQFLAGS_SUPPORT
def_bool y
select TRACE_IRQFLAGS_SUPPORT

config LOCKDEP_SUPPORT
def_bool y
Expand Down
5 changes: 1 addition & 4 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ config ARM
select RTC_LIB
select SET_FS
select SYS_SUPPORTS_APM_EMULATION
select TRACE_IRQFLAGS_SUPPORT if !CPU_V7M
# Above selects are sorted alphabetically; please add new ones
# according to that. Thanks.
help
Expand Down Expand Up @@ -191,10 +192,6 @@ config LOCKDEP_SUPPORT
bool
default y

config TRACE_IRQFLAGS_SUPPORT
bool
default !CPU_V7M

config ARCH_HAS_ILOG2_U32
bool

Expand Down
4 changes: 1 addition & 3 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ config ARM64
select SYSCTL_EXCEPTION_TRACE
select THREAD_INFO_IN_TASK
select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD
select TRACE_IRQFLAGS_SUPPORT
help
ARM 64-bit (AArch64) Linux support.

Expand Down Expand Up @@ -288,9 +289,6 @@ config ILLEGAL_POINTER_VALUE
config LOCKDEP_SUPPORT
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config GENERIC_BUG
def_bool y
depends on BUG
Expand Down
4 changes: 1 addition & 3 deletions arch/csky/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ config CSKY
select PCI_SYSCALL if PCI
select PCI_MSI if PCI
select SET_FS
select TRACE_IRQFLAGS_SUPPORT

config LOCKDEP_SUPPORT
def_bool y
Expand Down Expand Up @@ -139,9 +140,6 @@ config STACKTRACE_SUPPORT
config TIME_LOW_RES
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config CPU_TLB_SIZE
int
default "128" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
Expand Down
4 changes: 1 addition & 3 deletions arch/hexagon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ config HEXAGON
select GENERIC_CPU_DEVICES
select SET_FS
select ARCH_WANT_LD_ORPHAN_WARN
select TRACE_IRQFLAGS_SUPPORT
help
Qualcomm Hexagon is a processor architecture designed for high
performance and low power across a wide variety of applications.
Expand All @@ -52,9 +53,6 @@ config EARLY_PRINTK
config MMU
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config GENERIC_CSUM
def_bool y

Expand Down
1 change: 1 addition & 0 deletions arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ config MICROBLAZE
select SPARSE_IRQ
select SET_FS
select ZONE_DMA
select TRACE_IRQFLAGS_SUPPORT

# Endianness selection
choice
Expand Down
5 changes: 0 additions & 5 deletions arch/microblaze/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
# SPDX-License-Identifier: GPL-2.0-only
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.rst.

config TRACE_IRQFLAGS_SUPPORT
def_bool y
1 change: 1 addition & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ config MIPS
select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
select RTC_LIB
select SYSCTL_EXCEPTION_TRACE
select TRACE_IRQFLAGS_SUPPORT
select VIRT_TO_BUS
select ARCH_HAS_ELFCORE_COMPAT

Expand Down
4 changes: 0 additions & 4 deletions arch/mips/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

config TRACE_IRQFLAGS_SUPPORT
bool
default y

config EARLY_PRINTK
bool "Early printk" if EXPERT
depends on SYS_HAS_EARLY_PRINTK
Expand Down
4 changes: 1 addition & 3 deletions arch/nds32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ config NDS32
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_DYNAMIC_FTRACE
select SET_FS
select TRACE_IRQFLAGS_SUPPORT
help
Andes(nds32) Linux support.

Expand All @@ -64,9 +65,6 @@ config GENERIC_LOCKBREAK
def_bool y
depends on PREEMPTION

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config STACKTRACE_SUPPORT
def_bool y

Expand Down
3 changes: 0 additions & 3 deletions arch/nios2/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ config NO_IOPORT_MAP
config FPU
def_bool n

config TRACE_IRQFLAGS_SUPPORT
def_bool n

menu "Kernel features"

source "kernel/Kconfig.hz"
Expand Down
4 changes: 1 addition & 3 deletions arch/openrisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ config OPENRISC
select GENERIC_IRQ_MULTI_HANDLER
select MMU_GATHER_NO_RANGE if MMU
select SET_FS
select TRACE_IRQFLAGS_SUPPORT

config CPU_BIG_ENDIAN
def_bool y
Expand All @@ -52,9 +53,6 @@ config GENERIC_HWEIGHT
config NO_IOPORT_MAP
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y

# For now, use generic checksum functions
#These can be reimplemented in assembly later if so inclined
config GENERIC_CSUM
Expand Down
1 change: 1 addition & 0 deletions arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ config PARISC
select HAVE_DYNAMIC_FTRACE_WITH_REGS
select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
select SET_FS
select TRACE_IRQFLAGS_SUPPORT

help
The PA-RISC microprocessor is designed by Hewlett-Packard and used
Expand Down
3 changes: 0 additions & 3 deletions arch/parisc/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# SPDX-License-Identifier: GPL-2.0

config TRACE_IRQFLAGS_SUPPORT
def_bool y
5 changes: 1 addition & 4 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ config STACKTRACE_SUPPORT
bool
default y

config TRACE_IRQFLAGS_SUPPORT
bool
default y

config LOCKDEP_SUPPORT
bool
default y
Expand Down Expand Up @@ -271,6 +267,7 @@ config PPC
select STRICT_KERNEL_RWX if STRICT_MODULE_RWX
select SYSCTL_EXCEPTION_TRACE
select THREAD_INFO_IN_TASK
select TRACE_IRQFLAGS_SUPPORT
select VIRT_TO_BUS if !PPC64
#
# Please keep this list sorted alphabetically.
Expand Down
4 changes: 1 addition & 3 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ config RISCV
select SPARSE_IRQ
select SYSCTL_EXCEPTION_TRACE
select THREAD_INFO_IN_TASK
select TRACE_IRQFLAGS_SUPPORT
select UACCESS_MEMCPY if !MMU
select ZONE_DMA32 if 64BIT

Expand Down Expand Up @@ -178,9 +179,6 @@ config ARCH_SUPPORTS_UPROBES
config STACKTRACE_SUPPORT
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config GENERIC_BUG
def_bool y
depends on BUG
Expand Down
1 change: 1 addition & 0 deletions arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ config S390
select SWIOTLB
select SYSCTL_EXCEPTION_TRACE
select THREAD_INFO_IN_TASK
select TRACE_IRQFLAGS_SUPPORT
select TTY
select VIRT_CPU_ACCOUNTING
select ZONE_DMA
Expand Down
3 changes: 0 additions & 3 deletions arch/s390/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config EARLY_PRINTK
def_bool y

Expand Down
1 change: 1 addition & 0 deletions arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ config SUPERH
select RTC_LIB
select SET_FS
select SPARSE_IRQ
select TRACE_IRQFLAGS_SUPPORT
help
The SuperH is a RISC processor targeted for use in embedded systems
and consumer electronics; it was also used in the Sega Dreamcast
Expand Down
3 changes: 0 additions & 3 deletions arch/sh/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config SH_STANDARD_BIOS
bool "Use LinuxSH standard BIOS"
help
Expand Down
1 change: 1 addition & 0 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ config SPARC
select NEED_DMA_MAP_STATE
select NEED_SG_DMA_LENGTH
select SET_FS
select TRACE_IRQFLAGS_SUPPORT

config SPARC32
def_bool !64BIT
Expand Down
4 changes: 0 additions & 4 deletions arch/sparc/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

config TRACE_IRQFLAGS_SUPPORT
bool
default y

config DEBUG_DCFLUSH
bool "D-cache flush debugging"
depends on SPARC64 && DEBUG_KERNEL
Expand Down
5 changes: 1 addition & 4 deletions arch/um/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ config UML
select GENERIC_CPU_DEVICES
select HAVE_GCC_PLUGINS
select SET_FS
select TRACE_IRQFLAGS_SUPPORT
select TTY # Needed for line.c

config MMU
Expand Down Expand Up @@ -50,10 +51,6 @@ config ISA
config SBUS
bool

config TRACE_IRQFLAGS_SUPPORT
bool
default y

config LOCKDEP_SUPPORT
bool
default y
Expand Down
1 change: 1 addition & 0 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ config X86
select STACK_VALIDATION if HAVE_STACK_VALIDATION && (HAVE_STATIC_CALL_INLINE || RETPOLINE)
select SYSCTL_EXCEPTION_TRACE
select THREAD_INFO_IN_TASK
select TRACE_IRQFLAGS_SUPPORT
select USER_STACKTRACE_SUPPORT
select VIRT_TO_BUS
select HAVE_ARCH_KCSAN if X86_64
Expand Down
3 changes: 0 additions & 3 deletions arch/x86/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config TRACE_IRQFLAGS_NMI_SUPPORT
def_bool y

Expand Down
4 changes: 1 addition & 3 deletions arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ config XTENSA
select MODULES_USE_ELF_RELA
select PERF_USE_VMALLOC
select SET_FS
select TRACE_IRQFLAGS_SUPPORT
select VIRT_TO_BUS
help
Xtensa processors are 32-bit RISC machines designed by Tensilica
Expand Down Expand Up @@ -72,9 +73,6 @@ config LOCKDEP_SUPPORT
config STACKTRACE_SUPPORT
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y

config MMU
def_bool n

Expand Down

0 comments on commit 4aae683

Please sign in to comment.