Kconfig.debug 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 EXPERT
  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 EARLY_PRINTK_8250
  19. bool
  20. depends on EARLY_PRINTK && USE_GENERIC_EARLY_PRINTK_8250
  21. default y
  22. help
  23. "8250/16550 and compatible serial early printk driver"
  24. If you say Y here, it will be possible to use a 8250/16550 serial
  25. port as the boot console.
  26. config USE_GENERIC_EARLY_PRINTK_8250
  27. bool
  28. config CMDLINE_BOOL
  29. bool "Built-in kernel command line"
  30. default n
  31. help
  32. For most systems, it is firmware or second stage bootloader that
  33. by default specifies the kernel command line options. However,
  34. it might be necessary or advantageous to either override the
  35. default kernel command line or add a few extra options to it.
  36. For such cases, this option allows you to hardcode your own
  37. command line options directly into the kernel. For that, you
  38. should choose 'Y' here, and fill in the extra boot arguments
  39. in CONFIG_CMDLINE.
  40. The built-in options will be concatenated to the default command
  41. line if CMDLINE_OVERRIDE is set to 'N'. Otherwise, the default
  42. command line will be ignored and replaced by the built-in string.
  43. Most MIPS systems will normally expect 'N' here and rely upon
  44. the command line from the firmware or the second-stage bootloader.
  45. config CMDLINE
  46. string "Default kernel command string"
  47. depends on CMDLINE_BOOL
  48. default ""
  49. help
  50. On some platforms, there is currently no way for the boot loader to
  51. pass arguments to the kernel. For these platforms, and for the cases
  52. when you want to add some extra options to the command line or ignore
  53. the default command line, you can supply some command-line options at
  54. build time by entering them here. In other cases you can specify
  55. kernel args so that you don't have to set them up in board prom
  56. initialization routines.
  57. For more information, see the CMDLINE_BOOL and CMDLINE_OVERRIDE
  58. options.
  59. config CMDLINE_OVERRIDE
  60. bool "Built-in command line overrides firmware arguments"
  61. default n
  62. depends on CMDLINE_BOOL
  63. help
  64. By setting this option to 'Y' you will have your kernel ignore
  65. command line arguments from firmware or second stage bootloader.
  66. Instead, the built-in command line will be used exclusively.
  67. Normally, you will choose 'N' here.
  68. config SB1XXX_CORELIS
  69. bool "Corelis Debugger"
  70. depends on SIBYTE_SB1xxx_SOC
  71. select DEBUG_INFO
  72. help
  73. Select compile flags that produce code that can be processed by the
  74. Corelis mksym utility and UDB Emulator.
  75. config DEBUG_ZBOOT
  76. bool "Enable compressed kernel support debugging"
  77. depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
  78. default n
  79. help
  80. If you want to add compressed kernel support to a new board, and the
  81. board supports uart16550 compatible serial port, please select
  82. SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
  83. debug it.
  84. If your board doesn't support uart16550 compatible serial port, you
  85. can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
  86. debug it. for example, add a new serial port support just as
  87. arch/mips/boot/compressed/uart-16550.c does.
  88. After the compressed kernel support works, please disable this option
  89. to reduce the kernel image size and speed up the booting procedure a
  90. little.
  91. config SPINLOCK_TEST
  92. bool "Enable spinlock timing tests in debugfs"
  93. depends on DEBUG_FS
  94. default n
  95. help
  96. Add several files to the debugfs to test spinlock speed.
  97. config SCACHE_DEBUGFS
  98. bool "L2 cache debugfs entries"
  99. depends on DEBUG_FS
  100. help
  101. Enable this to allow parts of the L2 cache configuration, such as
  102. whether or not prefetching is enabled, to be exposed to userland
  103. via debugfs.
  104. If unsure, say N.
  105. menuconfig MIPS_CPS_NS16550
  106. bool "CPS SMP NS16550 UART output"
  107. depends on MIPS_CPS
  108. help
  109. Output debug information via an ns16550 compatible UART if exceptions
  110. occur early in the boot process of a secondary core.
  111. if MIPS_CPS_NS16550
  112. config MIPS_CPS_NS16550_BASE
  113. hex "UART Base Address"
  114. default 0x1b0003f8 if MIPS_MALTA
  115. help
  116. The base address of the ns16550 compatible UART on which to output
  117. debug information from the early stages of core startup.
  118. config MIPS_CPS_NS16550_SHIFT
  119. int "UART Register Shift"
  120. default 0 if MIPS_MALTA
  121. help
  122. The number of bits to shift ns16550 register indices by in order to
  123. form their addresses. That is, log base 2 of the span between
  124. adjacent ns16550 registers in the system.
  125. endif # MIPS_CPS_NS16550
  126. endmenu