Kconfig.debug 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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_OCP
  94. bool
  95. depends on IBM_OCP || XILINX_OCP
  96. default y
  97. choice
  98. prompt "Early debugging (dangerous)"
  99. bool
  100. optional
  101. help
  102. Enable early debugging. Careful, if you enable debugging for the
  103. wrong type of machine your kernel _will not boot_.
  104. config PPC_EARLY_DEBUG_LPAR
  105. bool "LPAR HV Console"
  106. depends on PPC_PSERIES
  107. help
  108. Select this to enable early debugging for a machine with a HVC
  109. console on vterm 0.
  110. config PPC_EARLY_DEBUG_G5
  111. bool "Apple G5"
  112. depends on PPC_PMAC64
  113. help
  114. Select this to enable early debugging for Apple G5 machines.
  115. config PPC_EARLY_DEBUG_RTAS
  116. bool "RTAS Panel"
  117. depends on PPC_RTAS
  118. help
  119. Select this to enable early debugging via the RTAS panel.
  120. config PPC_EARLY_DEBUG_MAPLE
  121. bool "Maple real mode"
  122. depends on PPC_MAPLE
  123. help
  124. Select this to enable early debugging for Maple.
  125. config PPC_EARLY_DEBUG_ISERIES
  126. bool "iSeries HV Console"
  127. depends on PPC_ISERIES
  128. help
  129. Select this to enable early debugging for legacy iSeries. You need
  130. to hit "Ctrl-x Ctrl-x" to see the messages on the console.
  131. endchoice
  132. endmenu