diff options
author | Pekka Enberg <penberg@kernel.org> | 2010-10-24 12:57:05 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-24 12:57:05 -0400 |
commit | 6d4121f6c20a0e86231d52f535f1c82423b3326f (patch) | |
tree | 5c235cac699ca86b504850aa663ddadde0455a61 /lib/Kconfig.debug | |
parent | 92a5bbc11ff2442a54b2f1d313088c245828ef4e (diff) | |
parent | 35da7a307c535f9c2929cae277f3df425c9f9b1e (diff) |
Merge branch 'master' into for-linus
Conflicts:
include/linux/percpu.h
mm/percpu.c
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 58 |
1 files changed, 54 insertions, 4 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index b6263651a955..69a32664c289 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -461,6 +461,15 @@ config DEBUG_MUTEXES | |||
461 | This feature allows mutex semantics violations to be detected and | 461 | This feature allows mutex semantics violations to be detected and |
462 | reported. | 462 | reported. |
463 | 463 | ||
464 | config BKL | ||
465 | bool "Big Kernel Lock" if (SMP || PREEMPT) | ||
466 | default y | ||
467 | help | ||
468 | This is the traditional lock that is used in old code instead | ||
469 | of proper locking. All drivers that use the BKL should depend | ||
470 | on this symbol. | ||
471 | Say Y here unless you are working on removing the BKL. | ||
472 | |||
464 | config DEBUG_LOCK_ALLOC | 473 | config DEBUG_LOCK_ALLOC |
465 | bool "Lock debugging: detect incorrect freeing of live locks" | 474 | bool "Lock debugging: detect incorrect freeing of live locks" |
466 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT | 475 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT |
@@ -482,6 +491,7 @@ config PROVE_LOCKING | |||
482 | select DEBUG_SPINLOCK | 491 | select DEBUG_SPINLOCK |
483 | select DEBUG_MUTEXES | 492 | select DEBUG_MUTEXES |
484 | select DEBUG_LOCK_ALLOC | 493 | select DEBUG_LOCK_ALLOC |
494 | select TRACE_IRQFLAGS | ||
485 | default n | 495 | default n |
486 | help | 496 | help |
487 | This feature enables the kernel to prove that all locking | 497 | This feature enables the kernel to prove that all locking |
@@ -539,6 +549,23 @@ config PROVE_RCU_REPEATEDLY | |||
539 | disabling, allowing multiple RCU-lockdep warnings to be printed | 549 | disabling, allowing multiple RCU-lockdep warnings to be printed |
540 | on a single reboot. | 550 | on a single reboot. |
541 | 551 | ||
552 | Say Y to allow multiple RCU-lockdep warnings per boot. | ||
553 | |||
554 | Say N if you are unsure. | ||
555 | |||
556 | config SPARSE_RCU_POINTER | ||
557 | bool "RCU debugging: sparse-based checks for pointer usage" | ||
558 | default n | ||
559 | help | ||
560 | This feature enables the __rcu sparse annotation for | ||
561 | RCU-protected pointers. This annotation will cause sparse | ||
562 | to flag any non-RCU used of annotated pointers. This can be | ||
563 | helpful when debugging RCU usage. Please note that this feature | ||
564 | is not intended to enforce code cleanliness; it is instead merely | ||
565 | a debugging aid. | ||
566 | |||
567 | Say Y to make sparse flag questionable use of RCU-protected pointers | ||
568 | |||
542 | Say N if you are unsure. | 569 | Say N if you are unsure. |
543 | 570 | ||
544 | config LOCKDEP | 571 | config LOCKDEP |
@@ -579,11 +606,10 @@ config DEBUG_LOCKDEP | |||
579 | of more runtime overhead. | 606 | of more runtime overhead. |
580 | 607 | ||
581 | config TRACE_IRQFLAGS | 608 | config TRACE_IRQFLAGS |
582 | depends on DEBUG_KERNEL | ||
583 | bool | 609 | bool |
584 | default y | 610 | help |
585 | depends on TRACE_IRQFLAGS_SUPPORT | 611 | Enables hooks to interrupt enabling and disabling for |
586 | depends on PROVE_LOCKING | 612 | either tracing or lock debugging. |
587 | 613 | ||
588 | config DEBUG_SPINLOCK_SLEEP | 614 | config DEBUG_SPINLOCK_SLEEP |
589 | bool "Spinlock debugging: sleep-inside-spinlock checking" | 615 | bool "Spinlock debugging: sleep-inside-spinlock checking" |
@@ -832,6 +858,30 @@ config RCU_CPU_STALL_DETECTOR | |||
832 | 858 | ||
833 | Say Y if you are unsure. | 859 | Say Y if you are unsure. |
834 | 860 | ||
861 | config RCU_CPU_STALL_TIMEOUT | ||
862 | int "RCU CPU stall timeout in seconds" | ||
863 | depends on RCU_CPU_STALL_DETECTOR | ||
864 | range 3 300 | ||
865 | default 60 | ||
866 | help | ||
867 | If a given RCU grace period extends more than the specified | ||
868 | number of seconds, a CPU stall warning is printed. If the | ||
869 | RCU grace period persists, additional CPU stall warnings are | ||
870 | printed at more widely spaced intervals. | ||
871 | |||
872 | config RCU_CPU_STALL_DETECTOR_RUNNABLE | ||
873 | bool "RCU CPU stall checking starts automatically at boot" | ||
874 | depends on RCU_CPU_STALL_DETECTOR | ||
875 | default y | ||
876 | help | ||
877 | If set, start checking for RCU CPU stalls immediately on | ||
878 | boot. Otherwise, RCU CPU stall checking must be manually | ||
879 | enabled. | ||
880 | |||
881 | Say Y if you are unsure. | ||
882 | |||
883 | Say N if you wish to suppress RCU CPU stall checking during boot. | ||
884 | |||
835 | config RCU_CPU_STALL_VERBOSE | 885 | config RCU_CPU_STALL_VERBOSE |
836 | bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR" | 886 | bool "Print additional per-task information for RCU_CPU_STALL_DETECTOR" |
837 | depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU | 887 | depends on RCU_CPU_STALL_DETECTOR && TREE_PREEMPT_RCU |