blob: ffca1e194f91ea9df6f509d5b7003a3d82130eb8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002menu "Kernel hacking"
3
4source "lib/Kconfig.debug"
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006config DEBUG_PAGEALLOC
Andrew Morton4a2f0ac2006-03-25 03:07:22 -08007 bool "Debug page memory allocations"
Al Viro697ae162005-08-23 22:45:36 +01008 depends on DEBUG_KERNEL && BROKEN
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 help
10 Unmap pages from the kernel linear mapping after free_pages().
11 This results in a large slowdown, but helps to find certain types
12 of memory corruptions.
13
14config FRAME_POINTER
15 bool "Compile the kernel with frame pointers"
16 help
17 If you say Y here the resulting kernel image will be slightly larger
18 and slower, but it will give very useful debugging information.
19 If you don't debug the kernel, you can say N, but we may not be able
20 to solve problems without frame pointers.
21
22endmenu