blob: bb1afc1a31ccb8de1f748949b79c1d6c962a5c35 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config DEBUG_STACKOVERFLOW
6 bool "Check for stack overflows"
7 depends on DEBUG_KERNEL
Adrian Bunke1637f42005-07-27 11:44:24 -07008 help
9 This option will cause messages to be printed if free stack space
10 drops below a certain limit.
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Linus Torvalds1da177e2005-04-16 15:20:36 -070012config DEBUG_PAGEALLOC
Andrew Morton4a2f0ac2006-03-25 03:07:22 -080013 bool "Debug page memory allocations"
Al Viro697ae162005-08-23 22:45:36 +010014 depends on DEBUG_KERNEL && BROKEN
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 help
16 Unmap pages from the kernel linear mapping after free_pages().
17 This results in a large slowdown, but helps to find certain types
18 of memory corruptions.
19
20config FRAME_POINTER
21 bool "Compile the kernel with frame pointers"
22 help
23 If you say Y here the resulting kernel image will be slightly larger
24 and slower, but it will give very useful debugging information.
25 If you don't debug the kernel, you can say N, but we may not be able
26 to solve problems without frame pointers.
27
28endmenu