Kconfig.debug 5.1 KB

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