Kconfig.debug 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_STACKOVERFLOW
  4. bool "Check for stack overflows"
  5. depends on DEBUG_KERNEL
  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
  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 HCALL_STATS
  17. bool "Hypervisor call instrumentation"
  18. depends on PPC_PSERIES && DEBUG_FS
  19. help
  20. Adds code to keep track of the number of hypervisor calls made and
  21. the amount of time spent in hypervisor callsr. Wall time spent in
  22. each call is always calculated, and if available CPU cycles spent
  23. are also calculated. A directory named hcall_inst is added at the
  24. root of the debugfs filesystem. Within the hcall_inst directory
  25. are files that contain CPU specific call statistics.
  26. This option will add a small amount of overhead to all hypervisor
  27. calls.
  28. config DEBUGGER
  29. bool "Enable debugger hooks"
  30. depends on DEBUG_KERNEL
  31. help
  32. Include in-kernel hooks for kernel debuggers. Unless you are
  33. intending to debug the kernel, say N here.
  34. config KGDB
  35. bool "Include kgdb kernel debugger"
  36. depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
  37. select DEBUG_INFO
  38. help
  39. Include in-kernel hooks for kgdb, the Linux kernel source level
  40. debugger. See <http://kgdb.sourceforge.net/> for more information.
  41. Unless you are intending to debug the kernel, say N here.
  42. choice
  43. prompt "Serial Port"
  44. depends on KGDB
  45. default KGDB_TTYS1
  46. config KGDB_TTYS0
  47. bool "ttyS0"
  48. config KGDB_TTYS1
  49. bool "ttyS1"
  50. config KGDB_TTYS2
  51. bool "ttyS2"
  52. config KGDB_TTYS3
  53. bool "ttyS3"
  54. endchoice
  55. config KGDB_CONSOLE
  56. bool "Enable serial console thru kgdb port"
  57. depends on KGDB && 8xx || CPM2
  58. help
  59. If you enable this, all serial console messages will be sent
  60. over the gdb stub.
  61. If unsure, say N.
  62. config XMON
  63. bool "Include xmon kernel debugger"
  64. depends on DEBUGGER
  65. help
  66. Include in-kernel hooks for the xmon kernel monitor/debugger.
  67. Unless you are intending to debug the kernel, say N here.
  68. Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
  69. nothing will appear on the screen (xmon writes directly to the
  70. framebuffer memory).
  71. The cmdline option 'xmon' or 'xmon=early' will drop into xmon
  72. very early during boot. 'xmon=on' will just enable the xmon
  73. debugger hooks. 'xmon=off' will disable the debugger hooks
  74. if CONFIG_XMON_DEFAULT is set.
  75. xmon will print a backtrace on the very first invocation.
  76. 'xmon=nobt' will disable this autobacktrace.
  77. config XMON_DEFAULT
  78. bool "Enable xmon by default"
  79. depends on XMON
  80. help
  81. xmon is normally disabled unless booted with 'xmon=on'.
  82. Use 'xmon=off' to disable xmon init during runtime.
  83. config XMON_DISASSEMBLY
  84. bool "Include disassembly support in xmon"
  85. depends on XMON
  86. default y
  87. help
  88. Include support for disassembling in xmon. You probably want
  89. to say Y here, unless you're building for a memory-constrained
  90. system.
  91. config IRQSTACKS
  92. bool "Use separate kernel stacks when processing interrupts"
  93. depends on PPC64
  94. help
  95. If you say Y here the kernel will use separate kernel stacks
  96. for handling hard and soft interrupts. This can help avoid
  97. overflowing the process kernel stacks.
  98. config BDI_SWITCH
  99. bool "Include BDI-2000 user context switcher"
  100. depends on DEBUG_KERNEL && PPC32
  101. help
  102. Include in-kernel support for the Abatron BDI2000 debugger.
  103. Unless you are intending to debug the kernel with one of these
  104. machines, say N here.
  105. config BOOTX_TEXT
  106. bool "Support for early boot text console (BootX or OpenFirmware only)"
  107. depends PPC_OF
  108. help
  109. Say Y here to see progress messages from the boot firmware in text
  110. mode. Requires either BootX or Open Firmware.
  111. config SERIAL_TEXT_DEBUG
  112. bool "Support for early boot texts over serial port"
  113. depends on 4xx || LOPEC || MV64X60 || PPLUS || PRPMC800 || \
  114. PPC_GEN550 || PPC_MPC52xx
  115. config PPC_EARLY_DEBUG
  116. bool "Early debugging (dangerous)"
  117. choice
  118. prompt "Early debugging console"
  119. depends on PPC_EARLY_DEBUG
  120. help
  121. Use the selected console for early debugging. Careful, if you
  122. enable debugging for the wrong type of machine your kernel
  123. _will not boot_.
  124. config PPC_EARLY_DEBUG_LPAR
  125. bool "LPAR HV Console"
  126. depends on PPC_PSERIES
  127. help
  128. Select this to enable early debugging for a machine with a HVC
  129. console on vterm 0.
  130. config PPC_EARLY_DEBUG_G5
  131. bool "Apple G5"
  132. depends on PPC_PMAC64
  133. help
  134. Select this to enable early debugging for Apple G5 machines.
  135. config PPC_EARLY_DEBUG_RTAS_PANEL
  136. bool "RTAS Panel"
  137. depends on PPC_RTAS
  138. help
  139. Select this to enable early debugging via the RTAS panel.
  140. config PPC_EARLY_DEBUG_RTAS_CONSOLE
  141. bool "RTAS Console"
  142. depends on PPC_RTAS
  143. select UDBG_RTAS_CONSOLE
  144. help
  145. Select this to enable early debugging via the RTAS console.
  146. config PPC_EARLY_DEBUG_MAPLE
  147. bool "Maple real mode"
  148. depends on PPC_MAPLE
  149. help
  150. Select this to enable early debugging for Maple.
  151. config PPC_EARLY_DEBUG_ISERIES
  152. bool "iSeries HV Console"
  153. depends on PPC_ISERIES
  154. help
  155. Select this to enable early debugging for legacy iSeries. You need
  156. to hit "Ctrl-x Ctrl-x" to see the messages on the console.
  157. config PPC_EARLY_DEBUG_PAS_REALMODE
  158. bool "PA Semi real mode"
  159. depends on PPC_PASEMI
  160. help
  161. Select this to enable early debugging for PA Semi.
  162. Output will be on UART0.
  163. config PPC_EARLY_DEBUG_BEAT
  164. bool "Beat HV Console"
  165. depends on PPC_CELLEB
  166. select PPC_UDBG_BEAT
  167. help
  168. Select this to enable early debugging for Celleb with Beat.
  169. endchoice
  170. endmenu