Kconfig.debug 4.3 KB

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