Kconfig.debug 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_STACKOVERFLOW
  4. bool "Check for stack overflows"
  5. depends on DEBUG_KERNEL && PPC64
  6. help
  7. This option will cause messages to be printed if free stack space
  8. drops below a certain limit.
  9. config DEBUG_STACK_USAGE
  10. bool "Stack utilization instrumentation"
  11. depends on DEBUG_KERNEL && PPC64
  12. help
  13. Enables the display of the minimum amount of free stack which each
  14. task has ever had available in the sysrq-T and sysrq-P debug output.
  15. This option will slow down process creation somewhat.
  16. config DEBUGGER
  17. bool "Enable debugger hooks"
  18. depends on DEBUG_KERNEL
  19. help
  20. Include in-kernel hooks for kernel debuggers. Unless you are
  21. intending to debug the kernel, say N here.
  22. config KGDB
  23. bool "Include kgdb kernel debugger"
  24. depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
  25. select DEBUG_INFO
  26. help
  27. Include in-kernel hooks for kgdb, the Linux kernel source level
  28. debugger. See <http://kgdb.sourceforge.net/> for more information.
  29. Unless you are intending to debug the kernel, say N here.
  30. choice
  31. prompt "Serial Port"
  32. depends on KGDB
  33. default KGDB_TTYS1
  34. config KGDB_TTYS0
  35. bool "ttyS0"
  36. config KGDB_TTYS1
  37. bool "ttyS1"
  38. config KGDB_TTYS2
  39. bool "ttyS2"
  40. config KGDB_TTYS3
  41. bool "ttyS3"
  42. endchoice
  43. config KGDB_CONSOLE
  44. bool "Enable serial console thru kgdb port"
  45. depends on KGDB && 8xx || CPM2
  46. help
  47. If you enable this, all serial console messages will be sent
  48. over the gdb stub.
  49. If unsure, say N.
  50. config XMON
  51. bool "Include xmon kernel debugger"
  52. depends on DEBUGGER && !PPC_ISERIES
  53. help
  54. Include in-kernel hooks for the xmon kernel monitor/debugger.
  55. Unless you are intending to debug the kernel, say N here.
  56. Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
  57. nothing will appear on the screen (xmon writes directly to the
  58. framebuffer memory).
  59. The cmdline option 'xmon' or 'xmon=early' will drop into xmon
  60. very early during boot. 'xmon=on' will just enable the xmon
  61. debugger hooks. 'xmon=off' will disable the debugger hooks
  62. if CONFIG_XMON_DEFAULT is set.
  63. config XMON_DEFAULT
  64. bool "Enable xmon by default"
  65. depends on XMON
  66. help
  67. xmon is normally disabled unless booted with 'xmon=on'.
  68. Use 'xmon=off' to disable xmon init during runtime.
  69. config IRQSTACKS
  70. bool "Use separate kernel stacks when processing interrupts"
  71. depends on PPC64
  72. help
  73. If you say Y here the kernel will use separate kernel stacks
  74. for handling hard and soft interrupts. This can help avoid
  75. overflowing the process kernel stacks.
  76. config BDI_SWITCH
  77. bool "Include BDI-2000 user context switcher"
  78. depends on DEBUG_KERNEL && PPC32
  79. help
  80. Include in-kernel support for the Abatron BDI2000 debugger.
  81. Unless you are intending to debug the kernel with one of these
  82. machines, say N here.
  83. config BOOTX_TEXT
  84. bool "Support for early boot text console (BootX or OpenFirmware only)"
  85. depends PPC_OF && !PPC_ISERIES
  86. help
  87. Say Y here to see progress messages from the boot firmware in text
  88. mode. Requires either BootX or Open Firmware.
  89. config SERIAL_TEXT_DEBUG
  90. bool "Support for early boot texts over serial port"
  91. depends on 4xx || LOPEC || MV64X60 || PPLUS || PRPMC800 || \
  92. PPC_GEN550 || PPC_MPC52xx
  93. config PPC_EARLY_DEBUG
  94. bool "Early debugging (dangerous)"
  95. choice
  96. prompt "Early debugging console"
  97. depends on PPC_EARLY_DEBUG
  98. help
  99. Use the selected console for early debugging. Careful, if you
  100. enable debugging for the wrong type of machine your kernel
  101. _will not boot_.
  102. config PPC_EARLY_DEBUG_LPAR
  103. bool "LPAR HV Console"
  104. depends on PPC_PSERIES
  105. help
  106. Select this to enable early debugging for a machine with a HVC
  107. console on vterm 0.
  108. config PPC_EARLY_DEBUG_G5
  109. bool "Apple G5"
  110. depends on PPC_PMAC64
  111. help
  112. Select this to enable early debugging for Apple G5 machines.
  113. config PPC_EARLY_DEBUG_RTAS_PANEL
  114. bool "RTAS Panel"
  115. depends on PPC_RTAS
  116. help
  117. Select this to enable early debugging via the RTAS panel.
  118. config PPC_EARLY_DEBUG_RTAS_CONSOLE
  119. bool "RTAS Console"
  120. depends on PPC_RTAS
  121. select UDBG_RTAS_CONSOLE
  122. help
  123. Select this to enable early debugging via the RTAS console.
  124. config PPC_EARLY_DEBUG_MAPLE
  125. bool "Maple real mode"
  126. depends on PPC_MAPLE
  127. help
  128. Select this to enable early debugging for Maple.
  129. config PPC_EARLY_DEBUG_ISERIES
  130. bool "iSeries HV Console"
  131. depends on PPC_ISERIES
  132. help
  133. Select this to enable early debugging for legacy iSeries. You need
  134. to hit "Ctrl-x Ctrl-x" to see the messages on the console.
  135. endchoice
  136. endmenu