Kconfig.debug 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. # RMK wants arm kernels compiled with frame pointers so hardwire this to y.
  4. # If you know what you are doing and are willing to live without stack
  5. # traces, you can get a slightly smaller kernel by setting this option to
  6. # n, but then RMK will have to kill you ;).
  7. config FRAME_POINTER
  8. bool
  9. default y
  10. help
  11. If you say N here, the resulting kernel will be slightly smaller and
  12. faster. However, when a problem occurs with the kernel, the
  13. information that is reported is severely limited. Most people
  14. should say Y here.
  15. config DEBUG_USER
  16. bool "Verbose user fault messages"
  17. help
  18. When a user program crashes due to an exception, the kernel can
  19. print a brief message explaining what the problem was. This is
  20. sometimes helpful for debugging but serves no purpose on a
  21. production system. Most people should say N here.
  22. In addition, you need to pass user_debug=N on the kernel command
  23. line to enable this feature. N consists of the sum of:
  24. 1 - undefined instruction events
  25. 2 - system calls
  26. 4 - invalid data aborts
  27. 8 - SIGSEGV faults
  28. 16 - SIGBUS faults
  29. config DEBUG_WAITQ
  30. bool "Wait queue debugging"
  31. depends on DEBUG_KERNEL
  32. config DEBUG_ERRORS
  33. bool "Verbose kernel error messages"
  34. depends on DEBUG_KERNEL
  35. help
  36. This option controls verbose debugging information which can be
  37. printed when the kernel detects an internal error. This debugging
  38. information is useful to kernel hackers when tracking down problems,
  39. but mostly meaningless to other people. It's safe to say Y unless
  40. you are concerned with the code size or don't want to see these
  41. messages.
  42. # These options are only for real kernel hackers who want to get their hands dirty.
  43. config DEBUG_LL
  44. bool "Kernel low-level debugging functions"
  45. depends on DEBUG_KERNEL
  46. help
  47. Say Y here to include definitions of printascii, printch, printhex
  48. in the kernel. This is helpful if you are debugging code that
  49. executes before the console is initialized.
  50. config DEBUG_ICEDCC
  51. bool "Kernel low-level debugging via EmbeddedICE DCC channel"
  52. depends on DEBUG_LL
  53. help
  54. Say Y here if you want the debug print routines to direct their
  55. output to the EmbeddedICE macrocell's DCC channel using
  56. co-processor 14. This is known to work on the ARM9 style ICE
  57. channel.
  58. It does include a timeout to ensure that the system does not
  59. totally freeze when there is nothing connected to read.
  60. config DEBUG_DC21285_PORT
  61. bool "Kernel low-level debugging messages via footbridge serial port"
  62. depends on DEBUG_LL && FOOTBRIDGE
  63. help
  64. Say Y here if you want the debug print routines to direct their
  65. output to the serial port in the DC21285 (Footbridge). Saying N
  66. will cause the debug messages to appear on the first 16550
  67. serial port.
  68. config DEBUG_CLPS711X_UART2
  69. bool "Kernel low-level debugging messages via UART2"
  70. depends on DEBUG_LL && ARCH_CLPS711X
  71. help
  72. Say Y here if you want the debug print routines to direct their
  73. output to the second serial port on these devices. Saying N will
  74. cause the debug messages to appear on the first serial port.
  75. config DEBUG_S3C2410_PORT
  76. depends on DEBUG_LL && ARCH_S3C2410
  77. bool "Kernel low-level debugging messages via S3C2410 UART"
  78. help
  79. Say Y here if you want debug print routines to go to one of the
  80. S3C2410 internal UARTs. The chosen UART must have been configured
  81. before it is used.
  82. config DEBUG_S3C2410_UART
  83. depends on ARCH_S3C2410
  84. int "S3C2410 UART to use for low-level debug"
  85. default "0"
  86. help
  87. Choice for UART for kernel low-level using S3C2410 UARTS,
  88. should be between zero and two. The port must have been
  89. initalised by the boot-loader before use.
  90. The uncompressor code port configuration is now handled
  91. by CONFIG_S3C2410_LOWLEVEL_UART_PORT.
  92. endmenu