Re: Kernel asserts - was: Profanity in the Linux Kernel?!?!?

Bill Kelly (billk@cts.com)
Wed, 16 Jun 1999 14:30:36 -0700


Riley wrote:
>
>Personally, I'd love to see something along the lines of a kernel
>orientated assert() macro inserted throughout the kernel, with the
>property that if the condition listed therein was false, it reported
>the fact to some systrace facility (perhaps using syslog) so one could
>use that as an additional aid when tracking down problems. If it was
>implemented properly, then the ONLY reports it produced would relate
>to assumptions kernel writers both made and documented that were not
>valid.

<delurk>

This sounds like an excellent idea to me!

I'll bet kernel asserts could be used to considerable effect with a minimal
impact on kernel size and efficiency, so that their default config setting
could be 'on'. But anyone desiring every last microsecond out of the kernel
could always compile with them off.

</delurk>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/