aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-08-04 07:59:13 -0400
committerMichal Marek <mmarek@suse.cz>2010-08-04 07:59:13 -0400
commit772320e84588dcbe1600ffb83e5f328f2209ac2a (patch)
treea7de21b79340aeaa17c58126f6b801b82c77b53a /lib/Kconfig.debug
parent1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff)
parent9fe6206f400646a2322096b56c59891d530e8d51 (diff)
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts: arch/powerpc/Makefile
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug91
1 files changed, 77 insertions, 14 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 2af5d84ec824..083b23d211d6 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -103,7 +103,8 @@ 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 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
355config DEBUG_KMEMLEAK 356config 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,30 @@ 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
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
515config PROVE_RCU_REPEATEDLY
516 bool "RCU debugging: don't disable PROVE_RCU on first splat"
517 depends on PROVE_RCU
518 default n
519 help
520 By itself, PROVE_RCU will disable checking upon issuing the
521 first warning (or "splat"). This feature prevents such
522 disabling, allowing multiple RCU-lockdep warnings to be printed
523 on a single reboot.
524
525 Say N if you are unsure.
526
502config LOCKDEP 527config LOCKDEP
503 bool 528 bool
504 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 529 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
@@ -520,6 +545,14 @@ config LOCK_STAT
520 545
521 For more details, see Documentation/lockstat.txt 546 For more details, see Documentation/lockstat.txt
522 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
523config DEBUG_LOCKDEP 556config DEBUG_LOCKDEP
524 bool "Lock dependency engine debugging" 557 bool "Lock dependency engine debugging"
525 depends on DEBUG_KERNEL && LOCKDEP 558 depends on DEBUG_KERNEL && LOCKDEP
@@ -778,10 +811,22 @@ config RCU_CPU_STALL_DETECTOR
778 CPUs are delaying the current grace period, but only when 811 CPUs are delaying the current grace period, but only when
779 the grace period extends for excessive time periods. 812 the grace period extends for excessive time periods.
780 813
781 Say Y if you want RCU to perform such checks. 814 Say N if you want to disable such checks.
815
816 Say Y if you are unsure.
817
818config RCU_CPU_STALL_VERBOSE
819 bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR"
820 depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU
821 default y
822 help
823 This option causes RCU to printk detailed per-task information
824 for any tasks that are stalling the current RCU grace period.
782 825
783 Say N if you are unsure. 826 Say N if you are unsure.
784 827
828 Say Y if you want to enable such checks.
829
785config KPROBES_SANITY_TEST 830config KPROBES_SANITY_TEST
786 bool "Kprobes sanity tests" 831 bool "Kprobes sanity tests"
787 depends on DEBUG_KERNEL 832 depends on DEBUG_KERNEL
@@ -853,8 +898,7 @@ config DEBUG_FORCE_WEAK_PER_CPU
853 898
854config LKDTM 899config LKDTM
855 tristate "Linux Kernel Dump Test Tool Module" 900 tristate "Linux Kernel Dump Test Tool Module"
856 depends on DEBUG_KERNEL 901 depends on DEBUG_FS
857 depends on KPROBES
858 depends on BLOCK 902 depends on BLOCK
859 default n 903 default n
860 help 904 help
@@ -865,7 +909,19 @@ config LKDTM
865 called lkdtm. 909 called lkdtm.
866 910
867 Documentation on how to use the module can be found in 911 Documentation on how to use the module can be found in
868 drivers/misc/lkdtm.c 912 Documentation/fault-injection/provoke-crashes.txt
913
914config CPU_NOTIFIER_ERROR_INJECT
915 tristate "CPU notifier error injection module"
916 depends on HOTPLUG_CPU && DEBUG_KERNEL
917 help
918 This option provides a kernel module that can be used to test
919 the error handling of the cpu notifiers
920
921 To compile this code as a module, choose M here: the module will
922 be called cpu-notifier-error-inject.
923
924 If unsure, say N.
869 925
870config FAULT_INJECTION 926config FAULT_INJECTION
871 bool "Fault-injection framework" 927 bool "Fault-injection framework"
@@ -1008,10 +1064,10 @@ config DYNAMIC_DEBUG
1008 1064
1009 Usage: 1065 Usage:
1010 1066
1011 Dynamic debugging is controlled via the 'dynamic_debug/ddebug' file, 1067 Dynamic debugging is controlled via the 'dynamic_debug/control' file,
1012 which is contained in the 'debugfs' filesystem. Thus, the debugfs 1068 which is contained in the 'debugfs' filesystem. Thus, the debugfs
1013 filesystem must first be mounted before making use of this feature. 1069 filesystem must first be mounted before making use of this feature.
1014 We refer the control file as: <debugfs>/dynamic_debug/ddebug. This 1070 We refer the control file as: <debugfs>/dynamic_debug/control. This
1015 file contains a list of the debug statements that can be enabled. The 1071 file contains a list of the debug statements that can be enabled. The
1016 format for each line of the file is: 1072 format for each line of the file is:
1017 1073
@@ -1026,7 +1082,7 @@ config DYNAMIC_DEBUG
1026 1082
1027 From a live system: 1083 From a live system:
1028 1084
1029 nullarbor:~ # cat <debugfs>/dynamic_debug/ddebug 1085 nullarbor:~ # cat <debugfs>/dynamic_debug/control
1030 # filename:lineno [module]function flags format 1086 # filename:lineno [module]function flags format
1031 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" 1087 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012"
1032 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012" 1088 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012"
@@ -1036,23 +1092,23 @@ config DYNAMIC_DEBUG
1036 1092
1037 // enable the message at line 1603 of file svcsock.c 1093 // enable the message at line 1603 of file svcsock.c
1038 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' > 1094 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
1039 <debugfs>/dynamic_debug/ddebug 1095 <debugfs>/dynamic_debug/control
1040 1096
1041 // enable all the messages in file svcsock.c 1097 // enable all the messages in file svcsock.c
1042 nullarbor:~ # echo -n 'file svcsock.c +p' > 1098 nullarbor:~ # echo -n 'file svcsock.c +p' >
1043 <debugfs>/dynamic_debug/ddebug 1099 <debugfs>/dynamic_debug/control
1044 1100
1045 // enable all the messages in the NFS server module 1101 // enable all the messages in the NFS server module
1046 nullarbor:~ # echo -n 'module nfsd +p' > 1102 nullarbor:~ # echo -n 'module nfsd +p' >
1047 <debugfs>/dynamic_debug/ddebug 1103 <debugfs>/dynamic_debug/control
1048 1104
1049 // enable all 12 messages in the function svc_process() 1105 // enable all 12 messages in the function svc_process()
1050 nullarbor:~ # echo -n 'func svc_process +p' > 1106 nullarbor:~ # echo -n 'func svc_process +p' >
1051 <debugfs>/dynamic_debug/ddebug 1107 <debugfs>/dynamic_debug/control
1052 1108
1053 // disable all 12 messages in the function svc_process() 1109 // disable all 12 messages in the function svc_process()
1054 nullarbor:~ # echo -n 'func svc_process -p' > 1110 nullarbor:~ # echo -n 'func svc_process -p' >
1055 <debugfs>/dynamic_debug/ddebug 1111 <debugfs>/dynamic_debug/control
1056 1112
1057 See Documentation/dynamic-debug-howto.txt for additional information. 1113 See Documentation/dynamic-debug-howto.txt for additional information.
1058 1114
@@ -1067,6 +1123,13 @@ config DMA_API_DEBUG
1067 This option causes a performance degredation. Use only if you want 1123 This option causes a performance degredation. Use only if you want
1068 to debug device drivers. If unsure, say N. 1124 to debug device drivers. If unsure, say N.
1069 1125
1126config ATOMIC64_SELFTEST
1127 bool "Perform an atomic64_t self-test at boot"
1128 help
1129 Enable this option to test the atomic64_t functions at boot.
1130
1131 If unsure, say N.
1132
1070source "samples/Kconfig" 1133source "samples/Kconfig"
1071 1134
1072source "lib/Kconfig.kgdb" 1135source "lib/Kconfig.kgdb"