Add a new kernel compile debugging option, DEBUG_CRIT_SECTIONS. This fairly
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 26 Jul 2005 20:53:58 +0000 (20:53 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 26 Jul 2005 20:53:58 +0000 (20:53 +0000)
commit02d8a449a9e124e6cf325138c100dbed955f5ede
tree3e24b2a424d72e7c054edacf78b0fc65b27880bb
parentedbd2e19c18c4b539fafac4d1ff6e6390e8b9d46
Add a new kernel compile debugging option, DEBUG_CRIT_SECTIONS.  This fairly
invasive debugging option compiles matching code into the critical section
inlines and reports mismatches at run-time.   It is used to detect
missing/forgotten crit_exit() calls.

Note that because there are a number of places where critical sections are
manipulated outside the procedures that entered them, this code will
generate a number of false hits and should only be used under the direction
of experienced developers.

Note that the thread structure will be extended by this option.
sys/conf/options
sys/sys/thread.h
sys/sys/thread2.h
sys/vfs/ufs/ffs_softdep.c