KASSERT_WARN for asserting malloc(M_WAITOK) not in a non-sleepable thread

Bryan Drewery bdrewery at FreeBSD.org
Thu Sep 25 16:31:05 UTC 2014


On 9/25/2014 11:14 AM, Adrian Chadd wrote:
> Hi,
> 
> Please bring in KASSERT_WARN().
> 
> I'm grown up enough to use KASSERT_WARN() along with handling the
> invariant check myself in code. Having KASSERT_WARN() means I can add
> in this rather than printf()s or device_printf()'s with various knobs
> to remove it.
> 
> (This is absolutely _not_ the "should KASSERT() optionally just log"
> argument. I'm not going to get into that a second time.)

Agreed on this 2nd point. I am against that. Plus we already have
debug.kassert.log_panic_at to effectively do that.

> 
> 
> -a
> 
> 



-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20140925/5e2f124c/attachment.sig>


More information about the freebsd-arch mailing list