Kconfig.debug 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. bool
  4. default y
  5. source "lib/Kconfig.debug"
  6. config EARLY_PRINTK
  7. bool "Early printk" if EMBEDDED
  8. depends on SYS_HAS_EARLY_PRINTK
  9. default y
  10. help
  11. This option enables special console drivers which allow the kernel
  12. to print messages very early in the bootup process.
  13. This is useful for kernel debugging when your machine crashes very
  14. early before the console code is initialized. For normal operation,
  15. it is not recommended because it looks ugly on some machines and
  16. doesn't cooperate with an X server. You should normally say N here,
  17. unless you want to debug such a crash.
  18. config CMDLINE_BOOL
  19. bool "Built-in kernel command line"
  20. default n
  21. help
  22. For most systems, it is firmware or second stage bootloader that
  23. by default specifies the kernel command line options. However,
  24. it might be necessary or advantageous to either override the
  25. default kernel command line or add a few extra options to it.
  26. For such cases, this option allows you to hardcode your own
  27. command line options directly into the kernel. For that, you
  28. should choose 'Y' here, and fill in the extra boot arguments
  29. in CONFIG_CMDLINE.
  30. The built-in options will be concatenated to the default command
  31. line if CMDLINE_OVERRIDE is set to 'N'. Otherwise, the default
  32. command line will be ignored and replaced by the built-in string.
  33. Most MIPS systems will normally expect 'N' here and rely upon
  34. the command line from the firmware or the second-stage bootloader.
  35. config CMDLINE
  36. string "Default kernel command string"
  37. depends on CMDLINE_BOOL
  38. default ""
  39. help
  40. On some platforms, there is currently no way for the boot loader to
  41. pass arguments to the kernel. For these platforms, and for the cases
  42. when you want to add some extra options to the command line or ignore
  43. the default command line, you can supply some command-line options at
  44. build time by entering them here. In other cases you can specify
  45. kernel args so that you don't have to set them up in board prom
  46. initialization routines.
  47. For more information, see the CMDLINE_BOOL and CMDLINE_OVERRIDE
  48. options.
  49. config CMDLINE_OVERRIDE
  50. bool "Built-in command line overrides firware arguments"
  51. default n
  52. depends on CMDLINE_BOOL
  53. help
  54. By setting this option to 'Y' you will have your kernel ignore
  55. command line arguments from firmware or second stage bootloader.
  56. Instead, the built-in command line will be used exclusively.
  57. Normally, you will choose 'N' here.
  58. config DEBUG_STACKOVERFLOW
  59. bool "Check for stack overflows"
  60. depends on DEBUG_KERNEL
  61. help
  62. This option will cause messages to be printed if free stack space
  63. drops below a certain limit(2GB on MIPS). The debugging option
  64. provides another way to check stack overflow happened on kernel mode
  65. stack usually caused by nested interruption.
  66. config DEBUG_STACK_USAGE
  67. bool "Enable stack utilization instrumentation"
  68. depends on DEBUG_KERNEL
  69. help
  70. Enables the display of the minimum amount of free stack which each
  71. task has ever had available in the sysrq-T and sysrq-P debug output.
  72. This option will slow down process creation somewhat.
  73. config SMTC_IDLE_HOOK_DEBUG
  74. bool "Enable additional debug checks before going into CPU idle loop"
  75. depends on DEBUG_KERNEL && MIPS_MT_SMTC
  76. help
  77. This option enables Enable additional debug checks before going into
  78. CPU idle loop. For details on these checks, see
  79. arch/mips/kernel/smtc.c. This debugging option result in significant
  80. overhead so should be disabled in production kernels.
  81. config SB1XXX_CORELIS
  82. bool "Corelis Debugger"
  83. depends on SIBYTE_SB1xxx_SOC
  84. select DEBUG_INFO
  85. help
  86. Select compile flags that produce code that can be processed by the
  87. Corelis mksym utility and UDB Emulator.
  88. config RUNTIME_DEBUG
  89. bool "Enable run-time debugging"
  90. depends on DEBUG_KERNEL
  91. help
  92. If you say Y here, some debugging macros will do run-time checking.
  93. If you say N here, those macros will mostly turn to no-ops. See
  94. arch/mips/include/asm/debug.h for debugging macros.
  95. If unsure, say N.
  96. config DEBUG_ZBOOT
  97. bool "Enable compressed kernel support debugging"
  98. depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
  99. default n
  100. help
  101. If you want to add compressed kernel support to a new board, and the
  102. board supports uart16550 compatible serial port, please select
  103. SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
  104. debug it.
  105. If your board doesn't support uart16550 compatible serial port, you
  106. can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
  107. debug it. for example, add a new serial port support just as
  108. arch/mips/boot/compressed/uart-16550.c does.
  109. After the compressed kernel support works, please disable this option
  110. to reduce the kernel image size and speed up the booting procedure a
  111. little.
  112. config SPINLOCK_TEST
  113. bool "Enable spinlock timing tests in debugfs"
  114. depends on DEBUG_FS
  115. default n
  116. help
  117. Add several files to the debugfs to test spinlock speed.
  118. endmenu