Skip to content

Commit 881c514

Browse files
Dave Hansentorvalds
authored andcommitted
consolidate runtime testing configs
Original posting: http://lkml.kernel.org/r/[email protected] These runtime tests are great, except that there are a lot of them, and they are very rarely needed. Give them their own menu so that only the folks who need them will have to go looking for them. Note that there are some other runtime tests that are not in here, like for RCU or locking. This menu should only be used for tests that do not have a more appropriate home. Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 0610c8a commit 881c514

File tree

1 file changed

+81
-76
lines changed

1 file changed

+81
-76
lines changed

lib/Kconfig.debug

Lines changed: 81 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -861,15 +861,6 @@ config DEBUG_LIST
861861

862862
If unsure, say N.
863863

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-
873864
config DEBUG_SG
874865
bool "Debug SG table operations"
875866
depends on DEBUG_KERNEL
@@ -1082,33 +1073,6 @@ config RCU_TRACE
10821073

10831074
endmenu # "RCU Debugging"
10841075

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-
11121076
config DEBUG_BLOCK_EXT_DEVT
11131077
bool "Force extended block device numbers and spread them"
11141078
depends on DEBUG_KERNEL
@@ -1151,21 +1115,6 @@ config DEBUG_FORCE_WEAK_PER_CPU
11511115
To ensure that generic code follows the above rules, this
11521116
option forces all percpu variables to be defined as weak.
11531117

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-
11691118
config NOTIFIER_ERROR_INJECTION
11701119
tristate "Notifier error injection"
11711120
depends on DEBUG_KERNEL
@@ -1341,6 +1290,59 @@ config DEBUG_STRICT_USER_COPY_CHECKS
13411290

13421291
source kernel/trace/Kconfig
13431292

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+
13441346
config RBTREE_TEST
13451347
tristate "Red-Black tree test"
13461348
depends on m && DEBUG_KERNEL
@@ -1354,6 +1356,34 @@ config INTERVAL_TREE_TEST
13541356
help
13551357
A benchmark measuring the performance of the interval tree library
13561358

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+
13571387
config PROVIDE_OHCI1394_DMA_INIT
13581388
bool "Remote debugging over FireWire early on boot"
13591389
depends on PCI && X86
@@ -1483,32 +1513,7 @@ config DMA_API_DEBUG
14831513
This option causes a performance degredation. Use only if you want
14841514
to debug device drivers. If unsure, say N.
14851515

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-
15061516
source "samples/Kconfig"
15071517

15081518
source "lib/Kconfig.kgdb"
15091519

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"

0 commit comments

Comments
 (0)