aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /lib/Kconfig.debug
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug61
1 files changed, 51 insertions, 10 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 234ceb10861f..935248bdbc47 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -103,9 +103,10 @@ config HEADERS_CHECK
103 103
104config DEBUG_SECTION_MISMATCH 104config 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 resonable 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)
110 help 111 help
111 The section mismatch analysis checks if there are illegal 112 The section mismatch analysis checks if there are illegal
@@ -298,6 +299,14 @@ config DEBUG_OBJECTS_TIMERS
298 timer routines to track the life time of timer objects and 299 timer routines to track the life time of timer objects and
299 validate the timer operations. 300 validate the timer operations.
300 301
302config DEBUG_OBJECTS_WORK
303 bool "Debug work objects"
304 depends on DEBUG_OBJECTS
305 help
306 If you say Y here, additional code will be inserted into the
307 work queue routines to track the life time of work objects and
308 validate the work operations.
309
301config DEBUG_OBJECTS_ENABLE_DEFAULT 310config DEBUG_OBJECTS_ENABLE_DEFAULT
302 int "debug_objects bootup default value (0-1)" 311 int "debug_objects bootup default value (0-1)"
303 range 0 1 312 range 0 1
@@ -347,11 +356,12 @@ config SLUB_STATS
347config DEBUG_KMEMLEAK 356config DEBUG_KMEMLEAK
348 bool "Kernel memory leak detector" 357 bool "Kernel memory leak detector"
349 depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ 358 depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
350 (X86 || ARM || PPC || S390) 359 (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE)
351 360
352 select DEBUG_FS if SYSFS 361 select DEBUG_FS if SYSFS
353 select STACKTRACE if STACKTRACE_SUPPORT 362 select STACKTRACE if STACKTRACE_SUPPORT
354 select KALLSYMS 363 select KALLSYMS
364 select CRC32
355 help 365 help
356 Say Y here if you want to enable the memory leak 366 Say Y here if you want to enable the memory leak
357 detector. The memory allocation/freeing is traced in a way 367 detector. The memory allocation/freeing is traced in a way
@@ -490,6 +500,18 @@ config PROVE_LOCKING
490 500
491 For more details, see Documentation/lockdep-design.txt. 501 For more details, see Documentation/lockdep-design.txt.
492 502
503config 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
493config LOCKDEP 515config LOCKDEP
494 bool 516 bool
495 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 517 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
@@ -511,6 +533,14 @@ config LOCK_STAT
511 533
512 For more details, see Documentation/lockstat.txt 534 For more details, see Documentation/lockstat.txt
513 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
514config DEBUG_LOCKDEP 544config DEBUG_LOCKDEP
515 bool "Lock dependency engine debugging" 545 bool "Lock dependency engine debugging"
516 depends on DEBUG_KERNEL && LOCKDEP 546 depends on DEBUG_KERNEL && LOCKDEP
@@ -567,7 +597,7 @@ config DEBUG_BUGVERBOSE
567 depends on BUG 597 depends on BUG
568 depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \ 598 depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \
569 FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300 599 FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300
570 default !EMBEDDED 600 default y
571 help 601 help
572 Say Y here to make BUG() panics output the file name and line number 602 Say Y here to make BUG() panics output the file name and line number
573 of the BUG call as well as the EIP and oops trace. This aids 603 of the BUG call as well as the EIP and oops trace. This aids
@@ -750,16 +780,28 @@ config RCU_TORTURE_TEST_RUNNABLE
750config RCU_CPU_STALL_DETECTOR 780config RCU_CPU_STALL_DETECTOR
751 bool "Check for stalled CPUs delaying RCU grace periods" 781 bool "Check for stalled CPUs delaying RCU grace periods"
752 depends on TREE_RCU || TREE_PREEMPT_RCU 782 depends on TREE_RCU || TREE_PREEMPT_RCU
753 default n 783 default y
754 help 784 help
755 This option causes RCU to printk information on which 785 This option causes RCU to printk information on which
756 CPUs are delaying the current grace period, but only when 786 CPUs are delaying the current grace period, but only when
757 the grace period extends for excessive time periods. 787 the grace period extends for excessive time periods.
758 788
759 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
793config 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.
760 800
761 Say N if you are unsure. 801 Say N if you are unsure.
762 802
803 Say Y if you want to enable such checks.
804
763config KPROBES_SANITY_TEST 805config KPROBES_SANITY_TEST
764 bool "Kprobes sanity tests" 806 bool "Kprobes sanity tests"
765 depends on DEBUG_KERNEL 807 depends on DEBUG_KERNEL
@@ -831,8 +873,7 @@ config DEBUG_FORCE_WEAK_PER_CPU
831 873
832config LKDTM 874config LKDTM
833 tristate "Linux Kernel Dump Test Tool Module" 875 tristate "Linux Kernel Dump Test Tool Module"
834 depends on DEBUG_KERNEL 876 depends on DEBUG_FS
835 depends on KPROBES
836 depends on BLOCK 877 depends on BLOCK
837 default n 878 default n
838 help 879 help
@@ -843,7 +884,7 @@ config LKDTM
843 called lkdtm. 884 called lkdtm.
844 885
845 Documentation on how to use the module can be found in 886 Documentation on how to use the module can be found in
846 drivers/misc/lkdtm.c 887 Documentation/fault-injection/provoke-crashes.txt
847 888
848config FAULT_INJECTION 889config FAULT_INJECTION
849 bool "Fault-injection framework" 890 bool "Fault-injection framework"
@@ -912,7 +953,7 @@ config LATENCYTOP
912 953
913config SYSCTL_SYSCALL_CHECK 954config SYSCTL_SYSCALL_CHECK
914 bool "Sysctl checks" 955 bool "Sysctl checks"
915 depends on SYSCTL_SYSCALL 956 depends on SYSCTL
916 ---help--- 957 ---help---
917 sys_sysctl uses binary paths that have been found challenging 958 sys_sysctl uses binary paths that have been found challenging
918 to properly maintain and use. This enables checks that help 959 to properly maintain and use. This enables checks that help