Skip to content

Commit 6210b64

Browse files
changbindutorvalds
authored andcommitted
kernel-hacking: group sysrq/kgdb/ubsan into 'Generic Kernel Debugging Instruments'
Patch series "hacking: make 'kernel hacking' menu better structurized", v3. This series is a trivial improvment for the layout of 'kernel hacking' configuration menu. Now we have many items in it which makes takes a little time to look up them since they are not well structurized yet. Early discussion is here: https://lkml.org/lkml/2019/9/1/39 This patch (of 9): Group generic kernel debugging instruments sysrq/kgdb/ubsan together into a new submenu. 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 3cf2890 commit 6210b64

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/Kconfig.debug

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ config DEBUG_FORCE_WEAK_PER_CPU
399399

400400
endmenu # "Compiler options"
401401

402+
menu "Generic Kernel Debugging Instruments"
403+
402404
config MAGIC_SYSRQ
403405
bool "Magic SysRq key"
404406
depends on !UML
@@ -432,6 +434,12 @@ config MAGIC_SYSRQ_SERIAL
432434
This option allows you to decide whether you want to enable the
433435
magic SysRq key.
434436

437+
source "lib/Kconfig.kgdb"
438+
439+
source "lib/Kconfig.ubsan"
440+
441+
endmenu
442+
435443
config DEBUG_KERNEL
436444
bool "Kernel debugging"
437445
help
@@ -2111,10 +2119,6 @@ config BUG_ON_DATA_CORRUPTION
21112119

21122120
source "samples/Kconfig"
21132121

2114-
source "lib/Kconfig.kgdb"
2115-
2116-
source "lib/Kconfig.ubsan"
2117-
21182122
config ARCH_HAS_DEVMEM_IS_ALLOWED
21192123
bool
21202124

0 commit comments

Comments
 (0)