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