Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
| 3 | source "lib/Kconfig.debug" |
| 4 | |
| 5 | config EARLY_PRINTK |
| 6 | bool "Early printk" if EMBEDDED && DEBUG_KERNEL |
| 7 | default y |
| 8 | help |
| 9 | Write kernel log output directly into the VGA buffer or to a serial |
| 10 | port. |
| 11 | |
| 12 | This is useful for kernel debugging when your machine crashes very |
| 13 | early before the console code is initialized. For normal operation |
| 14 | it is not recommended because it looks ugly and doesn't cooperate |
| 15 | with klogd/syslogd or the X server. You should normally N here, |
| 16 | unless you want to debug such a crash. |
| 17 | |
| 18 | config DEBUG_STACKOVERFLOW |
| 19 | bool "Check for stack overflows" |
| 20 | depends on DEBUG_KERNEL |
Adrian Bunk | dab175f | 2005-07-27 11:44:23 -0700 | [diff] [blame] | 21 | help |
| 22 | This option will cause messages to be printed if free stack space |
| 23 | drops below a certain limit. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | config DEBUG_STACK_USAGE |
| 26 | bool "Stack utilization instrumentation" |
| 27 | depends on DEBUG_KERNEL |
| 28 | help |
| 29 | Enables the display of the minimum amount of free stack which each |
| 30 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 31 | |
| 32 | This option will slow down process creation somewhat. |
| 33 | |
| 34 | comment "Page alloc debug is incompatible with Software Suspend on i386" |
| 35 | depends on DEBUG_KERNEL && SOFTWARE_SUSPEND |
| 36 | |
| 37 | config DEBUG_PAGEALLOC |
| 38 | bool "Page alloc debugging" |
| 39 | depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND |
| 40 | help |
| 41 | Unmap pages from the kernel linear mapping after free_pages(). |
| 42 | This results in a large slowdown, but helps to find certain types |
| 43 | of memory corruptions. |
| 44 | |
| 45 | config 4KSTACKS |
| 46 | bool "Use 4Kb for kernel stacks instead of 8Kb" |
| 47 | depends on DEBUG_KERNEL |
| 48 | help |
| 49 | If you say Y here the kernel will use a 4Kb stacksize for the |
| 50 | kernel stack attached to each process/thread. This facilitates |
| 51 | running more threads on a system and also reduces the pressure |
| 52 | on the VM subsystem for higher order allocations. This option |
| 53 | will also use IRQ stacks to compensate for the reduced stackspace. |
| 54 | |
| 55 | config X86_FIND_SMP_CONFIG |
| 56 | bool |
| 57 | depends on X86_LOCAL_APIC || X86_VOYAGER |
| 58 | default y |
| 59 | |
| 60 | config X86_MPPARSE |
| 61 | bool |
| 62 | depends on X86_LOCAL_APIC && !X86_VISWS |
| 63 | default y |
| 64 | |
| 65 | endmenu |