3 config TRACE_IRQFLAGS_SUPPORT
7 source "lib/Kconfig.debug"
10 bool "Early printk" if EMBEDDED && DEBUG_KERNEL
13 Write kernel log output directly into the VGA buffer or to a serial
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.
22 config DEBUG_STACKOVERFLOW
23 bool "Check for stack overflows"
24 depends on DEBUG_KERNEL
26 This option will cause messages to be printed if free stack space
27 drops below a certain limit.
29 config DEBUG_STACK_USAGE
30 bool "Stack utilization instrumentation"
31 depends on DEBUG_KERNEL
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.
36 This option will slow down process creation somewhat.
38 comment "Page alloc debug is incompatible with Software Suspend on i386"
39 depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
41 config DEBUG_PAGEALLOC
42 bool "Debug page memory allocations"
43 depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND && !HUGETLBFS
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.
50 bool "Write protect kernel read-only data structures"
51 depends on DEBUG_KERNEL
52 depends on !KPROBES # temporary for 2.6.22
54 Mark the kernel read-only data as write-protected in the pagetables,
55 in order to catch accidental (and incorrect) writes to such const
56 data. This option may have a slight performance impact because a
57 portion of the kernel code won't be covered by a 2MB TLB anymore.
61 bool "Use 4Kb for kernel stacks instead of 8Kb"
62 depends on DEBUG_KERNEL
64 If you say Y here the kernel will use a 4Kb stacksize for the
65 kernel stack attached to each process/thread. This facilitates
66 running more threads on a system and also reduces the pressure
67 on the VM subsystem for higher order allocations. This option
68 will also use IRQ stacks to compensate for the reduced stackspace.
70 config X86_FIND_SMP_CONFIG
72 depends on X86_LOCAL_APIC || X86_VOYAGER
77 depends on X86_LOCAL_APIC && !X86_VISWS
82 bool "Enable doublefault exception handler" if EMBEDDED
84 This option allows trapping of rare doublefault exceptions that
85 would otherwise cause a system to silently reboot. Disabling this
86 option saves about 4k and might cause you much additional grey