at v2.6.13 75 lines 2.4 kB view raw
1menu "Kernel hacking" 2 3source "lib/Kconfig.debug" 4 5config 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 18config DEBUG_STACKOVERFLOW 19 bool "Check for stack overflows" 20 depends on DEBUG_KERNEL 21 help 22 This option will cause messages to be printed if free stack space 23 drops below a certain limit. 24 25config KPROBES 26 bool "Kprobes" 27 depends on DEBUG_KERNEL 28 help 29 Kprobes allows you to trap at almost any kernel address and 30 execute a callback function. register_kprobe() establishes 31 a probepoint and specifies the callback. Kprobes is useful 32 for kernel debugging, non-intrusive instrumentation and testing. 33 If in doubt, say "N". 34 35config DEBUG_STACK_USAGE 36 bool "Stack utilization instrumentation" 37 depends on DEBUG_KERNEL 38 help 39 Enables the display of the minimum amount of free stack which each 40 task has ever had available in the sysrq-T and sysrq-P debug output. 41 42 This option will slow down process creation somewhat. 43 44comment "Page alloc debug is incompatible with Software Suspend on i386" 45 depends on DEBUG_KERNEL && SOFTWARE_SUSPEND 46 47config DEBUG_PAGEALLOC 48 bool "Page alloc debugging" 49 depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND 50 help 51 Unmap pages from the kernel linear mapping after free_pages(). 52 This results in a large slowdown, but helps to find certain types 53 of memory corruptions. 54 55config 4KSTACKS 56 bool "Use 4Kb for kernel stacks instead of 8Kb" 57 depends on DEBUG_KERNEL 58 help 59 If you say Y here the kernel will use a 4Kb stacksize for the 60 kernel stack attached to each process/thread. This facilitates 61 running more threads on a system and also reduces the pressure 62 on the VM subsystem for higher order allocations. This option 63 will also use IRQ stacks to compensate for the reduced stackspace. 64 65config X86_FIND_SMP_CONFIG 66 bool 67 depends on X86_LOCAL_APIC || X86_VOYAGER 68 default y 69 70config X86_MPPARSE 71 bool 72 depends on X86_LOCAL_APIC && !X86_VISWS 73 default y 74 75endmenu