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 e2e73cc17a91..220ae6063b6f 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) |
@@ -367,7 +368,7 @@ config SLUB_STATS | |||
367 | config DEBUG_KMEMLEAK | 368 | config DEBUG_KMEMLEAK |
368 | bool "Kernel memory leak detector" | 369 | bool "Kernel memory leak detector" |
369 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ | 370 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ |
370 | (X86 || ARM || PPC || S390) | 371 | (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE) |
371 | 372 | ||
372 | select DEBUG_FS if SYSFS | 373 | select DEBUG_FS if SYSFS |
373 | select STACKTRACE if STACKTRACE_SUPPORT | 374 | select STACKTRACE if STACKTRACE_SUPPORT |
@@ -511,6 +512,18 @@ config PROVE_LOCKING | |||
511 | 512 | ||
512 | For more details, see Documentation/lockdep-design.txt. | 513 | For more details, see Documentation/lockdep-design.txt. |
513 | 514 | ||
515 | config PROVE_RCU | ||
516 | bool "RCU debugging: prove RCU correctness" | ||
517 | depends on PROVE_LOCKING | ||
518 | default n | ||
519 | help | ||
520 | This feature enables lockdep extensions that check for correct | ||
521 | use of RCU APIs. This is currently under development. Say Y | ||
522 | if you want to debug RCU usage or help work on the PROVE_RCU | ||
523 | feature. | ||
524 | |||
525 | Say N if you are unsure. | ||
526 | |||
514 | config LOCKDEP | 527 | config LOCKDEP |
515 | bool | 528 | bool |
516 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT | 529 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT |
@@ -532,6 +545,14 @@ config LOCK_STAT | |||
532 | 545 | ||
533 | For more details, see Documentation/lockstat.txt | 546 | For more details, see Documentation/lockstat.txt |
534 | 547 | ||
548 | This also enables lock events required by "perf lock", | ||
549 | subcommand of perf. | ||
550 | If you want to use "perf lock", you also need to turn on | ||
551 | CONFIG_EVENT_TRACING. | ||
552 | |||
553 | CONFIG_LOCK_STAT defines "contended" and "acquired" lock events. | ||
554 | (CONFIG_LOCKDEP defines "acquire" and "release" events.) | ||
555 | |||
535 | config DEBUG_LOCKDEP | 556 | config DEBUG_LOCKDEP |
536 | bool "Lock dependency engine debugging" | 557 | bool "Lock dependency engine debugging" |
537 | depends on DEBUG_KERNEL && LOCKDEP | 558 | depends on DEBUG_KERNEL && LOCKDEP |
@@ -777,10 +798,22 @@ config RCU_CPU_STALL_DETECTOR | |||
777 | CPUs are delaying the current grace period, but only when | 798 | CPUs are delaying the current grace period, but only when |
778 | the grace period extends for excessive time periods. | 799 | the grace period extends for excessive time periods. |
779 | 800 | ||
780 | Say Y if you want RCU to perform such checks. | 801 | Say N if you want to disable such checks. |
802 | |||
803 | Say Y if you are unsure. | ||
804 | |||
805 | config RCU_CPU_STALL_VERBOSE | ||
806 | bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR" | ||
807 | depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU | ||
808 | default n | ||
809 | help | ||
810 | This option causes RCU to printk detailed per-task information | ||
811 | for any tasks that are stalling the current RCU grace period. | ||
781 | 812 | ||
782 | Say N if you are unsure. | 813 | Say N if you are unsure. |
783 | 814 | ||
815 | Say Y if you want to enable such checks. | ||
816 | |||
784 | config KPROBES_SANITY_TEST | 817 | config KPROBES_SANITY_TEST |
785 | bool "Kprobes sanity tests" | 818 | bool "Kprobes sanity tests" |
786 | depends on DEBUG_KERNEL | 819 | depends on DEBUG_KERNEL |
@@ -852,8 +885,7 @@ config DEBUG_FORCE_WEAK_PER_CPU | |||
852 | 885 | ||
853 | config LKDTM | 886 | config LKDTM |
854 | tristate "Linux Kernel Dump Test Tool Module" | 887 | tristate "Linux Kernel Dump Test Tool Module" |
855 | depends on DEBUG_KERNEL | 888 | depends on DEBUG_FS |
856 | depends on KPROBES | ||
857 | depends on BLOCK | 889 | depends on BLOCK |
858 | default n | 890 | default n |
859 | help | 891 | help |
@@ -864,7 +896,7 @@ config LKDTM | |||
864 | called lkdtm. | 896 | called lkdtm. |
865 | 897 | ||
866 | Documentation on how to use the module can be found in | 898 | Documentation on how to use the module can be found in |
867 | drivers/misc/lkdtm.c | 899 | Documentation/fault-injection/provoke-crashes.txt |
868 | 900 | ||
869 | config FAULT_INJECTION | 901 | config FAULT_INJECTION |
870 | bool "Fault-injection framework" | 902 | bool "Fault-injection framework" |