diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 157 |
1 files changed, 81 insertions, 76 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 57e18ac6ca3c..6fdead79ee15 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -861,15 +861,6 @@ config DEBUG_LIST | |||
861 | 861 | ||
862 | If unsure, say N. | 862 | If unsure, say N. |
863 | 863 | ||
864 | config TEST_LIST_SORT | ||
865 | bool "Linked list sorting test" | ||
866 | depends on DEBUG_KERNEL | ||
867 | help | ||
868 | Enable this to turn on 'list_sort()' function test. This test is | ||
869 | executed only once during system boot, so affects only boot time. | ||
870 | |||
871 | If unsure, say N. | ||
872 | |||
873 | config DEBUG_SG | 864 | config DEBUG_SG |
874 | bool "Debug SG table operations" | 865 | bool "Debug SG table operations" |
875 | depends on DEBUG_KERNEL | 866 | depends on DEBUG_KERNEL |
@@ -1082,33 +1073,6 @@ config RCU_TRACE | |||
1082 | 1073 | ||
1083 | endmenu # "RCU Debugging" | 1074 | endmenu # "RCU Debugging" |
1084 | 1075 | ||
1085 | config KPROBES_SANITY_TEST | ||
1086 | bool "Kprobes sanity tests" | ||
1087 | depends on DEBUG_KERNEL | ||
1088 | depends on KPROBES | ||
1089 | default n | ||
1090 | help | ||
1091 | This option provides for testing basic kprobes functionality on | ||
1092 | boot. A sample kprobe, jprobe and kretprobe are inserted and | ||
1093 | verified for functionality. | ||
1094 | |||
1095 | Say N if you are unsure. | ||
1096 | |||
1097 | config BACKTRACE_SELF_TEST | ||
1098 | tristate "Self test for the backtrace code" | ||
1099 | depends on DEBUG_KERNEL | ||
1100 | default n | ||
1101 | help | ||
1102 | This option provides a kernel module that can be used to test | ||
1103 | the kernel stack backtrace code. This option is not useful | ||
1104 | for distributions or general kernels, but only for kernel | ||
1105 | developers working on architecture code. | ||
1106 | |||
1107 | Note that if you want to also test saved backtraces, you will | ||
1108 | have to enable STACKTRACE as well. | ||
1109 | |||
1110 | Say N if you are unsure. | ||
1111 | |||
1112 | config DEBUG_BLOCK_EXT_DEVT | 1076 | config DEBUG_BLOCK_EXT_DEVT |
1113 | bool "Force extended block device numbers and spread them" | 1077 | bool "Force extended block device numbers and spread them" |
1114 | depends on DEBUG_KERNEL | 1078 | depends on DEBUG_KERNEL |
@@ -1151,21 +1115,6 @@ config DEBUG_FORCE_WEAK_PER_CPU | |||
1151 | To ensure that generic code follows the above rules, this | 1115 | To ensure that generic code follows the above rules, this |
1152 | option forces all percpu variables to be defined as weak. | 1116 | option forces all percpu variables to be defined as weak. |
1153 | 1117 | ||
1154 | config LKDTM | ||
1155 | tristate "Linux Kernel Dump Test Tool Module" | ||
1156 | depends on DEBUG_FS | ||
1157 | depends on BLOCK | ||
1158 | default n | ||
1159 | help | ||
1160 | This module enables testing of the different dumping mechanisms by | ||
1161 | inducing system failures at predefined crash points. | ||
1162 | If you don't need it: say N | ||
1163 | Choose M here to compile this code as a module. The module will be | ||
1164 | called lkdtm. | ||
1165 | |||
1166 | Documentation on how to use the module can be found in | ||
1167 | Documentation/fault-injection/provoke-crashes.txt | ||
1168 | |||
1169 | config NOTIFIER_ERROR_INJECTION | 1118 | config NOTIFIER_ERROR_INJECTION |
1170 | tristate "Notifier error injection" | 1119 | tristate "Notifier error injection" |
1171 | depends on DEBUG_KERNEL | 1120 | depends on DEBUG_KERNEL |
@@ -1341,6 +1290,59 @@ config DEBUG_STRICT_USER_COPY_CHECKS | |||
1341 | 1290 | ||
1342 | source kernel/trace/Kconfig | 1291 | source kernel/trace/Kconfig |
1343 | 1292 | ||
1293 | menu "Runtime Testing" | ||
1294 | |||
1295 | config LKDTM | ||
1296 | tristate "Linux Kernel Dump Test Tool Module" | ||
1297 | depends on DEBUG_FS | ||
1298 | depends on BLOCK | ||
1299 | default n | ||
1300 | help | ||
1301 | This module enables testing of the different dumping mechanisms by | ||
1302 | inducing system failures at predefined crash points. | ||
1303 | If you don't need it: say N | ||
1304 | Choose M here to compile this code as a module. The module will be | ||
1305 | called lkdtm. | ||
1306 | |||
1307 | Documentation on how to use the module can be found in | ||
1308 | Documentation/fault-injection/provoke-crashes.txt | ||
1309 | |||
1310 | config TEST_LIST_SORT | ||
1311 | bool "Linked list sorting test" | ||
1312 | depends on DEBUG_KERNEL | ||
1313 | help | ||
1314 | Enable this to turn on 'list_sort()' function test. This test is | ||
1315 | executed only once during system boot, so affects only boot time. | ||
1316 | |||
1317 | If unsure, say N. | ||
1318 | |||
1319 | config KPROBES_SANITY_TEST | ||
1320 | bool "Kprobes sanity tests" | ||
1321 | depends on DEBUG_KERNEL | ||
1322 | depends on KPROBES | ||
1323 | default n | ||
1324 | help | ||
1325 | This option provides for testing basic kprobes functionality on | ||
1326 | boot. A sample kprobe, jprobe and kretprobe are inserted and | ||
1327 | verified for functionality. | ||
1328 | |||
1329 | Say N if you are unsure. | ||
1330 | |||
1331 | config BACKTRACE_SELF_TEST | ||
1332 | tristate "Self test for the backtrace code" | ||
1333 | depends on DEBUG_KERNEL | ||
1334 | default n | ||
1335 | help | ||
1336 | This option provides a kernel module that can be used to test | ||
1337 | the kernel stack backtrace code. This option is not useful | ||
1338 | for distributions or general kernels, but only for kernel | ||
1339 | developers working on architecture code. | ||
1340 | |||
1341 | Note that if you want to also test saved backtraces, you will | ||
1342 | have to enable STACKTRACE as well. | ||
1343 | |||
1344 | Say N if you are unsure. | ||
1345 | |||
1344 | config RBTREE_TEST | 1346 | config RBTREE_TEST |
1345 | tristate "Red-Black tree test" | 1347 | tristate "Red-Black tree test" |
1346 | depends on m && DEBUG_KERNEL | 1348 | depends on m && DEBUG_KERNEL |
@@ -1354,6 +1356,34 @@ config INTERVAL_TREE_TEST | |||
1354 | help | 1356 | help |
1355 | A benchmark measuring the performance of the interval tree library | 1357 | A benchmark measuring the performance of the interval tree library |
1356 | 1358 | ||
1359 | config ATOMIC64_SELFTEST | ||
1360 | bool "Perform an atomic64_t self-test at boot" | ||
1361 | help | ||
1362 | Enable this option to test the atomic64_t functions at boot. | ||
1363 | |||
1364 | If unsure, say N. | ||
1365 | |||
1366 | config ASYNC_RAID6_TEST | ||
1367 | tristate "Self test for hardware accelerated raid6 recovery" | ||
1368 | depends on ASYNC_RAID6_RECOV | ||
1369 | select ASYNC_MEMCPY | ||
1370 | ---help--- | ||
1371 | This is a one-shot self test that permutes through the | ||
1372 | recovery of all the possible two disk failure scenarios for a | ||
1373 | N-disk array. Recovery is performed with the asynchronous | ||
1374 | raid6 recovery routines, and will optionally use an offload | ||
1375 | engine if one is available. | ||
1376 | |||
1377 | If unsure, say N. | ||
1378 | |||
1379 | config TEST_STRING_HELPERS | ||
1380 | tristate "Test functions located in the string_helpers module at runtime" | ||
1381 | |||
1382 | config TEST_KSTRTOX | ||
1383 | tristate "Test kstrto*() family of functions at runtime" | ||
1384 | |||
1385 | endmenu # runtime tests | ||
1386 | |||
1357 | config PROVIDE_OHCI1394_DMA_INIT | 1387 | config PROVIDE_OHCI1394_DMA_INIT |
1358 | bool "Remote debugging over FireWire early on boot" | 1388 | bool "Remote debugging over FireWire early on boot" |
1359 | depends on PCI && X86 | 1389 | depends on PCI && X86 |
@@ -1483,32 +1513,7 @@ config DMA_API_DEBUG | |||
1483 | This option causes a performance degredation. Use only if you want | 1513 | This option causes a performance degredation. Use only if you want |
1484 | to debug device drivers. If unsure, say N. | 1514 | to debug device drivers. If unsure, say N. |
1485 | 1515 | ||
1486 | config ATOMIC64_SELFTEST | ||
1487 | bool "Perform an atomic64_t self-test at boot" | ||
1488 | help | ||
1489 | Enable this option to test the atomic64_t functions at boot. | ||
1490 | |||
1491 | If unsure, say N. | ||
1492 | |||
1493 | config ASYNC_RAID6_TEST | ||
1494 | tristate "Self test for hardware accelerated raid6 recovery" | ||
1495 | depends on ASYNC_RAID6_RECOV | ||
1496 | select ASYNC_MEMCPY | ||
1497 | ---help--- | ||
1498 | This is a one-shot self test that permutes through the | ||
1499 | recovery of all the possible two disk failure scenarios for a | ||
1500 | N-disk array. Recovery is performed with the asynchronous | ||
1501 | raid6 recovery routines, and will optionally use an offload | ||
1502 | engine if one is available. | ||
1503 | |||
1504 | If unsure, say N. | ||
1505 | |||
1506 | source "samples/Kconfig" | 1516 | source "samples/Kconfig" |
1507 | 1517 | ||
1508 | source "lib/Kconfig.kgdb" | 1518 | source "lib/Kconfig.kgdb" |
1509 | 1519 | ||
1510 | config TEST_STRING_HELPERS | ||
1511 | tristate "Test functions located in the string_helpers module at runtime" | ||
1512 | |||
1513 | config TEST_KSTRTOX | ||
1514 | tristate "Test kstrto*() family of functions at runtime" | ||