Kconfig.debug 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # SPDX-License-Identifier: GPL-2.0
  2. config SH_STANDARD_BIOS
  3. bool "Use LinuxSH standard BIOS"
  4. help
  5. Say Y here if your target has the gdb-sh-stub
  6. package from www.m17n.org (or any conforming standard LinuxSH BIOS)
  7. in FLASH or EPROM. The kernel will use standard BIOS calls during
  8. boot for various housekeeping tasks (including calls to read and
  9. write characters to a system console, get a MAC address from an
  10. on-board Ethernet interface, and shut down the hardware). Note this
  11. does not work with machines with an existing operating system in
  12. mask ROM and no flash (WindowsCE machines fall in this category).
  13. If unsure, say N.
  14. config STACK_DEBUG
  15. bool "Check for stack overflows"
  16. depends on DEBUG_KERNEL && PRINTK
  17. help
  18. This option will cause messages to be printed if free stack space
  19. drops below a certain limit. Saying Y here will add overhead to
  20. every function call and will therefore incur a major
  21. performance hit. Most users should say N.
  22. config EARLY_PRINTK
  23. bool "Early printk"
  24. depends on SH_STANDARD_BIOS
  25. help
  26. Say Y here to redirect kernel printk messages to the serial port
  27. used by the SH-IPL bootloader, starting very early in the boot
  28. process and ending when the kernel's serial console is initialised.
  29. This option is only useful while porting the kernel to a new machine,
  30. when the kernel may crash or hang before the serial console is
  31. initialised. If unsure, say N.
  32. config 4KSTACKS
  33. bool "Use 4Kb for kernel stacks instead of 8Kb"
  34. depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB
  35. help
  36. If you say Y here the kernel will use a 4Kb stacksize for the
  37. kernel stack attached to each process/thread. This facilitates
  38. running more threads on a system and also reduces the pressure
  39. on the VM subsystem for higher order allocations. This option
  40. will also use IRQ stacks to compensate for the reduced stackspace.
  41. config IRQSTACKS
  42. bool "Use separate kernel stacks when processing interrupts"
  43. depends on DEBUG_KERNEL && BROKEN
  44. help
  45. If you say Y here the kernel will use separate kernel stacks
  46. for handling hard and soft interrupts. This can help avoid
  47. overflowing the process kernel stacks.
  48. config DUMP_CODE
  49. bool "Show disassembly of nearby code in register dumps"
  50. depends on DEBUG_KERNEL
  51. default y if DEBUG_BUGVERBOSE
  52. default n
  53. help
  54. This prints out a code trace of the instructions leading up to
  55. the faulting instruction as a debugging aid. As this does grow
  56. the kernel in size a bit, most users will want to say N here.
  57. Those looking for more verbose debugging output should say Y.
  58. config DWARF_UNWINDER
  59. bool "Enable the DWARF unwinder for stacktraces"
  60. depends on DEBUG_KERNEL
  61. select FRAME_POINTER
  62. default n
  63. help
  64. Enabling this option will make stacktraces more accurate, at
  65. the cost of an increase in overall kernel size.
  66. config SH_NO_BSS_INIT
  67. bool "Avoid zeroing BSS (to speed-up startup on suitable platforms)"
  68. depends on DEBUG_KERNEL
  69. default n
  70. help
  71. If running in painfully slow environments, such as an RTL
  72. simulation or from remote memory via SHdebug, where the memory
  73. can already be guaranteed to ber zeroed on boot, say Y.
  74. For all other cases, say N. If this option seems perplexing, or
  75. you aren't sure, say N.
  76. config MCOUNT
  77. def_bool y
  78. depends on STACK_DEBUG || FUNCTION_TRACER