Kconfig.debug 2.9 KB

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