Skip to content

Commit 3be5cbc

Browse files
changbindutorvalds
authored andcommitted
kernel-hacking: group kernel data structures debugging together
Group these similar runtime data structures verification options together. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Changbin Du <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ff600a9 commit 3be5cbc

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

lib/Kconfig.debug

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,8 @@ config DEBUG_BUGVERBOSE
13551355
of the BUG call as well as the EIP and oops trace. This aids
13561356
debugging but costs about 70-100K of memory.
13571357

1358+
menu "Debug kernel data structures"
1359+
13581360
config DEBUG_LIST
13591361
bool "Debug linked list manipulation"
13601362
depends on DEBUG_KERNEL || BUG_ON_DATA_CORRUPTION
@@ -1394,6 +1396,18 @@ config DEBUG_NOTIFIERS
13941396
This is a relatively cheap check but if you care about maximum
13951397
performance, say N.
13961398

1399+
config BUG_ON_DATA_CORRUPTION
1400+
bool "Trigger a BUG when data corruption is detected"
1401+
select DEBUG_LIST
1402+
help
1403+
Select this option if the kernel should BUG when it encounters
1404+
data corruption in kernel memory structures when they get checked
1405+
for validity.
1406+
1407+
If unsure, say N.
1408+
1409+
endmenu
1410+
13971411
config DEBUG_CREDENTIALS
13981412
bool "Debug credential management"
13991413
depends on DEBUG_KERNEL
@@ -2107,16 +2121,6 @@ config MEMTEST
21072121
memtest=17, mean do 17 test patterns.
21082122
If you are unsure how to answer this question, answer N.
21092123

2110-
config BUG_ON_DATA_CORRUPTION
2111-
bool "Trigger a BUG when data corruption is detected"
2112-
select DEBUG_LIST
2113-
help
2114-
Select this option if the kernel should BUG when it encounters
2115-
data corruption in kernel memory structures when they get checked
2116-
for validity.
2117-
2118-
If unsure, say N.
2119-
21202124
source "samples/Kconfig"
21212125

21222126
config ARCH_HAS_DEVMEM_IS_ALLOWED

0 commit comments

Comments
 (0)