Kconfig.debug 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 KPROBES
  10. bool "Kprobes"
  11. depends on DEBUG_KERNEL && PPC64
  12. help
  13. Kprobes allows you to trap at almost any kernel address and
  14. execute a callback function. register_kprobe() establishes
  15. a probepoint and specifies the callback. Kprobes is useful
  16. for kernel debugging, non-intrusive instrumentation and testing.
  17. If in doubt, say "N".
  18. config DEBUG_STACK_USAGE
  19. bool "Stack utilization instrumentation"
  20. depends on DEBUG_KERNEL && PPC64
  21. help
  22. Enables the display of the minimum amount of free stack which each
  23. task has ever had available in the sysrq-T and sysrq-P debug output.
  24. This option will slow down process creation somewhat.
  25. config DEBUGGER
  26. bool "Enable debugger hooks"
  27. depends on DEBUG_KERNEL
  28. help
  29. Include in-kernel hooks for kernel debuggers. Unless you are
  30. intending to debug the kernel, say N here.
  31. config KGDB
  32. bool "Include kgdb kernel debugger"
  33. depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
  34. select DEBUG_INFO
  35. help
  36. Include in-kernel hooks for kgdb, the Linux kernel source level
  37. debugger. See <http://kgdb.sourceforge.net/> for more information.
  38. Unless you are intending to debug the kernel, say N here.
  39. choice
  40. prompt "Serial Port"
  41. depends on KGDB
  42. default KGDB_TTYS1
  43. config KGDB_TTYS0
  44. bool "ttyS0"
  45. config KGDB_TTYS1
  46. bool "ttyS1"
  47. config KGDB_TTYS2
  48. bool "ttyS2"
  49. config KGDB_TTYS3
  50. bool "ttyS3"
  51. endchoice
  52. config KGDB_CONSOLE
  53. bool "Enable serial console thru kgdb port"
  54. depends on KGDB && 8xx || CPM2
  55. help
  56. If you enable this, all serial console messages will be sent
  57. over the gdb stub.
  58. If unsure, say N.
  59. config XMON
  60. bool "Include xmon kernel debugger"
  61. depends on DEBUGGER && !PPC_ISERIES
  62. help
  63. Include in-kernel hooks for the xmon kernel monitor/debugger.
  64. Unless you are intending to debug the kernel, say N here.
  65. Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
  66. nothing will appear on the screen (xmon writes directly to the
  67. framebuffer memory).
  68. The cmdline option 'xmon' or 'xmon=early' will drop into xmon
  69. very early during boot. 'xmon=on' will just enable the xmon
  70. debugger hooks. 'xmon=off' will disable the debugger hooks
  71. if CONFIG_XMON_DEFAULT is set.
  72. config XMON_DEFAULT
  73. bool "Enable xmon by default"
  74. depends on XMON
  75. help
  76. xmon is normally disabled unless booted with 'xmon=on'.
  77. Use 'xmon=off' to disable xmon init during runtime.
  78. config IRQSTACKS
  79. bool "Use separate kernel stacks when processing interrupts"
  80. depends on PPC64
  81. help
  82. If you say Y here the kernel will use separate kernel stacks
  83. for handling hard and soft interrupts. This can help avoid
  84. overflowing the process kernel stacks.
  85. config BDI_SWITCH
  86. bool "Include BDI-2000 user context switcher"
  87. depends on DEBUG_KERNEL && PPC32
  88. help
  89. Include in-kernel support for the Abatron BDI2000 debugger.
  90. Unless you are intending to debug the kernel with one of these
  91. machines, say N here.
  92. config BOOTX_TEXT
  93. bool "Support for early boot text console (BootX or OpenFirmware only)"
  94. depends PPC_OF && !PPC_ISERIES
  95. help
  96. Say Y here to see progress messages from the boot firmware in text
  97. mode. Requires either BootX or Open Firmware.
  98. config SERIAL_TEXT_DEBUG
  99. bool "Support for early boot texts over serial port"
  100. depends on 4xx || LOPEC || MV64X60 || PPLUS || PRPMC800 || \
  101. PPC_GEN550 || PPC_MPC52xx
  102. config PPC_OCP
  103. bool
  104. depends on IBM_OCP || XILINX_OCP
  105. default y
  106. endmenu