ARM: 5841/1: a driver for on-chip ETM and ETB
[deliverable/linux.git] / arch / arm / Kconfig.debug
CommitLineData
1da177e4
LT
1menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
adf8b37b 5# RMK wants arm kernels compiled with frame pointers or stack unwinding.
1da177e4
LT
6# 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
16c79651 11 depends on !THUMB2_KERNEL
adf8b37b 12 default y if !ARM_UNWIND
1da177e4
LT
13 help
14 If you say N here, the resulting kernel will be slightly smaller and
adf8b37b
CM
15 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.
1da177e4
LT
29
30config DEBUG_USER
31 bool "Verbose user fault messages"
32 help
33 When a user program crashes due to an exception, the kernel can
34 print a brief message explaining what the problem was. This is
35 sometimes helpful for debugging but serves no purpose on a
36 production system. Most people should say N here.
37
38 In addition, you need to pass user_debug=N on the kernel command
39 line to enable this feature. N consists of the sum of:
40
41 1 - undefined instruction events
42 2 - system calls
43 4 - invalid data aborts
44 8 - SIGSEGV faults
45 16 - SIGBUS faults
46
1da177e4
LT
47config DEBUG_ERRORS
48 bool "Verbose kernel error messages"
49 depends on DEBUG_KERNEL
50 help
51 This option controls verbose debugging information which can be
52 printed when the kernel detects an internal error. This debugging
53 information is useful to kernel hackers when tracking down problems,
54 but mostly meaningless to other people. It's safe to say Y unless
55 you are concerned with the code size or don't want to see these
56 messages.
57
ddf4e42c
SH
58config DEBUG_STACK_USAGE
59 bool "Enable stack utilization instrumentation"
60 depends on DEBUG_KERNEL
61 help
62 Enables the display of the minimum amount of free stack which each
63 task has ever had available in the sysrq-T output.
1da177e4
LT
64
65# These options are only for real kernel hackers who want to get their hands dirty.
66config DEBUG_LL
67 bool "Kernel low-level debugging functions"
68 depends on DEBUG_KERNEL
69 help
35efb606 70 Say Y here to include definitions of printascii, printch, printhex
1da177e4
LT
71 in the kernel. This is helpful if you are debugging code that
72 executes before the console is initialized.
73
74config DEBUG_ICEDCC
75 bool "Kernel low-level debugging via EmbeddedICE DCC channel"
76 depends on DEBUG_LL
77 help
78 Say Y here if you want the debug print routines to direct their
79 output to the EmbeddedICE macrocell's DCC channel using
80 co-processor 14. This is known to work on the ARM9 style ICE
c633c3cf 81 channel and on the XScale with the PEEDI.
1da177e4
LT
82
83 It does include a timeout to ensure that the system does not
84 totally freeze when there is nothing connected to read.
85
c5d6c770
AS
86config OC_ETM
87 bool "On-chip ETM and ETB"
88 select ARM_AMBA
89 help
90 Enables the on-chip embedded trace macrocell and embedded trace
91 buffer driver that will allow you to collect traces of the
92 kernel code.
93
1da177e4
LT
94config DEBUG_DC21285_PORT
95 bool "Kernel low-level debugging messages via footbridge serial port"
96 depends on DEBUG_LL && FOOTBRIDGE
97 help
98 Say Y here if you want the debug print routines to direct their
99 output to the serial port in the DC21285 (Footbridge). Saying N
100 will cause the debug messages to appear on the first 16550
101 serial port.
102
103config DEBUG_CLPS711X_UART2
104 bool "Kernel low-level debugging messages via UART2"
105 depends on DEBUG_LL && ARCH_CLPS711X
106 help
107 Say Y here if you want the debug print routines to direct their
108 output to the second serial port on these devices. Saying N will
109 cause the debug messages to appear on the first serial port.
110
3ec20520
BD
111config DEBUG_S3C_UART
112 depends on PLAT_S3C
113 int "S3C UART to use for low-level debug"
1da177e4
LT
114 default "0"
115 help
3ec20520 116 Choice for UART for kernel low-level using S3C UARTS,
1da177e4 117 should be between zero and two. The port must have been
c41045a4 118 initialised by the boot-loader before use.
1da177e4
LT
119
120 The uncompressor code port configuration is now handled
c7657846 121 by CONFIG_S3C_LOWLEVEL_UART_PORT.
1da177e4
LT
122
123endmenu
This page took 0.465368 seconds and 5 git commands to generate.