@@ -773,7 +773,35 @@ config DEBUG_SHIRQ
773
773
Drivers ought to be able to handle interrupts coming in at those
774
774
points; some don't and need to be caught.
775
775
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.
777
805
778
806
config LOCKUP_DETECTOR
779
807
bool
@@ -931,34 +959,6 @@ config WQ_WATCHDOG
931
959
932
960
endmenu # "Debug lockups and hangs"
933
961
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
-
962
962
config SCHED_DEBUG
963
963
bool "Collect scheduler debugging info"
964
964
depends on DEBUG_KERNEL && PROC_FS
0 commit comments