Skip to content

Commit e61aca5

Browse files
committed
Merge branch 'kconfig-diet' from Dave Hansen
Merge Kconfig menu diet patches from Dave Hansen: "I think the "Kernel Hacking" menu has gotten a bit out of hand. It is over 120 lines long on my system with everything enabled and options are scattered around it haphazardly. http://sr71.net/~dave/linux/kconfig-horror.png Let's try to introduce some sanity. This set takes that 120 lines down to 55 and makes it vastly easier to find some things. It's a start. This set stands on its own, but there is plenty of room for follow-up patches. The arch-specific debug options still end up getting stuck in the top-level "kernel hacking" menu. OPTIMIZE_INLINING, for instance, could obviously go in to the "compiler options" menu, but the fact that it is defined in arch/ in a separate Kconfig file keeps it on its own for the moment. The Signed-off-by's in here look funky. I changed employers while working on this set, so I have signoffs from both email addresses" * emailed patches from Dave Hansen <dave@sr71.net>: hang and lockup detection menu kconfig: consolidate printk options group locking debugging options consolidate compilation option configs consolidate runtime testing configs order memory debugging Kconfig options consolidate per-arch stack overflow debugging options
2 parents da67db4 + 92aef8f commit e61aca5

File tree

24 files changed

+633
-665
lines changed

24 files changed

+633
-665
lines changed

arch/arc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ config ARC
3434
select OF
3535
select OF_EARLY_FLATTREE
3636
select PERF_USE_VMALLOC
37+
select HAVE_DEBUG_STACKOVERFLOW
3738

3839
config SCHED_OMIT_FRAME_POINTER
3940
def_bool y

arch/arc/Kconfig.debug

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ config EARLY_PRINTK
1515
with klogd/syslogd or the X server. You should normally N here,
1616
unless you want to debug such a crash.
1717

18-
config DEBUG_STACKOVERFLOW
19-
bool "Check for stack overflows"
20-
depends on DEBUG_KERNEL
21-
help
22-
This option will cause messages to be printed if free stack space
23-
drops below a certain limit.
24-
2518
config 16KSTACKS
2619
bool "Use 16Kb for kernel stacks instead of 8Kb"
2720
help

arch/blackfin/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ config BLACKFIN
4141
select ARCH_USES_GETTIMEOFFSET if !GENERIC_CLOCKEVENTS
4242
select HAVE_MOD_ARCH_SPECIFIC
4343
select MODULES_USE_ELF_RELA
44+
select HAVE_DEBUG_STACKOVERFLOW
4445

4546
config GENERIC_CSUM
4647
def_bool y

arch/blackfin/Kconfig.debug

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ menu "Kernel hacking"
22

33
source "lib/Kconfig.debug"
44

5-
config DEBUG_STACKOVERFLOW
6-
bool "Check for stack overflows"
7-
depends on DEBUG_KERNEL
8-
help
9-
This option will cause messages to be printed if free stack space
10-
drops below a certain limit.
11-
125
config DEBUG_VERBOSE
136
bool "Verbose fault messages"
147
default y

arch/frv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config FRV
1414
select ARCH_WANT_IPC_PARSE_VERSION
1515
select OLD_SIGSUSPEND3
1616
select OLD_SIGACTION
17+
select HAVE_DEBUG_STACKOVERFLOW
1718

1819
config ZONE_DMA
1920
bool

arch/frv/Kconfig.debug

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ menu "Kernel hacking"
22

33
source "lib/Kconfig.debug"
44

5-
config DEBUG_STACKOVERFLOW
6-
bool "Check for stack overflows"
7-
depends on DEBUG_KERNEL
8-
95
config GDBSTUB
106
bool "Remote GDB kernel debugging"
117
depends on DEBUG_KERNEL

arch/m32r/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ config M32R
1616
select GENERIC_ATOMIC64
1717
select ARCH_USES_GETTIMEOFFSET
1818
select MODULES_USE_ELF_RELA
19+
select HAVE_DEBUG_STACKOVERFLOW
1920

2021
config SBUS
2122
bool

arch/m32r/Kconfig.debug

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ menu "Kernel hacking"
22

33
source "lib/Kconfig.debug"
44

5-
config DEBUG_STACKOVERFLOW
6-
bool "Check for stack overflows"
7-
depends on DEBUG_KERNEL
8-
help
9-
This option will cause messages to be printed if free stack space
10-
drops below a certain limit.
11-
125
config DEBUG_PAGEALLOC
136
bool "Debug page memory allocations"
147
depends on DEBUG_KERNEL && BROKEN

arch/metag/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ config METAG
3030
select OF
3131
select OF_EARLY_FLATTREE
3232
select SPARSE_IRQ
33+
select HAVE_DEBUG_STACKOVERFLOW
3334

3435
config STACKTRACE_SUPPORT
3536
def_bool y

arch/metag/Kconfig.debug

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ config TRACE_IRQFLAGS_SUPPORT
66

77
source "lib/Kconfig.debug"
88

9-
config DEBUG_STACKOVERFLOW
10-
bool "Check for stack overflows"
11-
depends on DEBUG_KERNEL
12-
help
13-
This option will cause messages to be printed if free stack space
14-
drops below a certain limit.
15-
169
config 4KSTACKS
1710
bool "Use 4Kb for kernel stacks instead of 8Kb"
1811
depends on DEBUG_KERNEL

0 commit comments

Comments
 (0)