Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
| 3 | source "lib/Kconfig.debug" |
| 4 | |
| 5 | # RMK wants arm kernels compiled with frame pointers so hardwire this to y. |
| 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 ;). |
| 9 | config FRAME_POINTER |
| 10 | bool |
| 11 | default y |
| 12 | help |
| 13 | If you say N here, the resulting kernel will be slightly smaller and |
| 14 | faster. However, when a problem occurs with the kernel, the |
| 15 | information that is reported is severely limited. Most people |
| 16 | should say Y here. |
| 17 | |
| 18 | config DEBUG_USER |
| 19 | bool "Verbose user fault messages" |
| 20 | help |
| 21 | When a user program crashes due to an exception, the kernel can |
| 22 | print a brief message explaining what the problem was. This is |
| 23 | sometimes helpful for debugging but serves no purpose on a |
| 24 | production system. Most people should say N here. |
| 25 | |
| 26 | In addition, you need to pass user_debug=N on the kernel command |
| 27 | line to enable this feature. N consists of the sum of: |
| 28 | |
| 29 | 1 - undefined instruction events |
| 30 | 2 - system calls |
| 31 | 4 - invalid data aborts |
| 32 | 8 - SIGSEGV faults |
| 33 | 16 - SIGBUS faults |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | config DEBUG_ERRORS |
| 36 | bool "Verbose kernel error messages" |
| 37 | depends on DEBUG_KERNEL |
| 38 | help |
| 39 | This option controls verbose debugging information which can be |
| 40 | printed when the kernel detects an internal error. This debugging |
| 41 | information is useful to kernel hackers when tracking down problems, |
| 42 | but mostly meaningless to other people. It's safe to say Y unless |
| 43 | you are concerned with the code size or don't want to see these |
| 44 | messages. |
| 45 | |
Sascha Hauer | ddf4e42c | 2007-07-24 18:37:01 +0200 | [diff] [blame^] | 46 | config DEBUG_STACK_USAGE |
| 47 | bool "Enable stack utilization instrumentation" |
| 48 | depends on DEBUG_KERNEL |
| 49 | help |
| 50 | Enables the display of the minimum amount of free stack which each |
| 51 | task has ever had available in the sysrq-T output. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | |
| 53 | # These options are only for real kernel hackers who want to get their hands dirty. |
| 54 | config DEBUG_LL |
| 55 | bool "Kernel low-level debugging functions" |
| 56 | depends on DEBUG_KERNEL |
| 57 | help |
Russell King | 35efb60 | 2005-09-09 15:57:17 +0100 | [diff] [blame] | 58 | Say Y here to include definitions of printascii, printch, printhex |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | in the kernel. This is helpful if you are debugging code that |
| 60 | executes before the console is initialized. |
| 61 | |
| 62 | config DEBUG_ICEDCC |
| 63 | bool "Kernel low-level debugging via EmbeddedICE DCC channel" |
| 64 | depends on DEBUG_LL |
| 65 | help |
| 66 | Say Y here if you want the debug print routines to direct their |
| 67 | output to the EmbeddedICE macrocell's DCC channel using |
| 68 | co-processor 14. This is known to work on the ARM9 style ICE |
| 69 | channel. |
| 70 | |
| 71 | It does include a timeout to ensure that the system does not |
| 72 | totally freeze when there is nothing connected to read. |
| 73 | |
| 74 | config DEBUG_DC21285_PORT |
| 75 | bool "Kernel low-level debugging messages via footbridge serial port" |
| 76 | depends on DEBUG_LL && FOOTBRIDGE |
| 77 | help |
| 78 | Say Y here if you want the debug print routines to direct their |
| 79 | output to the serial port in the DC21285 (Footbridge). Saying N |
| 80 | will cause the debug messages to appear on the first 16550 |
| 81 | serial port. |
| 82 | |
| 83 | config DEBUG_CLPS711X_UART2 |
| 84 | bool "Kernel low-level debugging messages via UART2" |
| 85 | depends on DEBUG_LL && ARCH_CLPS711X |
| 86 | help |
| 87 | Say Y here if you want the debug print routines to direct their |
| 88 | output to the second serial port on these devices. Saying N will |
| 89 | cause the debug messages to appear on the first serial port. |
| 90 | |
Ben Dooks | 3ec2052 | 2007-07-22 16:12:04 +0100 | [diff] [blame] | 91 | config DEBUG_S3C_PORT |
| 92 | depends on DEBUG_LL && PLAT_S3C |
| 93 | bool "Kernel low-level debugging messages via S3C UART" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | help |
| 95 | Say Y here if you want debug print routines to go to one of the |
Ben Dooks | 3ec2052 | 2007-07-22 16:12:04 +0100 | [diff] [blame] | 96 | S3C internal UARTs. The chosen UART must have been configured |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | before it is used. |
| 98 | |
Ben Dooks | 3ec2052 | 2007-07-22 16:12:04 +0100 | [diff] [blame] | 99 | config DEBUG_S3C_UART |
| 100 | depends on PLAT_S3C |
| 101 | int "S3C UART to use for low-level debug" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 102 | default "0" |
| 103 | help |
Ben Dooks | 3ec2052 | 2007-07-22 16:12:04 +0100 | [diff] [blame] | 104 | Choice for UART for kernel low-level using S3C UARTS, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | should be between zero and two. The port must have been |
Egry Gabor | c41045a | 2006-06-04 21:22:11 +0100 | [diff] [blame] | 106 | initialised by the boot-loader before use. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | |
| 108 | The uncompressor code port configuration is now handled |
Ben Dooks | c765784 | 2007-07-22 16:11:20 +0100 | [diff] [blame] | 109 | by CONFIG_S3C_LOWLEVEL_UART_PORT. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 110 | |
| 111 | endmenu |