diff options
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 138 |
1 files changed, 131 insertions, 7 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 9d9dc0ddf13a..aa81d2848448 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 |
@@ -367,7 +394,7 @@ config LOCKDEP | |||
367 | bool | 394 | bool |
368 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT | 395 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT |
369 | select STACKTRACE | 396 | select STACKTRACE |
370 | select FRAME_POINTER if !X86 && !MIPS | 397 | select FRAME_POINTER if !X86 && !MIPS && !PPC |
371 | select KALLSYMS | 398 | select KALLSYMS |
372 | select KALLSYMS_ALL | 399 | select KALLSYMS_ALL |
373 | 400 | ||
@@ -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 |
@@ -488,6 +514,18 @@ config DEBUG_WRITECOUNT | |||
488 | 514 | ||
489 | If unsure, say N. | 515 | If unsure, say N. |
490 | 516 | ||
517 | config DEBUG_MEMORY_INIT | ||
518 | bool "Debug memory initialisation" if EMBEDDED | ||
519 | default !EMBEDDED | ||
520 | help | ||
521 | Enable this for additional checks during memory initialisation. | ||
522 | The sanity checks verify aspects of the VM such as the memory model | ||
523 | and other information provided by the architecture. Verbose | ||
524 | information will be printed at KERN_DEBUG loglevel depending | ||
525 | on the mminit_loglevel= command-line option. | ||
526 | |||
527 | If unsure, say Y | ||
528 | |||
491 | config DEBUG_LIST | 529 | config DEBUG_LIST |
492 | bool "Debug linked list manipulation" | 530 | bool "Debug linked list manipulation" |
493 | depends on DEBUG_KERNEL | 531 | depends on DEBUG_KERNEL |
@@ -540,16 +578,47 @@ config BOOT_PRINTK_DELAY | |||
540 | config RCU_TORTURE_TEST | 578 | config RCU_TORTURE_TEST |
541 | tristate "torture tests for RCU" | 579 | tristate "torture tests for RCU" |
542 | depends on DEBUG_KERNEL | 580 | depends on DEBUG_KERNEL |
543 | depends on m | ||
544 | default n | 581 | default n |
545 | help | 582 | help |
546 | This option provides a kernel module that runs torture tests | 583 | This option provides a kernel module that runs torture tests |
547 | on the RCU infrastructure. The kernel module may be built | 584 | on the RCU infrastructure. The kernel module may be built |
548 | after the fact on the running kernel to be tested, if desired. | 585 | after the fact on the running kernel to be tested, if desired. |
549 | 586 | ||
587 | Say Y here if you want RCU torture tests to be built into | ||
588 | the kernel. | ||
550 | Say M if you want the RCU torture tests to build as a module. | 589 | Say M if you want the RCU torture tests to build as a module. |
551 | Say N if you are unsure. | 590 | Say N if you are unsure. |
552 | 591 | ||
592 | config RCU_TORTURE_TEST_RUNNABLE | ||
593 | bool "torture tests for RCU runnable by default" | ||
594 | depends on RCU_TORTURE_TEST = y | ||
595 | default n | ||
596 | help | ||
597 | This option provides a way to build the RCU torture tests | ||
598 | directly into the kernel without them starting up at boot | ||
599 | time. You can use /proc/sys/kernel/rcutorture_runnable | ||
600 | to manually override this setting. This /proc file is | ||
601 | available only when the RCU torture tests have been built | ||
602 | into the kernel. | ||
603 | |||
604 | Say Y here if you want the RCU torture tests to start during | ||
605 | boot (you probably don't). | ||
606 | Say N here if you want the RCU torture tests to start only | ||
607 | after being manually enabled via /proc. | ||
608 | |||
609 | config RCU_CPU_STALL_DETECTOR | ||
610 | bool "Check for stalled CPUs delaying RCU grace periods" | ||
611 | depends on CLASSIC_RCU | ||
612 | default n | ||
613 | help | ||
614 | This option causes RCU to printk information on which | ||
615 | CPUs are delaying the current grace period, but only when | ||
616 | the grace period extends for excessive time periods. | ||
617 | |||
618 | Say Y if you want RCU to perform such checks. | ||
619 | |||
620 | Say N if you are unsure. | ||
621 | |||
553 | config KPROBES_SANITY_TEST | 622 | config KPROBES_SANITY_TEST |
554 | bool "Kprobes sanity tests" | 623 | bool "Kprobes sanity tests" |
555 | depends on DEBUG_KERNEL | 624 | depends on DEBUG_KERNEL |
@@ -572,6 +641,31 @@ config BACKTRACE_SELF_TEST | |||
572 | for distributions or general kernels, but only for kernel | 641 | for distributions or general kernels, but only for kernel |
573 | developers working on architecture code. | 642 | developers working on architecture code. |
574 | 643 | ||
644 | Note that if you want to also test saved backtraces, you will | ||
645 | have to enable STACKTRACE as well. | ||
646 | |||
647 | Say N if you are unsure. | ||
648 | |||
649 | config DEBUG_BLOCK_EXT_DEVT | ||
650 | bool "Force extended block device numbers and spread them" | ||
651 | depends on DEBUG_KERNEL | ||
652 | depends on BLOCK | ||
653 | default n | ||
654 | help | ||
655 | Conventionally, block device numbers are allocated from | ||
656 | predetermined contiguous area. However, extended block area | ||
657 | may introduce non-contiguous block device numbers. This | ||
658 | option forces most block device numbers to be allocated from | ||
659 | the extended space and spreads them to discover kernel or | ||
660 | userland code paths which assume predetermined contiguous | ||
661 | device number allocation. | ||
662 | |||
663 | Note that turning on this debug option shuffles all the | ||
664 | device numbers for all IDE and SCSI devices including libata | ||
665 | ones, so root partition specified using device number | ||
666 | directly (via rdev or root=MAJ:MIN) won't work anymore. | ||
667 | Textual device names (root=/dev/sdXn) will continue to work. | ||
668 | |||
575 | Say N if you are unsure. | 669 | Say N if you are unsure. |
576 | 670 | ||
577 | config LKDTM | 671 | config LKDTM |
@@ -611,10 +705,21 @@ config FAIL_PAGE_ALLOC | |||
611 | 705 | ||
612 | config FAIL_MAKE_REQUEST | 706 | config FAIL_MAKE_REQUEST |
613 | bool "Fault-injection capability for disk IO" | 707 | bool "Fault-injection capability for disk IO" |
614 | depends on FAULT_INJECTION | 708 | depends on FAULT_INJECTION && BLOCK |
615 | help | 709 | help |
616 | Provide fault-injection capability for disk IO. | 710 | Provide fault-injection capability for disk IO. |
617 | 711 | ||
712 | config FAIL_IO_TIMEOUT | ||
713 | bool "Faul-injection capability for faking disk interrupts" | ||
714 | depends on FAULT_INJECTION && BLOCK | ||
715 | help | ||
716 | Provide fault-injection capability on end IO handling. This | ||
717 | will make the block layer "forget" an interrupt as configured, | ||
718 | thus exercising the error handling. | ||
719 | |||
720 | Only works with drivers that use the generic timeout handling, | ||
721 | for others it wont do anything. | ||
722 | |||
618 | config FAULT_INJECTION_DEBUG_FS | 723 | config FAULT_INJECTION_DEBUG_FS |
619 | bool "Debugfs entries for fault-injection capabilities" | 724 | bool "Debugfs entries for fault-injection capabilities" |
620 | depends on FAULT_INJECTION && SYSFS && DEBUG_FS | 725 | depends on FAULT_INJECTION && SYSFS && DEBUG_FS |
@@ -626,13 +731,13 @@ config FAULT_INJECTION_STACKTRACE_FILTER | |||
626 | depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT | 731 | depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT |
627 | depends on !X86_64 | 732 | depends on !X86_64 |
628 | select STACKTRACE | 733 | select STACKTRACE |
629 | select FRAME_POINTER | 734 | select FRAME_POINTER if !PPC |
630 | help | 735 | help |
631 | Provide stacktrace filter for fault-injection capabilities | 736 | Provide stacktrace filter for fault-injection capabilities |
632 | 737 | ||
633 | config LATENCYTOP | 738 | config LATENCYTOP |
634 | bool "Latency measuring infrastructure" | 739 | bool "Latency measuring infrastructure" |
635 | select FRAME_POINTER if !MIPS | 740 | select FRAME_POINTER if !MIPS && !PPC |
636 | select KALLSYMS | 741 | select KALLSYMS |
637 | select KALLSYMS_ALL | 742 | select KALLSYMS_ALL |
638 | select STACKTRACE | 743 | select STACKTRACE |
@@ -643,6 +748,16 @@ config LATENCYTOP | |||
643 | Enable this option if you want to use the LatencyTOP tool | 748 | Enable this option if you want to use the LatencyTOP tool |
644 | to find out which userspace is blocking on what kernel operations. | 749 | to find out which userspace is blocking on what kernel operations. |
645 | 750 | ||
751 | config SYSCTL_SYSCALL_CHECK | ||
752 | bool "Sysctl checks" | ||
753 | depends on SYSCTL_SYSCALL | ||
754 | ---help--- | ||
755 | sys_sysctl uses binary paths that have been found challenging | ||
756 | to properly maintain and use. This enables checks that help | ||
757 | you to keep things correct. | ||
758 | |||
759 | source kernel/trace/Kconfig | ||
760 | |||
646 | config PROVIDE_OHCI1394_DMA_INIT | 761 | config PROVIDE_OHCI1394_DMA_INIT |
647 | bool "Remote debugging over FireWire early on boot" | 762 | bool "Remote debugging over FireWire early on boot" |
648 | depends on PCI && X86 | 763 | depends on PCI && X86 |
@@ -683,6 +798,15 @@ config FIREWIRE_OHCI_REMOTE_DMA | |||
683 | 798 | ||
684 | If unsure, say N. | 799 | If unsure, say N. |
685 | 800 | ||
801 | menuconfig BUILD_DOCSRC | ||
802 | bool "Build targets in Documentation/ tree" | ||
803 | depends on HEADERS_CHECK | ||
804 | help | ||
805 | This option attempts to build objects from the source files in the | ||
806 | kernel Documentation/ tree. | ||
807 | |||
808 | Say N if you are unsure. | ||
809 | |||
686 | source "samples/Kconfig" | 810 | source "samples/Kconfig" |
687 | 811 | ||
688 | source "lib/Kconfig.kgdb" | 812 | source "lib/Kconfig.kgdb" |