Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
Robert Reif | e8dd161 | 2007-09-27 13:15:31 -0700 | [diff] [blame] | 3 | config TRACE_IRQFLAGS_SUPPORT |
| 4 | bool |
| 5 | default y |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | source "lib/Kconfig.debug" |
| 8 | |
| 9 | config DEBUG_STACK_USAGE |
| 10 | bool "Enable stack utilization instrumentation" |
| 11 | depends on DEBUG_KERNEL |
| 12 | help |
| 13 | Enables the display of the minimum amount of free stack which each |
| 14 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 15 | |
| 16 | This option will slow down process creation somewhat. |
| 17 | |
Sam Ravnborg | 5bb28a5 | 2008-11-15 13:39:18 -0800 | [diff] [blame] | 18 | config DEBUG_DCFLUSH |
| 19 | bool "D-cache flush debugging" |
| 20 | depends on SPARC64 && DEBUG_KERNEL |
| 21 | |
| 22 | config STACK_DEBUG |
| 23 | bool "Stack Overflow Detection Support" |
| 24 | |
| 25 | config DEBUG_PAGEALLOC |
| 26 | bool "Debug page memory allocations" |
Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 27 | depends on DEBUG_KERNEL && !HIBERNATION |
| 28 | depends on ARCH_SUPPORTS_DEBUG_PAGEALLOC |
Sam Ravnborg | 5bb28a5 | 2008-11-15 13:39:18 -0800 | [diff] [blame] | 29 | help |
| 30 | Unmap pages from the kernel linear mapping after free_pages(). |
| 31 | This results in a large slowdown, but helps to find certain types |
| 32 | of memory corruptions. |
| 33 | |
| 34 | config MCOUNT |
| 35 | bool |
| 36 | depends on SPARC64 |
| 37 | depends on STACK_DEBUG || FUNCTION_TRACER |
| 38 | default y |
| 39 | |
| 40 | config FRAME_POINTER |
| 41 | bool |
| 42 | depends on MCOUNT |
| 43 | default y |
| 44 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | endmenu |