upgrade to linux 2.6.10-1.12_FC2
[linux-2.6.git] / arch / i386 / Kconfig.debug
1 menu "Kernel hacking"
2
3 source "lib/Kconfig.debug"
4
5 config EARLY_PRINTK
6         bool "Early printk" if EMBEDDED
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 KPROBES
19         bool "Kprobes"
20         depends on DEBUG_KERNEL
21         help
22           Kprobes allows you to trap at almost any kernel address and
23           execute a callback function.  register_kprobe() establishes
24           a probepoint and specifies the callback.  Kprobes is useful
25           for kernel debugging, non-intrusive instrumentation and testing.
26           If in doubt, say "N".
27
28 config DEBUG_PAGEALLOC
29         bool "Page alloc debugging"
30         depends on DEBUG_KERNEL
31         help
32           Unmap pages from the kernel linear mapping after free_pages().
33           This results in a large slowdown, but helps to find certain types
34           of memory corruptions.
35
36 config DEBUG_STACKOVERFLOW
37         bool "Check for stack overflows"
38         depends on DEBUG_KERNEL
39
40 config DEBUG_STACK_USAGE
41         bool "Stack utilization instrumentation"
42         depends on DEBUG_KERNEL
43         help
44           Enables the display of the minimum amount of free stack which each
45           task has ever had available in the sysrq-T and sysrq-P debug output.
46
47           This option will slow down process creation somewhat.
48
49 config IRQSTACKS
50         bool "Use separate IRQ stacks"
51         help
52         This option subsumes the IRQ stack implementation of the orig. 4KSTACK
53         support.  You must use this if you select 4KB stacks! 
54
55 config STACK_SIZE_SHIFT
56         int "Kernel stack size (12 => 4KB, 13 => 8KB, 14 => 16KB)"
57         range 12 14
58         default 12 if IRQSTACKS
59         default 13
60         help
61         Select kernel stack size.  4KB stacks are best as they let
62         the system scale further.  Use 8KB stacks if you have an 
63         experimental kernel where a stack overlow with a 4KB stack
64         might occur.  Use 16KB stacks if you want to safely support
65         Windows device drivers using either Linuxant or ndiswrapper.
66
67 config STACK_WARN
68         int "Print stack trace when stack grows beyond specified bytes"
69         default 4096 if IRQSTACKS
70         default 4096
71         help
72         The kernel will print a stack trace when the current stack exceeds
73         the specified size.
74
75 config X86_STACK_CHECK
76         bool "Aggressively check for stack overflows"
77         default n
78         help
79         Say Y here to have the kernel attempt to detect when the per-task
80         kernel stack overflows.
81
82         Some older versions of gcc don't handle the -p option correctly.
83         Kernprof is affected by the same problem, which is described here:
84         http://oss.sgi.com/projects/kernprof/faq.html#Q9
85
86         Basically, if you get oopses in __free_pages_ok during boot when
87         you have this turned on, you need to fix gcc. The Redhat 2.96
88         version and gcc-3.x seem to work.
89
90         If not debugging a stack overflow problem, say N
91
92 config STACK_PANIC
93         int "Panic when stack approaches with specified bytes of the stack limit"
94         depends on X86_STACK_CHECK
95         default 512 if IRQSTACKS
96         default 512
97         help
98         Panic if the stack grows to within specified byte range.
99
100 config DEBUG_PAGEALLOC
101         bool "Page alloc debugging"
102         depends on DEBUG_KERNEL
103         help
104           Unmap pages from the kernel linear mapping after free_pages().
105           This results in a large slowdown, but helps to find certain types
106           of memory corruptions.
107
108 config X86_FIND_SMP_CONFIG
109         bool
110         depends on X86_LOCAL_APIC || X86_VOYAGER
111         default y
112
113 config X86_MPPARSE
114         bool
115         depends on X86_LOCAL_APIC && !X86_VISWS
116         default y
117
118 endmenu