[RFQ] make witness panic an option
Giovanni Trematerra
giovanni.trematerra at gmail.com
Thu Nov 15 13:27:35 UTC 2012
On Thu, Nov 15, 2012 at 7:15 AM, Adrian Chadd <adrian at freebsd.org> wrote:
> 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.
I really do think that is a very bad idea.
When a locking assertion fails you have just to stop your mind and
think what's wrong,
no way to postpone on this.
--
Gianni
More information about the freebsd-hackers
mailing list