Kconfig.debug 931 B

123456789101112131415161718192021222324
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_RWLOCK
  4. bool "Read-write spinlock debugging"
  5. depends on DEBUG_KERNEL && SMP
  6. help
  7. If you say Y here then read-write lock processing will count how many
  8. times it has tried to get the lock and issue an error message after
  9. too many attempts. If you suspect a rwlock problem or a kernel
  10. hacker asks for this option then say Y. Otherwise say N.
  11. config DEBUG_RODATA
  12. bool "Write protect kernel read-only data structures"
  13. depends on DEBUG_KERNEL
  14. help
  15. Mark the kernel read-only data as write-protected in the pagetables,
  16. in order to catch accidental (and incorrect) writes to such const
  17. data. This option may have a slight performance impact because a
  18. portion of the kernel code won't be covered by a TLB anymore.
  19. If in doubt, say "N".
  20. endmenu