Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2006 18:27:51 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Kevin Sanders <newroswell@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: KASSERT in kernel module outside src/sys
Message-ID:  <20061212232750.GA22669@xor.obsecurity.org>
In-Reply-To: <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com>
References:  <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 12, 2006 at 02:30:41PM -0800, Kevin Sanders wrote:
> I'm trying to use KASSERT in my own kernel module and I can't get it
> to assert even with a KASSERT(0, "test panic").  Is there something
> else I need to do besides add options INVARIANTS to my kernel config
> file.  Any clues would be appreciated.

Modules built by hand do not use the kernel config file (they don't
know which one to use).  You can build your module along with your
kernel using MODULES_OVERRIDE or equivalent, or just add -DINVARIANTS
etc to your module makefile.



>=20
> Kevin
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>=20

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFfzr2Wry0BWjoQKURAjVrAJ9doC1rciA+BaunHRXaKzeLiJwMHACgrCmx
rBQobq3R6p38lEUKP/RIMh4=
=nDjX
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061212232750.GA22669>