Kconfig.debug 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 KPROBES
  10. bool "Kprobes"
  11. depends on DEBUG_KERNEL
  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
  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 XMON
  32. bool "Include xmon kernel debugger"
  33. depends on DEBUGGER && !PPC_ISERIES
  34. help
  35. Include in-kernel hooks for the xmon kernel monitor/debugger.
  36. Unless you are intending to debug the kernel, say N here.
  37. Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
  38. nothing will appear on the screen (xmon writes directly to the
  39. framebuffer memory).
  40. The cmdline option 'xmon' or 'xmon=early' will drop into xmon very
  41. early during boot. 'xmon=on' will just enable the xmon debugger hooks.
  42. 'xmon=off' will disable the debugger hooks if CONFIG_XMON_DEFAULT is set.
  43. config XMON_DEFAULT
  44. bool "Enable xmon by default"
  45. depends on XMON
  46. help
  47. xmon is normally disabled unless booted with 'xmon=on'.
  48. Use 'xmon=off' to disable xmon init during runtime.
  49. config PPCDBG
  50. bool "Include PPCDBG realtime debugging"
  51. depends on DEBUG_KERNEL
  52. config IRQSTACKS
  53. bool "Use separate kernel stacks when processing interrupts"
  54. help
  55. If you say Y here the kernel will use separate kernel stacks
  56. for handling hard and soft interrupts. This can help avoid
  57. overflowing the process kernel stacks.
  58. endmenu