[RFQ] make witness panic an option

Alfred Perlstein bright at mu.org
Fri Nov 16 08:26:43 UTC 2012


On 11/15/12 11:22 PM, Andriy Gapon wrote:
> on 16/11/2012 01:20 Alfred Perlstein said the following:
>> We need to enable developers to skip these areas and test their own code.
> I wish that there was a magic knob to ignore build breakages, so that the
> developers could test how their own code compiles :-)
There is, it's called updating to known good tinderbox build and basing 
changes off of that.
>
> On a serious note, why stop here?  E.g. Solaris seems to have knob to ignore all
> asserts (just to print a message, but not panic).
>
There is no reason why not to add such a thing, in fact it would be 
really handy for some of our users who need asserts, but sometimes can't 
clean up the entire code base.

Adding another option to tag asserts so that it was sort of like:

KASSERT((cond, section, "string")); would be interesting, then you could 
turn KASSERTS on based on "vfs" or possibly file by file.

-Alfred


More information about the freebsd-hackers mailing list