diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /lib/Kconfig.debug | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 176 |
1 files changed, 141 insertions, 35 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 1b4afd2e6ca0..dd373c8ee943 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -7,7 +7,19 @@ config PRINTK_TIME | |||
7 | included in printk output. This allows you to measure | 7 | included in printk output. This allows you to measure |
8 | the interval between kernel operations, including bootup | 8 | the interval between kernel operations, including bootup |
9 | operations. This is useful for identifying long delays | 9 | operations. This is useful for identifying long delays |
10 | in kernel startup. | 10 | in kernel startup. Or add printk.time=1 at boot-time. |
11 | See Documentation/kernel-parameters.txt | ||
12 | |||
13 | config DEFAULT_MESSAGE_LOGLEVEL | ||
14 | int "Default message log level (1-7)" | ||
15 | range 1 7 | ||
16 | default "4" | ||
17 | help | ||
18 | Default log level for printk statements with no specified priority. | ||
19 | |||
20 | This was hard-coded to KERN_WARNING since at least 2.6.10 but folks | ||
21 | that are auditing their logs closely may want to set it to a lower | ||
22 | priority. | ||
11 | 23 | ||
12 | config ENABLE_WARN_DEPRECATED | 24 | config ENABLE_WARN_DEPRECATED |
13 | bool "Enable __deprecated logic" | 25 | bool "Enable __deprecated logic" |
@@ -102,11 +114,6 @@ config HEADERS_CHECK | |||
102 | 114 | ||
103 | config DEBUG_SECTION_MISMATCH | 115 | config DEBUG_SECTION_MISMATCH |
104 | bool "Enable full Section mismatch analysis" | 116 | bool "Enable full Section mismatch analysis" |
105 | depends on UNDEFINED || (BLACKFIN) | ||
106 | default y | ||
107 | # This option is on purpose disabled for now. | ||
108 | # It will be enabled when we are down to a reasonable number | ||
109 | # of section mismatch warnings (< 10 for an allyesconfig build) | ||
110 | help | 117 | help |
111 | The section mismatch analysis checks if there are illegal | 118 | The section mismatch analysis checks if there are illegal |
112 | references from one section to another section. | 119 | references from one section to another section. |
@@ -173,7 +180,25 @@ config LOCKUP_DETECTOR | |||
173 | An NMI is generated every 60 seconds or so to check for hardlockups. | 180 | An NMI is generated every 60 seconds or so to check for hardlockups. |
174 | 181 | ||
175 | config HARDLOCKUP_DETECTOR | 182 | config HARDLOCKUP_DETECTOR |
176 | def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI | 183 | def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI && \ |
184 | !ARCH_HAS_NMI_WATCHDOG | ||
185 | |||
186 | config BOOTPARAM_HARDLOCKUP_PANIC | ||
187 | bool "Panic (Reboot) On Hard Lockups" | ||
188 | depends on LOCKUP_DETECTOR | ||
189 | help | ||
190 | Say Y here to enable the kernel to panic on "hard lockups", | ||
191 | which are bugs that cause the kernel to loop in kernel | ||
192 | mode with interrupts disabled for more than 60 seconds. | ||
193 | |||
194 | Say N if unsure. | ||
195 | |||
196 | config BOOTPARAM_HARDLOCKUP_PANIC_VALUE | ||
197 | int | ||
198 | depends on LOCKUP_DETECTOR | ||
199 | range 0 1 | ||
200 | default 0 if !BOOTPARAM_HARDLOCKUP_PANIC | ||
201 | default 1 if BOOTPARAM_HARDLOCKUP_PANIC | ||
177 | 202 | ||
178 | config BOOTPARAM_SOFTLOCKUP_PANIC | 203 | config BOOTPARAM_SOFTLOCKUP_PANIC |
179 | bool "Panic (Reboot) On Soft Lockups" | 204 | bool "Panic (Reboot) On Soft Lockups" |
@@ -214,6 +239,21 @@ config DETECT_HUNG_TASK | |||
214 | enabled then all held locks will also be reported. This | 239 | enabled then all held locks will also be reported. This |
215 | feature has negligible overhead. | 240 | feature has negligible overhead. |
216 | 241 | ||
242 | config DEFAULT_HUNG_TASK_TIMEOUT | ||
243 | int "Default timeout for hung task detection (in seconds)" | ||
244 | depends on DETECT_HUNG_TASK | ||
245 | default 120 | ||
246 | help | ||
247 | This option controls the default timeout (in seconds) used | ||
248 | to determine when a task has become non-responsive and should | ||
249 | be considered hung. | ||
250 | |||
251 | It can be adjusted at runtime via the kernel.hung_task_timeout | ||
252 | sysctl or by writing a value to /proc/sys/kernel/hung_task_timeout. | ||
253 | |||
254 | A timeout of 0 disables the check. The default is two minutes. | ||
255 | Keeping the default should be fine in most cases. | ||
256 | |||
217 | config BOOTPARAM_HUNG_TASK_PANIC | 257 | config BOOTPARAM_HUNG_TASK_PANIC |
218 | bool "Panic (Reboot) On Hung Tasks" | 258 | bool "Panic (Reboot) On Hung Tasks" |
219 | depends on DETECT_HUNG_TASK | 259 | depends on DETECT_HUNG_TASK |
@@ -313,10 +353,18 @@ config DEBUG_OBJECTS_WORK | |||
313 | 353 | ||
314 | config DEBUG_OBJECTS_RCU_HEAD | 354 | config DEBUG_OBJECTS_RCU_HEAD |
315 | bool "Debug RCU callbacks objects" | 355 | bool "Debug RCU callbacks objects" |
316 | depends on DEBUG_OBJECTS && PREEMPT | 356 | depends on DEBUG_OBJECTS |
317 | help | 357 | help |
318 | Enable this to turn on debugging of RCU list heads (call_rcu() usage). | 358 | Enable this to turn on debugging of RCU list heads (call_rcu() usage). |
319 | 359 | ||
360 | config DEBUG_OBJECTS_PERCPU_COUNTER | ||
361 | bool "Debug percpu counter objects" | ||
362 | depends on DEBUG_OBJECTS | ||
363 | help | ||
364 | If you say Y here, additional code will be inserted into the | ||
365 | percpu counter routines to track the life time of percpu counter | ||
366 | objects and validate the percpu counter operations. | ||
367 | |||
320 | config DEBUG_OBJECTS_ENABLE_DEFAULT | 368 | config DEBUG_OBJECTS_ENABLE_DEFAULT |
321 | int "debug_objects bootup default value (0-1)" | 369 | int "debug_objects bootup default value (0-1)" |
322 | range 0 1 | 370 | range 0 1 |
@@ -353,7 +401,7 @@ config SLUB_DEBUG_ON | |||
353 | config SLUB_STATS | 401 | config SLUB_STATS |
354 | default n | 402 | default n |
355 | bool "Enable SLUB performance statistics" | 403 | bool "Enable SLUB performance statistics" |
356 | depends on SLUB && SLUB_DEBUG && SYSFS | 404 | depends on SLUB && SYSFS |
357 | help | 405 | help |
358 | SLUB statistics are useful to debug SLUBs allocation behavior in | 406 | SLUB statistics are useful to debug SLUBs allocation behavior in |
359 | order find ways to optimize the allocator. This should never be | 407 | order find ways to optimize the allocator. This should never be |
@@ -366,9 +414,9 @@ config SLUB_STATS | |||
366 | config DEBUG_KMEMLEAK | 414 | config DEBUG_KMEMLEAK |
367 | bool "Kernel memory leak detector" | 415 | bool "Kernel memory leak detector" |
368 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ | 416 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ |
369 | (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE) | 417 | (X86 || ARM || PPC || MIPS || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE) |
370 | 418 | ||
371 | select DEBUG_FS if SYSFS | 419 | select DEBUG_FS |
372 | select STACKTRACE if STACKTRACE_SUPPORT | 420 | select STACKTRACE if STACKTRACE_SUPPORT |
373 | select KALLSYMS | 421 | select KALLSYMS |
374 | select CRC32 | 422 | select CRC32 |
@@ -402,11 +450,9 @@ config DEBUG_KMEMLEAK_EARLY_LOG_SIZE | |||
402 | 450 | ||
403 | config DEBUG_KMEMLEAK_TEST | 451 | config DEBUG_KMEMLEAK_TEST |
404 | tristate "Simple test for the kernel memory leak detector" | 452 | tristate "Simple test for the kernel memory leak detector" |
405 | depends on DEBUG_KMEMLEAK | 453 | depends on DEBUG_KMEMLEAK && m |
406 | help | 454 | help |
407 | Say Y or M here to build a test for the kernel memory leak | 455 | This option enables a module that explicitly leaks memory. |
408 | detector. This option enables a module that explicitly leaks | ||
409 | memory. | ||
410 | 456 | ||
411 | If unsure, say N. | 457 | If unsure, say N. |
412 | 458 | ||
@@ -482,6 +528,7 @@ config PROVE_LOCKING | |||
482 | select DEBUG_SPINLOCK | 528 | select DEBUG_SPINLOCK |
483 | select DEBUG_MUTEXES | 529 | select DEBUG_MUTEXES |
484 | select DEBUG_LOCK_ALLOC | 530 | select DEBUG_LOCK_ALLOC |
531 | select TRACE_IRQFLAGS | ||
485 | default n | 532 | default n |
486 | help | 533 | help |
487 | This feature enables the kernel to prove that all locking | 534 | This feature enables the kernel to prove that all locking |
@@ -539,6 +586,23 @@ config PROVE_RCU_REPEATEDLY | |||
539 | disabling, allowing multiple RCU-lockdep warnings to be printed | 586 | disabling, allowing multiple RCU-lockdep warnings to be printed |
540 | on a single reboot. | 587 | on a single reboot. |
541 | 588 | ||
589 | Say Y to allow multiple RCU-lockdep warnings per boot. | ||
590 | |||
591 | Say N if you are unsure. | ||
592 | |||
593 | config SPARSE_RCU_POINTER | ||
594 | bool "RCU debugging: sparse-based checks for pointer usage" | ||
595 | default n | ||
596 | help | ||
597 | This feature enables the __rcu sparse annotation for | ||
598 | RCU-protected pointers. This annotation will cause sparse | ||
599 | to flag any non-RCU used of annotated pointers. This can be | ||
600 | helpful when debugging RCU usage. Please note that this feature | ||
601 | is not intended to enforce code cleanliness; it is instead merely | ||
602 | a debugging aid. | ||
603 | |||
604 | Say Y to make sparse flag questionable use of RCU-protected pointers | ||
605 | |||
542 | Say N if you are unsure. | 606 | Say N if you are unsure. |
543 | 607 | ||
544 | config LOCKDEP | 608 | config LOCKDEP |
@@ -579,11 +643,10 @@ config DEBUG_LOCKDEP | |||
579 | of more runtime overhead. | 643 | of more runtime overhead. |
580 | 644 | ||
581 | config TRACE_IRQFLAGS | 645 | config TRACE_IRQFLAGS |
582 | depends on DEBUG_KERNEL | ||
583 | bool | 646 | bool |
584 | default y | 647 | help |
585 | depends on TRACE_IRQFLAGS_SUPPORT | 648 | Enables hooks to interrupt enabling and disabling for |
586 | depends on PROVE_LOCKING | 649 | either tracing or lock debugging. |
587 | 650 | ||
588 | config DEBUG_SPINLOCK_SLEEP | 651 | config DEBUG_SPINLOCK_SLEEP |
589 | bool "Spinlock debugging: sleep-inside-spinlock checking" | 652 | bool "Spinlock debugging: sleep-inside-spinlock checking" |
@@ -607,6 +670,15 @@ config STACKTRACE | |||
607 | bool | 670 | bool |
608 | depends on STACKTRACE_SUPPORT | 671 | depends on STACKTRACE_SUPPORT |
609 | 672 | ||
673 | config DEBUG_STACK_USAGE | ||
674 | bool "Stack utilization instrumentation" | ||
675 | depends on DEBUG_KERNEL | ||
676 | help | ||
677 | Enables the display of the minimum amount of free stack which each | ||
678 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
679 | |||
680 | This option will slow down process creation somewhat. | ||
681 | |||
610 | config DEBUG_KOBJECT | 682 | config DEBUG_KOBJECT |
611 | bool "kobject debugging" | 683 | bool "kobject debugging" |
612 | depends on DEBUG_KERNEL | 684 | depends on DEBUG_KERNEL |
@@ -622,10 +694,10 @@ config DEBUG_HIGHMEM | |||
622 | Disable for production systems. | 694 | Disable for production systems. |
623 | 695 | ||
624 | config DEBUG_BUGVERBOSE | 696 | config DEBUG_BUGVERBOSE |
625 | bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED | 697 | bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT |
626 | depends on BUG | 698 | depends on BUG |
627 | depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \ | 699 | depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \ |
628 | FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300 | 700 | FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300 || TILE |
629 | default y | 701 | default y |
630 | help | 702 | help |
631 | Say Y here to make BUG() panics output the file name and line number | 703 | Say Y here to make BUG() panics output the file name and line number |
@@ -694,8 +766,8 @@ config DEBUG_WRITECOUNT | |||
694 | If unsure, say N. | 766 | If unsure, say N. |
695 | 767 | ||
696 | config DEBUG_MEMORY_INIT | 768 | config DEBUG_MEMORY_INIT |
697 | bool "Debug memory initialisation" if EMBEDDED | 769 | bool "Debug memory initialisation" if EXPERT |
698 | default !EMBEDDED | 770 | default !EXPERT |
699 | help | 771 | help |
700 | Enable this for additional checks during memory initialisation. | 772 | Enable this for additional checks during memory initialisation. |
701 | The sanity checks verify aspects of the VM such as the memory model | 773 | The sanity checks verify aspects of the VM such as the memory model |
@@ -714,6 +786,15 @@ config DEBUG_LIST | |||
714 | 786 | ||
715 | If unsure, say N. | 787 | If unsure, say N. |
716 | 788 | ||
789 | config TEST_LIST_SORT | ||
790 | bool "Linked list sorting test" | ||
791 | depends on DEBUG_KERNEL | ||
792 | help | ||
793 | Enable this to turn on 'list_sort()' function test. This test is | ||
794 | executed only once during system boot, so affects only boot time. | ||
795 | |||
796 | If unsure, say N. | ||
797 | |||
717 | config DEBUG_SG | 798 | config DEBUG_SG |
718 | bool "Debug SG table operations" | 799 | bool "Debug SG table operations" |
719 | depends on DEBUG_KERNEL | 800 | depends on DEBUG_KERNEL |
@@ -761,7 +842,7 @@ config ARCH_WANT_FRAME_POINTERS | |||
761 | config FRAME_POINTER | 842 | config FRAME_POINTER |
762 | bool "Compile the kernel with frame pointers" | 843 | bool "Compile the kernel with frame pointers" |
763 | depends on DEBUG_KERNEL && \ | 844 | depends on DEBUG_KERNEL && \ |
764 | (CRIS || M68K || M68KNOMMU || FRV || UML || \ | 845 | (CRIS || M68K || FRV || UML || \ |
765 | AVR32 || SUPERH || BLACKFIN || MN10300) || \ | 846 | AVR32 || SUPERH || BLACKFIN || MN10300) || \ |
766 | ARCH_WANT_FRAME_POINTERS | 847 | ARCH_WANT_FRAME_POINTERS |
767 | default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS | 848 | default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS |
@@ -819,22 +900,20 @@ config RCU_TORTURE_TEST_RUNNABLE | |||
819 | Say N here if you want the RCU torture tests to start only | 900 | Say N here if you want the RCU torture tests to start only |
820 | after being manually enabled via /proc. | 901 | after being manually enabled via /proc. |
821 | 902 | ||
822 | config RCU_CPU_STALL_DETECTOR | 903 | config RCU_CPU_STALL_TIMEOUT |
823 | bool "Check for stalled CPUs delaying RCU grace periods" | 904 | int "RCU CPU stall timeout in seconds" |
824 | depends on TREE_RCU || TREE_PREEMPT_RCU | 905 | depends on TREE_RCU || TREE_PREEMPT_RCU |
825 | default y | 906 | range 3 300 |
907 | default 60 | ||
826 | help | 908 | help |
827 | This option causes RCU to printk information on which | 909 | If a given RCU grace period extends more than the specified |
828 | CPUs are delaying the current grace period, but only when | 910 | number of seconds, a CPU stall warning is printed. If the |
829 | the grace period extends for excessive time periods. | 911 | RCU grace period persists, additional CPU stall warnings are |
830 | 912 | printed at more widely spaced intervals. | |
831 | Say N if you want to disable such checks. | ||
832 | |||
833 | Say Y if you are unsure. | ||
834 | 913 | ||
835 | config RCU_CPU_STALL_VERBOSE | 914 | config RCU_CPU_STALL_VERBOSE |
836 | bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR" | 915 | bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR" |
837 | depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU | 916 | depends on TREE_PREEMPT_RCU |
838 | default y | 917 | default y |
839 | help | 918 | help |
840 | This option causes RCU to printk detailed per-task information | 919 | This option causes RCU to printk detailed per-task information |
@@ -913,6 +992,17 @@ config DEBUG_FORCE_WEAK_PER_CPU | |||
913 | To ensure that generic code follows the above rules, this | 992 | To ensure that generic code follows the above rules, this |
914 | option forces all percpu variables to be defined as weak. | 993 | option forces all percpu variables to be defined as weak. |
915 | 994 | ||
995 | config DEBUG_PER_CPU_MAPS | ||
996 | bool "Debug access to per_cpu maps" | ||
997 | depends on DEBUG_KERNEL | ||
998 | depends on SMP | ||
999 | help | ||
1000 | Say Y to verify that the per_cpu map being accessed has | ||
1001 | been set up. This adds a fair amount of code to kernel memory | ||
1002 | and decreases performance. | ||
1003 | |||
1004 | Say N if unsure. | ||
1005 | |||
916 | config LKDTM | 1006 | config LKDTM |
917 | tristate "Linux Kernel Dump Test Tool Module" | 1007 | tristate "Linux Kernel Dump Test Tool Module" |
918 | depends on DEBUG_FS | 1008 | depends on DEBUG_FS |
@@ -1150,8 +1240,24 @@ config ATOMIC64_SELFTEST | |||
1150 | 1240 | ||
1151 | If unsure, say N. | 1241 | If unsure, say N. |
1152 | 1242 | ||
1243 | config ASYNC_RAID6_TEST | ||
1244 | tristate "Self test for hardware accelerated raid6 recovery" | ||
1245 | depends on ASYNC_RAID6_RECOV | ||
1246 | select ASYNC_MEMCPY | ||
1247 | ---help--- | ||
1248 | This is a one-shot self test that permutes through the | ||
1249 | recovery of all the possible two disk failure scenarios for a | ||
1250 | N-disk array. Recovery is performed with the asynchronous | ||
1251 | raid6 recovery routines, and will optionally use an offload | ||
1252 | engine if one is available. | ||
1253 | |||
1254 | If unsure, say N. | ||
1255 | |||
1153 | source "samples/Kconfig" | 1256 | source "samples/Kconfig" |
1154 | 1257 | ||
1155 | source "lib/Kconfig.kgdb" | 1258 | source "lib/Kconfig.kgdb" |
1156 | 1259 | ||
1157 | source "lib/Kconfig.kmemcheck" | 1260 | source "lib/Kconfig.kmemcheck" |
1261 | |||
1262 | config TEST_KSTRTOX | ||
1263 | tristate "Test kstrto*() family of functions at runtime" | ||