]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add queue(2) debug macros as build options
authorcem <cem@FreeBSD.org>
Sun, 12 Apr 2020 18:04:20 +0000 (18:04 +0000)
committercem <cem@FreeBSD.org>
Sun, 12 Apr 2020 18:04:20 +0000 (18:04 +0000)
commitc510d28f8bd52a82bc44e2b509dfb731cb4ac23a
tree6593f303b4950c3e62b923ca31ea583f09ad7005
parent905f203f7c38e70a668a8c6edad568d4ba4c901d
Add queue(2) debug macros as build options

Add QUEUE_MACRO_DEBUG_TRACE and QUEUE_MACRO_DEBUG_TRASH as proper kernel
options.  While here, alpha-sort the debug section of sys/conf/options.

Enable QUEUE_MACRO_DEBUG_TRASH in amd64 GENERIC (but not GENERIC-NODEBUG)
kernels.  It is similar in nature and cost to other use-after-free pointer
trashing we do in GENERIC.  It is probably reasonable to enable in any arch
GENERIC kernel that defines INVARIANTS.
sys/amd64/conf/GENERIC
sys/amd64/conf/GENERIC-NODEBUG
sys/conf/NOTES
sys/conf/options