Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
Ingo Molnar | 55f327f | 2006-07-03 00:24:43 -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 EARLY_PRINTK |
| 10 | bool "Early printk" if EMBEDDED && DEBUG_KERNEL |
| 11 | default y |
| 12 | help |
| 13 | Write kernel log output directly into the VGA buffer or to a serial |
| 14 | port. |
| 15 | |
| 16 | This is useful for kernel debugging when your machine crashes very |
| 17 | early before the console code is initialized. For normal operation |
| 18 | it is not recommended because it looks ugly and doesn't cooperate |
| 19 | with klogd/syslogd or the X server. You should normally N here, |
| 20 | unless you want to debug such a crash. |
| 21 | |
| 22 | config DEBUG_STACKOVERFLOW |
| 23 | bool "Check for stack overflows" |
| 24 | depends on DEBUG_KERNEL |
Adrian Bunk | dab175f | 2005-07-27 11:44:23 -0700 | [diff] [blame] | 25 | help |
| 26 | This option will cause messages to be printed if free stack space |
| 27 | drops below a certain limit. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | config DEBUG_STACK_USAGE |
| 30 | bool "Stack utilization instrumentation" |
| 31 | depends on DEBUG_KERNEL |
| 32 | help |
| 33 | Enables the display of the minimum amount of free stack which each |
| 34 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 35 | |
| 36 | This option will slow down process creation somewhat. |
| 37 | |
| 38 | comment "Page alloc debug is incompatible with Software Suspend on i386" |
Rafael J. Wysocki | b0cb1a1 | 2007-07-29 23:24:36 +0200 | [diff] [blame] | 39 | depends on DEBUG_KERNEL && HIBERNATION |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
| 41 | config DEBUG_PAGEALLOC |
Andrew Morton | 4a2f0ac | 2006-03-25 03:07:22 -0800 | [diff] [blame] | 42 | bool "Debug page memory allocations" |
Rafael J. Wysocki | b0cb1a1 | 2007-07-29 23:24:36 +0200 | [diff] [blame] | 43 | depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | help |
| 45 | Unmap pages from the kernel linear mapping after free_pages(). |
| 46 | This results in a large slowdown, but helps to find certain types |
| 47 | of memory corruptions. |
| 48 | |
Arjan van de Ven | 63aaf30 | 2006-01-06 00:12:02 -0800 | [diff] [blame] | 49 | config DEBUG_RODATA |
| 50 | bool "Write protect kernel read-only data structures" |
| 51 | depends on DEBUG_KERNEL |
| 52 | help |
| 53 | Mark the kernel read-only data as write-protected in the pagetables, |
| 54 | in order to catch accidental (and incorrect) writes to such const |
| 55 | data. This option may have a slight performance impact because a |
| 56 | portion of the kernel code won't be covered by a 2MB TLB anymore. |
| 57 | If in doubt, say "N". |
| 58 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | config 4KSTACKS |
| 60 | bool "Use 4Kb for kernel stacks instead of 8Kb" |
| 61 | depends on DEBUG_KERNEL |
| 62 | help |
| 63 | If you say Y here the kernel will use a 4Kb stacksize for the |
| 64 | kernel stack attached to each process/thread. This facilitates |
| 65 | running more threads on a system and also reduces the pressure |
| 66 | on the VM subsystem for higher order allocations. This option |
| 67 | will also use IRQ stacks to compensate for the reduced stackspace. |
| 68 | |
| 69 | config X86_FIND_SMP_CONFIG |
| 70 | bool |
| 71 | depends on X86_LOCAL_APIC || X86_VOYAGER |
| 72 | default y |
| 73 | |
| 74 | config X86_MPPARSE |
| 75 | bool |
| 76 | depends on X86_LOCAL_APIC && !X86_VISWS |
| 77 | default y |
| 78 | |
Andi Kleen | 102e41f | 2006-04-18 12:35:22 +0200 | [diff] [blame] | 79 | config DOUBLEFAULT |
| 80 | default y |
| 81 | bool "Enable doublefault exception handler" if EMBEDDED |
| 82 | help |
| 83 | This option allows trapping of rare doublefault exceptions that |
| 84 | would otherwise cause a system to silently reboot. Disabling this |
| 85 | option saves about 4k and might cause you much additional grey |
| 86 | hair. |
| 87 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | endmenu |