blob: 4dbce538fec403138730ba79bce75cc886eb6d89 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
Catalin Marinasadf8b372009-02-12 13:56:34 +01005# RMK wants arm kernels compiled with frame pointers or stack unwinding.
Linus Torvalds1da177e2005-04-16 15:20:36 -07006# If you know what you are doing and are willing to live without stack
7# traces, you can get a slightly smaller kernel by setting this option to
8# n, but then RMK will have to kill you ;).
9config FRAME_POINTER
10 bool
Catalin Marinas16c79652009-07-24 12:33:02 +010011 depends on !THUMB2_KERNEL
Catalin Marinasadf8b372009-02-12 13:56:34 +010012 default y if !ARM_UNWIND
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 help
14 If you say N here, the resulting kernel will be slightly smaller and
Catalin Marinasadf8b372009-02-12 13:56:34 +010015 faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled,
16 when a problem occurs with the kernel, the information that is
17 reported is severely limited.
18
19config ARM_UNWIND
20 bool "Enable stack unwinding support"
21 depends on AEABI && EXPERIMENTAL
22 default y
23 help
24 This option enables stack unwinding support in the kernel
25 using the information automatically generated by the
26 compiler. The resulting kernel image is slightly bigger but
27 the performance is not affected. Currently, this feature
28 only works with EABI compilers. If unsure say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Rabin Vincent09bfafa2010-08-10 19:32:37 +010030config OLD_MCOUNT
31 bool
32 depends on FUNCTION_TRACER && FRAME_POINTER
33 default y
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035config DEBUG_USER
36 bool "Verbose user fault messages"
37 help
38 When a user program crashes due to an exception, the kernel can
39 print a brief message explaining what the problem was. This is
40 sometimes helpful for debugging but serves no purpose on a
41 production system. Most people should say N here.
42
43 In addition, you need to pass user_debug=N on the kernel command
44 line to enable this feature. N consists of the sum of:
45
46 1 - undefined instruction events
47 2 - system calls
48 4 - invalid data aborts
49 8 - SIGSEGV faults
50 16 - SIGBUS faults
51
Linus Torvalds1da177e2005-04-16 15:20:36 -070052config DEBUG_ERRORS
53 bool "Verbose kernel error messages"
54 depends on DEBUG_KERNEL
55 help
56 This option controls verbose debugging information which can be
57 printed when the kernel detects an internal error. This debugging
58 information is useful to kernel hackers when tracking down problems,
59 but mostly meaningless to other people. It's safe to say Y unless
60 you are concerned with the code size or don't want to see these
61 messages.
62
Sascha Hauerddf4e42c2007-07-24 18:37:01 +020063config DEBUG_STACK_USAGE
64 bool "Enable stack utilization instrumentation"
65 depends on DEBUG_KERNEL
66 help
67 Enables the display of the minimum amount of free stack which each
68 task has ever had available in the sysrq-T output.
Linus Torvalds1da177e2005-04-16 15:20:36 -070069
70# These options are only for real kernel hackers who want to get their hands dirty.
71config DEBUG_LL
72 bool "Kernel low-level debugging functions"
73 depends on DEBUG_KERNEL
74 help
Russell King35efb602005-09-09 15:57:17 +010075 Say Y here to include definitions of printascii, printch, printhex
Linus Torvalds1da177e2005-04-16 15:20:36 -070076 in the kernel. This is helpful if you are debugging code that
77 executes before the console is initialized.
78
Catalin Marinas93fd03a2009-12-09 10:02:18 +000079config EARLY_PRINTK
80 bool "Early printk"
81 depends on DEBUG_LL
82 help
83 Say Y here if you want to have an early console using the
84 kernel low-level debugging functions. Add earlyprintk to your
85 kernel parameters to enable this console.
86
Linus Torvalds1da177e2005-04-16 15:20:36 -070087config DEBUG_ICEDCC
88 bool "Kernel low-level debugging via EmbeddedICE DCC channel"
89 depends on DEBUG_LL
90 help
91 Say Y here if you want the debug print routines to direct their
92 output to the EmbeddedICE macrocell's DCC channel using
93 co-processor 14. This is known to work on the ARM9 style ICE
Jean-Christop PLAGNIOL-VILLARDc633c3c2009-02-25 04:20:40 +010094 channel and on the XScale with the PEEDI.
Linus Torvalds1da177e2005-04-16 15:20:36 -070095
96 It does include a timeout to ensure that the system does not
97 totally freeze when there is nothing connected to read.
98
Alexander Shishkinc5d6c772009-12-01 14:00:51 +010099config OC_ETM
100 bool "On-chip ETM and ETB"
101 select ARM_AMBA
102 help
103 Enables the on-chip embedded trace macrocell and embedded trace
104 buffer driver that will allow you to collect traces of the
105 kernel code.
106
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107config DEBUG_DC21285_PORT
108 bool "Kernel low-level debugging messages via footbridge serial port"
109 depends on DEBUG_LL && FOOTBRIDGE
110 help
111 Say Y here if you want the debug print routines to direct their
112 output to the serial port in the DC21285 (Footbridge). Saying N
113 will cause the debug messages to appear on the first 16550
114 serial port.
115
116config DEBUG_CLPS711X_UART2
117 bool "Kernel low-level debugging messages via UART2"
118 depends on DEBUG_LL && ARCH_CLPS711X
119 help
120 Say Y here if you want the debug print routines to direct their
121 output to the second serial port on these devices. Saying N will
122 cause the debug messages to appear on the first serial port.
123
Ben Dooks3ec20522007-07-22 16:12:04 +0100124config DEBUG_S3C_UART
Ben Dooks89f1fa02010-01-29 09:02:17 +0000125 depends on PLAT_SAMSUNG
Ben Dooks3ec20522007-07-22 16:12:04 +0100126 int "S3C UART to use for low-level debug"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127 default "0"
128 help
Ben Dooks3ec20522007-07-22 16:12:04 +0100129 Choice for UART for kernel low-level using S3C UARTS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130 should be between zero and two. The port must have been
Egry Gaborc41045a2006-06-04 21:22:11 +0100131 initialised by the boot-loader before use.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132
133 The uncompressor code port configuration is now handled
Ben Dooksc7657842007-07-22 16:11:20 +0100134 by CONFIG_S3C_LOWLEVEL_UART_PORT.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135
136endmenu