Kconfig.debug 4.5 KB

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