Kconfig.debug 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_STACK_USAGE
  4. bool "Enable stack utilization instrumentation"
  5. depends on DEBUG_KERNEL
  6. help
  7. Enables the display of the minimum amount of free stack which each
  8. task has ever had available in the sysrq-T and sysrq-P debug output.
  9. This option will slow down process creation somewhat.
  10. config KPROBES
  11. bool "Kprobes"
  12. depends on DEBUG_KERNEL
  13. help
  14. Kprobes allows you to trap at almost any kernel address and
  15. execute a callback function. register_kprobe() establishes
  16. a probepoint and specifies the callback. Kprobes is useful
  17. for kernel debugging, non-intrusive instrumentation and testing.
  18. If in doubt, say "N".
  19. config DEBUG_DCFLUSH
  20. bool "D-cache flush debugging"
  21. depends on DEBUG_KERNEL
  22. config STACK_DEBUG
  23. depends on DEBUG_KERNEL
  24. bool "Stack Overflow Detection Support"
  25. config DEBUG_BOOTMEM
  26. depends on DEBUG_KERNEL
  27. bool "Debug BOOTMEM initialization"
  28. # We have a custom atomic_dec_and_lock() implementation but it's not
  29. # compatible with spinlock debugging so we need to fall back on
  30. # the generic version in that case.
  31. config HAVE_DEC_LOCK
  32. bool
  33. depends on SMP && !DEBUG_SPINLOCK
  34. default y
  35. config MCOUNT
  36. bool
  37. depends on STACK_DEBUG
  38. default y
  39. config FRAME_POINTER
  40. bool
  41. depends on MCOUNT
  42. default y
  43. endmenu