diff options
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 55 |
1 files changed, 52 insertions, 3 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index d2099f41aa1e..882c51048993 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -74,6 +74,9 @@ config DEBUG_FS | |||
74 | debugging files into. Enable this option to be able to read and | 74 | debugging files into. Enable this option to be able to read and |
75 | write to these files. | 75 | write to these files. |
76 | 76 | ||
77 | For detailed documentation on the debugfs API, see | ||
78 | Documentation/DocBook/filesystems. | ||
79 | |||
77 | If unsure, say N. | 80 | If unsure, say N. |
78 | 81 | ||
79 | config HEADERS_CHECK | 82 | config HEADERS_CHECK |
@@ -147,7 +150,7 @@ config DETECT_SOFTLOCKUP | |||
147 | help | 150 | help |
148 | Say Y here to enable the kernel to detect "soft lockups", | 151 | Say Y here to enable the kernel to detect "soft lockups", |
149 | which are bugs that cause the kernel to loop in kernel | 152 | which are bugs that cause the kernel to loop in kernel |
150 | mode for more than 10 seconds, without giving other tasks a | 153 | mode for more than 60 seconds, without giving other tasks a |
151 | chance to run. | 154 | chance to run. |
152 | 155 | ||
153 | When a soft-lockup is detected, the kernel will print the | 156 | When a soft-lockup is detected, the kernel will print the |
@@ -159,6 +162,30 @@ config DETECT_SOFTLOCKUP | |||
159 | can be detected via the NMI-watchdog, on platforms that | 162 | can be detected via the NMI-watchdog, on platforms that |
160 | support it.) | 163 | support it.) |
161 | 164 | ||
165 | config BOOTPARAM_SOFTLOCKUP_PANIC | ||
166 | bool "Panic (Reboot) On Soft Lockups" | ||
167 | depends on DETECT_SOFTLOCKUP | ||
168 | help | ||
169 | Say Y here to enable the kernel to panic on "soft lockups", | ||
170 | which are bugs that cause the kernel to loop in kernel | ||
171 | mode for more than 60 seconds, without giving other tasks a | ||
172 | chance to run. | ||
173 | |||
174 | The panic can be used in combination with panic_timeout, | ||
175 | to cause the system to reboot automatically after a | ||
176 | lockup has been detected. This feature is useful for | ||
177 | high-availability systems that have uptime guarantees and | ||
178 | where a lockup must be resolved ASAP. | ||
179 | |||
180 | Say N if unsure. | ||
181 | |||
182 | config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE | ||
183 | int | ||
184 | depends on DETECT_SOFTLOCKUP | ||
185 | range 0 1 | ||
186 | default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC | ||
187 | default 1 if BOOTPARAM_SOFTLOCKUP_PANIC | ||
188 | |||
162 | config SCHED_DEBUG | 189 | config SCHED_DEBUG |
163 | bool "Collect scheduler debugging info" | 190 | bool "Collect scheduler debugging info" |
164 | depends on DEBUG_KERNEL && PROC_FS | 191 | depends on DEBUG_KERNEL && PROC_FS |
@@ -419,7 +446,6 @@ config DEBUG_LOCKING_API_SELFTESTS | |||
419 | 446 | ||
420 | config STACKTRACE | 447 | config STACKTRACE |
421 | bool | 448 | bool |
422 | depends on DEBUG_KERNEL | ||
423 | depends on STACKTRACE_SUPPORT | 449 | depends on STACKTRACE_SUPPORT |
424 | 450 | ||
425 | config DEBUG_KOBJECT | 451 | config DEBUG_KOBJECT |
@@ -531,16 +557,34 @@ config BOOT_PRINTK_DELAY | |||
531 | config RCU_TORTURE_TEST | 557 | config RCU_TORTURE_TEST |
532 | tristate "torture tests for RCU" | 558 | tristate "torture tests for RCU" |
533 | depends on DEBUG_KERNEL | 559 | depends on DEBUG_KERNEL |
534 | depends on m | ||
535 | default n | 560 | default n |
536 | help | 561 | help |
537 | This option provides a kernel module that runs torture tests | 562 | This option provides a kernel module that runs torture tests |
538 | on the RCU infrastructure. The kernel module may be built | 563 | on the RCU infrastructure. The kernel module may be built |
539 | after the fact on the running kernel to be tested, if desired. | 564 | after the fact on the running kernel to be tested, if desired. |
540 | 565 | ||
566 | Say Y here if you want RCU torture tests to be built into | ||
567 | the kernel. | ||
541 | Say M if you want the RCU torture tests to build as a module. | 568 | Say M if you want the RCU torture tests to build as a module. |
542 | Say N if you are unsure. | 569 | Say N if you are unsure. |
543 | 570 | ||
571 | config RCU_TORTURE_TEST_RUNNABLE | ||
572 | bool "torture tests for RCU runnable by default" | ||
573 | depends on RCU_TORTURE_TEST = y | ||
574 | default n | ||
575 | help | ||
576 | This option provides a way to build the RCU torture tests | ||
577 | directly into the kernel without them starting up at boot | ||
578 | time. You can use /proc/sys/kernel/rcutorture_runnable | ||
579 | to manually override this setting. This /proc file is | ||
580 | available only when the RCU torture tests have been built | ||
581 | into the kernel. | ||
582 | |||
583 | Say Y here if you want the RCU torture tests to start during | ||
584 | boot (you probably don't). | ||
585 | Say N here if you want the RCU torture tests to start only | ||
586 | after being manually enabled via /proc. | ||
587 | |||
544 | config KPROBES_SANITY_TEST | 588 | config KPROBES_SANITY_TEST |
545 | bool "Kprobes sanity tests" | 589 | bool "Kprobes sanity tests" |
546 | depends on DEBUG_KERNEL | 590 | depends on DEBUG_KERNEL |
@@ -563,6 +607,9 @@ config BACKTRACE_SELF_TEST | |||
563 | for distributions or general kernels, but only for kernel | 607 | for distributions or general kernels, but only for kernel |
564 | developers working on architecture code. | 608 | developers working on architecture code. |
565 | 609 | ||
610 | Note that if you want to also test saved backtraces, you will | ||
611 | have to enable STACKTRACE as well. | ||
612 | |||
566 | Say N if you are unsure. | 613 | Say N if you are unsure. |
567 | 614 | ||
568 | config LKDTM | 615 | config LKDTM |
@@ -634,6 +681,8 @@ config LATENCYTOP | |||
634 | Enable this option if you want to use the LatencyTOP tool | 681 | Enable this option if you want to use the LatencyTOP tool |
635 | to find out which userspace is blocking on what kernel operations. | 682 | to find out which userspace is blocking on what kernel operations. |
636 | 683 | ||
684 | source kernel/trace/Kconfig | ||
685 | |||
637 | config PROVIDE_OHCI1394_DMA_INIT | 686 | config PROVIDE_OHCI1394_DMA_INIT |
638 | bool "Remote debugging over FireWire early on boot" | 687 | bool "Remote debugging over FireWire early on boot" |
639 | depends on PCI && X86 | 688 | depends on PCI && X86 |