Skip to content

Commit 92aef8f

Browse files
hansendctorvalds
authored andcommitted
hang and lockup detection menu
The hard/softlockup and hung-task entries take up 6 lines of screen real-estate when enabled. I bet folks don't mess with these _that_ often, so move them in a group down a level. Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 604ff0d commit 92aef8f

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

lib/Kconfig.debug

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@ config DEBUG_SHIRQ
604604
Drivers ought to be able to handle interrupts coming in at those
605605
points; some don't and need to be caught.
606606

607+
menu "Debug Lockups and Hangs"
608+
607609
config LOCKUP_DETECTOR
608610
bool "Detect Hard and Soft Lockups"
609611
depends on DEBUG_KERNEL && !S390
@@ -675,25 +677,6 @@ config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE
675677
default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC
676678
default 1 if BOOTPARAM_SOFTLOCKUP_PANIC
677679

678-
config PANIC_ON_OOPS
679-
bool "Panic on Oops"
680-
help
681-
Say Y here to enable the kernel to panic when it oopses. This
682-
has the same effect as setting oops=panic on the kernel command
683-
line.
684-
685-
This feature is useful to ensure that the kernel does not do
686-
anything erroneous after an oops which could result in data
687-
corruption or other issues.
688-
689-
Say N if unsure.
690-
691-
config PANIC_ON_OOPS_VALUE
692-
int
693-
range 0 1
694-
default 0 if !PANIC_ON_OOPS
695-
default 1 if PANIC_ON_OOPS
696-
697680
config DETECT_HUNG_TASK
698681
bool "Detect Hung Tasks"
699682
depends on DEBUG_KERNEL
@@ -748,6 +731,27 @@ config BOOTPARAM_HUNG_TASK_PANIC_VALUE
748731
default 0 if !BOOTPARAM_HUNG_TASK_PANIC
749732
default 1 if BOOTPARAM_HUNG_TASK_PANIC
750733

734+
endmenu # "Debug lockups and hangs"
735+
736+
config PANIC_ON_OOPS
737+
bool "Panic on Oops"
738+
help
739+
Say Y here to enable the kernel to panic when it oopses. This
740+
has the same effect as setting oops=panic on the kernel command
741+
line.
742+
743+
This feature is useful to ensure that the kernel does not do
744+
anything erroneous after an oops which could result in data
745+
corruption or other issues.
746+
747+
Say N if unsure.
748+
749+
config PANIC_ON_OOPS_VALUE
750+
int
751+
range 0 1
752+
default 0 if !PANIC_ON_OOPS
753+
default 1 if PANIC_ON_OOPS
754+
751755
config SCHED_DEBUG
752756
bool "Collect scheduler debugging info"
753757
depends on DEBUG_KERNEL && PROC_FS

0 commit comments

Comments
 (0)