[RFQ] make witness panic an option

Adrian Chadd adrian at freebsd.org
Thu Nov 15 06:15:48 UTC 2012


Hi all,

When debugging and writing wireless drivers/stack code, I like to
sprinkle lots of locking assertions everywhere. However, this does
cause things to panic quite often during active development.

This patch (against stable/9) makes the actual panic itself
configurable. It still prints the message regardless.

This has allowed me to sprinkle more locking assertions everywhere to
investigate whether particular paths have been hit or not. I don't
necessarily want those to panic the kernel.

I'd like everyone to consider this for FreeBSD-HEAD.

Thanks!




Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20121114-witness-1.diff
Type: application/octet-stream
Size: 18750 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20121114/644eacab/attachment.obj>


More information about the freebsd-arch mailing list