Kconfig.debug 5.0 KB

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