diff options
Diffstat (limited to 'lib/Kconfig.debug')
| -rw-r--r-- | lib/Kconfig.debug | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 98fe715522e8..2689b7c50c52 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -219,7 +219,8 @@ config FRAME_WARN | |||
| 219 | range 0 8192 | 219 | range 0 8192 |
| 220 | default 0 if KASAN | 220 | default 0 if KASAN |
| 221 | default 2048 if GCC_PLUGIN_LATENT_ENTROPY | 221 | default 2048 if GCC_PLUGIN_LATENT_ENTROPY |
| 222 | default 1024 if !64BIT | 222 | default 1280 if (!64BIT && PARISC) |
| 223 | default 1024 if (!64BIT && !PARISC) | ||
| 223 | default 2048 if 64BIT | 224 | default 2048 if 64BIT |
| 224 | help | 225 | help |
| 225 | Tell gcc to warn at build time for stack frames larger than this. | 226 | Tell gcc to warn at build time for stack frames larger than this. |
| @@ -374,6 +375,9 @@ config STACK_VALIDATION | |||
| 374 | pointers (if CONFIG_FRAME_POINTER is enabled). This helps ensure | 375 | pointers (if CONFIG_FRAME_POINTER is enabled). This helps ensure |
| 375 | that runtime stack traces are more reliable. | 376 | that runtime stack traces are more reliable. |
| 376 | 377 | ||
| 378 | This is also a prerequisite for generation of ORC unwind data, which | ||
| 379 | is needed for CONFIG_ORC_UNWINDER. | ||
| 380 | |||
| 377 | For more information, see | 381 | For more information, see |
| 378 | tools/objtool/Documentation/stack-validation.txt. | 382 | tools/objtool/Documentation/stack-validation.txt. |
| 379 | 383 | ||
| @@ -798,6 +802,13 @@ config HARDLOCKUP_DETECTOR_PERF | |||
| 798 | select SOFTLOCKUP_DETECTOR | 802 | select SOFTLOCKUP_DETECTOR |
| 799 | 803 | ||
| 800 | # | 804 | # |
| 805 | # Enables a timestamp based low pass filter to compensate for perf based | ||
| 806 | # hard lockup detection which runs too fast due to turbo modes. | ||
| 807 | # | ||
| 808 | config HARDLOCKUP_CHECK_TIMESTAMP | ||
| 809 | bool | ||
| 810 | |||
| 811 | # | ||
| 801 | # arch/ can define HAVE_HARDLOCKUP_DETECTOR_ARCH to provide their own hard | 812 | # arch/ can define HAVE_HARDLOCKUP_DETECTOR_ARCH to provide their own hard |
| 802 | # lockup detector rather than the perf based detector. | 813 | # lockup detector rather than the perf based detector. |
| 803 | # | 814 | # |
| @@ -1081,6 +1092,8 @@ config PROVE_LOCKING | |||
| 1081 | select DEBUG_MUTEXES | 1092 | select DEBUG_MUTEXES |
| 1082 | select DEBUG_RT_MUTEXES if RT_MUTEXES | 1093 | select DEBUG_RT_MUTEXES if RT_MUTEXES |
| 1083 | select DEBUG_LOCK_ALLOC | 1094 | select DEBUG_LOCK_ALLOC |
| 1095 | select LOCKDEP_CROSSRELEASE | ||
| 1096 | select LOCKDEP_COMPLETIONS | ||
| 1084 | select TRACE_IRQFLAGS | 1097 | select TRACE_IRQFLAGS |
| 1085 | default n | 1098 | default n |
| 1086 | help | 1099 | help |
| @@ -1121,7 +1134,7 @@ config LOCKDEP | |||
| 1121 | bool | 1134 | bool |
| 1122 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT | 1135 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT |
| 1123 | select STACKTRACE | 1136 | select STACKTRACE |
| 1124 | select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !SCORE | 1137 | select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !SCORE && !X86 |
| 1125 | select KALLSYMS | 1138 | select KALLSYMS |
| 1126 | select KALLSYMS_ALL | 1139 | select KALLSYMS_ALL |
| 1127 | 1140 | ||
| @@ -1150,6 +1163,22 @@ config LOCK_STAT | |||
| 1150 | CONFIG_LOCK_STAT defines "contended" and "acquired" lock events. | 1163 | CONFIG_LOCK_STAT defines "contended" and "acquired" lock events. |
| 1151 | (CONFIG_LOCKDEP defines "acquire" and "release" events.) | 1164 | (CONFIG_LOCKDEP defines "acquire" and "release" events.) |
| 1152 | 1165 | ||
| 1166 | config LOCKDEP_CROSSRELEASE | ||
| 1167 | bool | ||
| 1168 | help | ||
| 1169 | This makes lockdep work for crosslock which is a lock allowed to | ||
| 1170 | be released in a different context from the acquisition context. | ||
| 1171 | Normally a lock must be released in the context acquiring the lock. | ||
| 1172 | However, relexing this constraint helps synchronization primitives | ||
| 1173 | such as page locks or completions can use the lock correctness | ||
| 1174 | detector, lockdep. | ||
| 1175 | |||
| 1176 | config LOCKDEP_COMPLETIONS | ||
| 1177 | bool | ||
| 1178 | help | ||
| 1179 | A deadlock caused by wait_for_completion() and complete() can be | ||
| 1180 | detected by lockdep using crossrelease feature. | ||
| 1181 | |||
| 1153 | config DEBUG_LOCKDEP | 1182 | config DEBUG_LOCKDEP |
| 1154 | bool "Lock dependency engine debugging" | 1183 | bool "Lock dependency engine debugging" |
| 1155 | depends on DEBUG_KERNEL && LOCKDEP | 1184 | depends on DEBUG_KERNEL && LOCKDEP |
| @@ -1540,7 +1569,7 @@ config FAULT_INJECTION_STACKTRACE_FILTER | |||
| 1540 | depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT | 1569 | depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT |
| 1541 | depends on !X86_64 | 1570 | depends on !X86_64 |
| 1542 | select STACKTRACE | 1571 | select STACKTRACE |
| 1543 | select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !SCORE | 1572 | select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !SCORE && !X86 |
| 1544 | help | 1573 | help |
| 1545 | Provide stacktrace filter for fault-injection capabilities | 1574 | Provide stacktrace filter for fault-injection capabilities |
| 1546 | 1575 | ||
| @@ -1549,7 +1578,7 @@ config LATENCYTOP | |||
| 1549 | depends on DEBUG_KERNEL | 1578 | depends on DEBUG_KERNEL |
| 1550 | depends on STACKTRACE_SUPPORT | 1579 | depends on STACKTRACE_SUPPORT |
| 1551 | depends on PROC_FS | 1580 | depends on PROC_FS |
| 1552 | select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC | 1581 | select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !X86 |
| 1553 | select KALLSYMS | 1582 | select KALLSYMS |
| 1554 | select KALLSYMS_ALL | 1583 | select KALLSYMS_ALL |
| 1555 | select STACKTRACE | 1584 | select STACKTRACE |
| @@ -1902,6 +1931,17 @@ config TEST_KMOD | |||
| 1902 | 1931 | ||
| 1903 | If unsure, say N. | 1932 | If unsure, say N. |
| 1904 | 1933 | ||
| 1934 | config TEST_DEBUG_VIRTUAL | ||
| 1935 | tristate "Test CONFIG_DEBUG_VIRTUAL feature" | ||
| 1936 | depends on DEBUG_VIRTUAL | ||
| 1937 | help | ||
| 1938 | Test the kernel's ability to detect incorrect calls to | ||
| 1939 | virt_to_phys() done against the non-linear part of the | ||
| 1940 | kernel's virtual address map. | ||
| 1941 | |||
| 1942 | If unsure, say N. | ||
| 1943 | |||
| 1944 | |||
| 1905 | source "samples/Kconfig" | 1945 | source "samples/Kconfig" |
| 1906 | 1946 | ||
| 1907 | source "lib/Kconfig.kgdb" | 1947 | source "lib/Kconfig.kgdb" |
