Kconfig.debug 3.1 KB

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