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. config DEBUG_PAGEALLOC
  29. bool "Page alloc debugging"
  30. depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND
  31. help
  32. Unmap pages from the kernel linear mapping after free_pages().
  33. This results in a large slowdown, but helps to find certain types
  34. of memory corruptions.
  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