Skip to content

Commit f43a289

Browse files
changbindutorvalds
authored andcommitted
kernel-hacking: move Oops into 'Lockups and Hangs'
They are similar options so place them together. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Changbin Du <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 09a7495 commit f43a289

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

lib/Kconfig.debug

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,35 @@ config DEBUG_SHIRQ
773773
Drivers ought to be able to handle interrupts coming in at those
774774
points; some don't and need to be caught.
775775

776-
menu "Debug Lockups and Hangs"
776+
menu "Debug Oops, Lockups and Hangs"
777+
778+
config PANIC_ON_OOPS
779+
bool "Panic on Oops"
780+
help
781+
Say Y here to enable the kernel to panic when it oopses. This
782+
has the same effect as setting oops=panic on the kernel command
783+
line.
784+
785+
This feature is useful to ensure that the kernel does not do
786+
anything erroneous after an oops which could result in data
787+
corruption or other issues.
788+
789+
Say N if unsure.
790+
791+
config PANIC_ON_OOPS_VALUE
792+
int
793+
range 0 1
794+
default 0 if !PANIC_ON_OOPS
795+
default 1 if PANIC_ON_OOPS
796+
797+
config PANIC_TIMEOUT
798+
int "panic timeout"
799+
default 0
800+
help
801+
Set the timeout value (in seconds) until a reboot occurs when the
802+
the kernel panics. If n = 0, then we wait forever. A timeout
803+
value n > 0 will wait n seconds before rebooting, while a timeout
804+
value n < 0 will reboot immediately.
777805

778806
config LOCKUP_DETECTOR
779807
bool
@@ -931,34 +959,6 @@ config WQ_WATCHDOG
931959

932960
endmenu # "Debug lockups and hangs"
933961

934-
config PANIC_ON_OOPS
935-
bool "Panic on Oops"
936-
help
937-
Say Y here to enable the kernel to panic when it oopses. This
938-
has the same effect as setting oops=panic on the kernel command
939-
line.
940-
941-
This feature is useful to ensure that the kernel does not do
942-
anything erroneous after an oops which could result in data
943-
corruption or other issues.
944-
945-
Say N if unsure.
946-
947-
config PANIC_ON_OOPS_VALUE
948-
int
949-
range 0 1
950-
default 0 if !PANIC_ON_OOPS
951-
default 1 if PANIC_ON_OOPS
952-
953-
config PANIC_TIMEOUT
954-
int "panic timeout"
955-
default 0
956-
help
957-
Set the timeout value (in seconds) until a reboot occurs when the
958-
the kernel panics. If n = 0, then we wait forever. A timeout
959-
value n > 0 will wait n seconds before rebooting, while a timeout
960-
value n < 0 will reboot immediately.
961-
962962
config SCHED_DEBUG
963963
bool "Collect scheduler debugging info"
964964
depends on DEBUG_KERNEL && PROC_FS

0 commit comments

Comments
 (0)