diff options
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 44 |
1 files changed, 38 insertions, 6 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 3676c517a073..231384012a14 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -103,7 +103,8 @@ config HEADERS_CHECK | |||
103 | 103 | ||
104 | config DEBUG_SECTION_MISMATCH | 104 | config DEBUG_SECTION_MISMATCH |
105 | bool "Enable full Section mismatch analysis" | 105 | bool "Enable full Section mismatch analysis" |
106 | depends on UNDEFINED | 106 | depends on UNDEFINED || (BLACKFIN) |
107 | default y | ||
107 | # This option is on purpose disabled for now. | 108 | # This option is on purpose disabled for now. |
108 | # It will be enabled when we are down to a reasonable number | 109 | # It will be enabled when we are down to a reasonable number |
109 | # of section mismatch warnings (< 10 for an allyesconfig build) | 110 | # of section mismatch warnings (< 10 for an allyesconfig build) |
@@ -355,7 +356,7 @@ config SLUB_STATS | |||
355 | config DEBUG_KMEMLEAK | 356 | config DEBUG_KMEMLEAK |
356 | bool "Kernel memory leak detector" | 357 | bool "Kernel memory leak detector" |
357 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ | 358 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ |
358 | (X86 || ARM || PPC || S390) | 359 | (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE) |
359 | 360 | ||
360 | select DEBUG_FS if SYSFS | 361 | select DEBUG_FS if SYSFS |
361 | select STACKTRACE if STACKTRACE_SUPPORT | 362 | select STACKTRACE if STACKTRACE_SUPPORT |
@@ -499,6 +500,18 @@ config PROVE_LOCKING | |||
499 | 500 | ||
500 | For more details, see Documentation/lockdep-design.txt. | 501 | For more details, see Documentation/lockdep-design.txt. |
501 | 502 | ||
503 | config PROVE_RCU | ||
504 | bool "RCU debugging: prove RCU correctness" | ||
505 | depends on PROVE_LOCKING | ||
506 | default n | ||
507 | help | ||
508 | This feature enables lockdep extensions that check for correct | ||
509 | use of RCU APIs. This is currently under development. Say Y | ||
510 | if you want to debug RCU usage or help work on the PROVE_RCU | ||
511 | feature. | ||
512 | |||
513 | Say N if you are unsure. | ||
514 | |||
502 | config LOCKDEP | 515 | config LOCKDEP |
503 | bool | 516 | bool |
504 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT | 517 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT |
@@ -520,6 +533,14 @@ config LOCK_STAT | |||
520 | 533 | ||
521 | For more details, see Documentation/lockstat.txt | 534 | For more details, see Documentation/lockstat.txt |
522 | 535 | ||
536 | This also enables lock events required by "perf lock", | ||
537 | subcommand of perf. | ||
538 | If you want to use "perf lock", you also need to turn on | ||
539 | CONFIG_EVENT_TRACING. | ||
540 | |||
541 | CONFIG_LOCK_STAT defines "contended" and "acquired" lock events. | ||
542 | (CONFIG_LOCKDEP defines "acquire" and "release" events.) | ||
543 | |||
523 | config DEBUG_LOCKDEP | 544 | config DEBUG_LOCKDEP |
524 | bool "Lock dependency engine debugging" | 545 | bool "Lock dependency engine debugging" |
525 | depends on DEBUG_KERNEL && LOCKDEP | 546 | depends on DEBUG_KERNEL && LOCKDEP |
@@ -765,10 +786,22 @@ config RCU_CPU_STALL_DETECTOR | |||
765 | CPUs are delaying the current grace period, but only when | 786 | CPUs are delaying the current grace period, but only when |
766 | the grace period extends for excessive time periods. | 787 | the grace period extends for excessive time periods. |
767 | 788 | ||
768 | Say Y if you want RCU to perform such checks. | 789 | Say N if you want to disable such checks. |
790 | |||
791 | Say Y if you are unsure. | ||
792 | |||
793 | config RCU_CPU_STALL_VERBOSE | ||
794 | bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR" | ||
795 | depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU | ||
796 | default n | ||
797 | help | ||
798 | This option causes RCU to printk detailed per-task information | ||
799 | for any tasks that are stalling the current RCU grace period. | ||
769 | 800 | ||
770 | Say N if you are unsure. | 801 | Say N if you are unsure. |
771 | 802 | ||
803 | Say Y if you want to enable such checks. | ||
804 | |||
772 | config KPROBES_SANITY_TEST | 805 | config KPROBES_SANITY_TEST |
773 | bool "Kprobes sanity tests" | 806 | bool "Kprobes sanity tests" |
774 | depends on DEBUG_KERNEL | 807 | depends on DEBUG_KERNEL |
@@ -840,8 +873,7 @@ config DEBUG_FORCE_WEAK_PER_CPU | |||
840 | 873 | ||
841 | config LKDTM | 874 | config LKDTM |
842 | tristate "Linux Kernel Dump Test Tool Module" | 875 | tristate "Linux Kernel Dump Test Tool Module" |
843 | depends on DEBUG_KERNEL | 876 | depends on DEBUG_FS |
844 | depends on KPROBES | ||
845 | depends on BLOCK | 877 | depends on BLOCK |
846 | default n | 878 | default n |
847 | help | 879 | help |
@@ -852,7 +884,7 @@ config LKDTM | |||
852 | called lkdtm. | 884 | called lkdtm. |
853 | 885 | ||
854 | Documentation on how to use the module can be found in | 886 | Documentation on how to use the module can be found in |
855 | drivers/misc/lkdtm.c | 887 | Documentation/fault-injection/provoke-crashes.txt |
856 | 888 | ||
857 | config FAULT_INJECTION | 889 | config FAULT_INJECTION |
858 | bool "Fault-injection framework" | 890 | bool "Fault-injection framework" |