Kconfig.debug 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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 DEBUG_PAGEALLOC
  17. bool "Debug page memory allocations"
  18. depends on DEBUG_KERNEL && !HIBERNATION
  19. help
  20. Unmap pages from the kernel linear mapping after free_pages().
  21. This results in a large slowdown, but helps to find certain types
  22. of memory corruptions.
  23. config HCALL_STATS
  24. bool "Hypervisor call instrumentation"
  25. depends on PPC_PSERIES && DEBUG_FS
  26. help
  27. Adds code to keep track of the number of hypervisor calls made and
  28. the amount of time spent in hypervisor calls. Wall time spent in
  29. each call is always calculated, and if available CPU cycles spent
  30. are also calculated. A directory named hcall_inst is added at the
  31. root of the debugfs filesystem. Within the hcall_inst directory
  32. are files that contain CPU specific call statistics.
  33. This option will add a small amount of overhead to all hypervisor
  34. calls.
  35. config DEBUGGER
  36. bool "Enable debugger hooks"
  37. depends on DEBUG_KERNEL
  38. help
  39. Include in-kernel hooks for kernel debuggers. Unless you are
  40. intending to debug the kernel, say N here.
  41. config KGDB
  42. bool "Include kgdb kernel debugger"
  43. depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
  44. select DEBUG_INFO
  45. help
  46. Include in-kernel hooks for kgdb, the Linux kernel source level
  47. debugger. See <http://kgdb.sourceforge.net/> for more information.
  48. Unless you are intending to debug the kernel, say N here.
  49. choice
  50. prompt "Serial Port"
  51. depends on KGDB
  52. default KGDB_TTYS1
  53. config KGDB_TTYS0
  54. bool "ttyS0"
  55. config KGDB_TTYS1
  56. bool "ttyS1"
  57. config KGDB_TTYS2
  58. bool "ttyS2"
  59. config KGDB_TTYS3
  60. bool "ttyS3"
  61. endchoice
  62. config KGDB_CONSOLE
  63. bool "Enable serial console thru kgdb port"
  64. depends on KGDB && 8xx || CPM2
  65. help
  66. If you enable this, all serial console messages will be sent
  67. over the gdb stub.
  68. If unsure, say N.
  69. config XMON
  70. bool "Include xmon kernel debugger"
  71. depends on DEBUGGER
  72. help
  73. Include in-kernel hooks for the xmon kernel monitor/debugger.
  74. Unless you are intending to debug the kernel, say N here.
  75. Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
  76. nothing will appear on the screen (xmon writes directly to the
  77. framebuffer memory).
  78. The cmdline option 'xmon' or 'xmon=early' will drop into xmon
  79. very early during boot. 'xmon=on' will just enable the xmon
  80. debugger hooks. 'xmon=off' will disable the debugger hooks
  81. if CONFIG_XMON_DEFAULT is set.
  82. xmon will print a backtrace on the very first invocation.
  83. 'xmon=nobt' will disable this autobacktrace.
  84. config XMON_DEFAULT
  85. bool "Enable xmon by default"
  86. depends on XMON
  87. help
  88. xmon is normally disabled unless booted with 'xmon=on'.
  89. Use 'xmon=off' to disable xmon init during runtime.
  90. config XMON_DISASSEMBLY
  91. bool "Include disassembly support in xmon"
  92. depends on XMON
  93. default y
  94. help
  95. Include support for disassembling in xmon. You probably want
  96. to say Y here, unless you're building for a memory-constrained
  97. system.
  98. config IRQSTACKS
  99. bool "Use separate kernel stacks when processing interrupts"
  100. depends on PPC64
  101. help
  102. If you say Y here the kernel will use separate kernel stacks
  103. for handling hard and soft interrupts. This can help avoid
  104. overflowing the process kernel stacks.
  105. config VIRQ_DEBUG
  106. bool "Expose hardware/virtual IRQ mapping via debugfs"
  107. depends on DEBUG_FS && PPC_MERGE
  108. help
  109. This option will show the mapping relationship between hardware irq
  110. numbers and virtual irq numbers. The mapping is exposed via debugfs
  111. in the file powerpc/virq_mapping.
  112. If you don't know what this means you don't need it.
  113. config BDI_SWITCH
  114. bool "Include BDI-2000 user context switcher"
  115. depends on DEBUG_KERNEL && PPC32
  116. help
  117. Include in-kernel support for the Abatron BDI2000 debugger.
  118. Unless you are intending to debug the kernel with one of these
  119. machines, say N here.
  120. config BOOTX_TEXT
  121. bool "Support for early boot text console (BootX or OpenFirmware only)"
  122. depends PPC_OF && PPC_MULTIPLATFORM
  123. help
  124. Say Y here to see progress messages from the boot firmware in text
  125. mode. Requires either BootX or Open Firmware.
  126. config PPC_EARLY_DEBUG
  127. bool "Early debugging (dangerous)"
  128. choice
  129. prompt "Early debugging console"
  130. depends on PPC_EARLY_DEBUG
  131. help
  132. Use the selected console for early debugging. Careful, if you
  133. enable debugging for the wrong type of machine your kernel
  134. _will not boot_.
  135. config PPC_EARLY_DEBUG_LPAR
  136. bool "LPAR HV Console"
  137. depends on PPC_PSERIES
  138. help
  139. Select this to enable early debugging for a machine with a HVC
  140. console on vterm 0.
  141. config PPC_EARLY_DEBUG_G5
  142. bool "Apple G5"
  143. depends on PPC_PMAC64
  144. help
  145. Select this to enable early debugging for Apple G5 machines.
  146. config PPC_EARLY_DEBUG_RTAS_PANEL
  147. bool "RTAS Panel"
  148. depends on PPC_RTAS
  149. help
  150. Select this to enable early debugging via the RTAS panel.
  151. config PPC_EARLY_DEBUG_RTAS_CONSOLE
  152. bool "RTAS Console"
  153. depends on PPC_RTAS
  154. select UDBG_RTAS_CONSOLE
  155. help
  156. Select this to enable early debugging via the RTAS console.
  157. config PPC_EARLY_DEBUG_MAPLE
  158. bool "Maple real mode"
  159. depends on PPC_MAPLE
  160. help
  161. Select this to enable early debugging for Maple.
  162. config PPC_EARLY_DEBUG_ISERIES
  163. bool "iSeries HV Console"
  164. depends on PPC_ISERIES
  165. help
  166. Select this to enable early debugging for legacy iSeries. You need
  167. to hit "Ctrl-x Ctrl-x" to see the messages on the console.
  168. config PPC_EARLY_DEBUG_PAS_REALMODE
  169. bool "PA Semi real mode"
  170. depends on PPC_PASEMI
  171. help
  172. Select this to enable early debugging for PA Semi.
  173. Output will be on UART0.
  174. config PPC_EARLY_DEBUG_BEAT
  175. bool "Beat HV Console"
  176. depends on PPC_CELLEB
  177. select PPC_UDBG_BEAT
  178. help
  179. Select this to enable early debugging for Celleb with Beat.
  180. config PPC_EARLY_DEBUG_44x
  181. bool "Early serial debugging for IBM/AMCC 44x CPUs"
  182. depends on 44x
  183. select PPC_UDBG_16550
  184. help
  185. Select this to enable early debugging for IBM 44x chips via the
  186. inbuilt serial port.
  187. config PPC_EARLY_DEBUG_CPM
  188. bool "Early serial debugging for Freescale CPM-based serial ports"
  189. depends on SERIAL_CPM
  190. select PIN_TLB if PPC_8xx
  191. help
  192. Select this to enable early debugging for Freescale chips
  193. using a CPM-based serial port. This assumes that the bootwrapper
  194. has run, and set up the CPM in a particular way.
  195. endchoice
  196. config PPC_EARLY_DEBUG_44x_PHYSLOW
  197. hex "Low 32 bits of early debug UART physical address"
  198. depends PPC_EARLY_DEBUG_44x
  199. default "0x40000200"
  200. config PPC_EARLY_DEBUG_44x_PHYSHIGH
  201. hex "EPRN of early debug UART physical address"
  202. depends PPC_EARLY_DEBUG_44x
  203. default "0x1"
  204. config PPC_EARLY_DEBUG_CPM_ADDR
  205. hex "CPM UART early debug transmit descriptor address"
  206. depends on PPC_EARLY_DEBUG_CPM
  207. default "0xfa202008" if PPC_EP88XC
  208. default "0xf0000008" if CPM2
  209. default "0xff002008" if CPM1
  210. help
  211. This specifies the address of the transmit descriptor
  212. used for early debug output. Because it is needed before
  213. platform probing is done, all platforms selected must
  214. share the same address.
  215. endmenu