Discussion:
unit tests for mbuf code
(too old to reply)
Michael Richardson
2006-12-14 17:13:32 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I know that the *BSD stacks have been "ported" to run in userspace
multiple times over the years. (I don't have any good references right
now) I'm just interested in a way to run various mbuf related code in
userspace, so that I can do unit tests on code that I might change.

Has this been done recently? Are there any live projects or regression
testing systems that currently permit this?

- --
] Bear: "Me, I'm just the shape of a bear." | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] ***@xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Finger me for keys

iQEVAwUBRYGGMYCLcPvd0N1lAQJ9LQgAkFsTfSww9z+9qm3LS8pgru74i+dCABLb
M2fkSCRT25Ks969z23ZP2D2OaxkjY1e0TXC687ByuN0xqv3LwJUxYIXgftcsOaV+
pxFuIpst8h+6Rwmxzlaz2QaPpAOoSOQ+TOuW/AGPoFXAod6w/rCmQrI9MB3g3HRY
vQHjUPk5zw1Phm+722aHGGSvedF2MsEeIX7YLQbSoLJDziWfTEI5NDt3McSzMIt2
KDxkDPsFlTnFk2E2BqI9lJSqAd2CGf/4IV0LfwN9x2y3xdgC/gadcfXe629zzCFp
KOq1Ih+EKvFDM0r3zpfRost+GnbwWh55sxCyCbdzh7xhIBkh9KZprQ==
=W9xk
-----END PGP SIGNATURE-----

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Antti Kantee
2006-12-14 22:08:30 UTC
Permalink
Post by Michael Richardson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I know that the *BSD stacks have been "ported" to run in userspace
multiple times over the years. (I don't have any good references right
now) I'm just interested in a way to run various mbuf related code in
userspace, so that I can do unit tests on code that I might change.
Has this been done recently? Are there any live projects or regression
testing systems that currently permit this?
I am not aware of such work (not that I've looked too hard). But I am
very interested in any work in this or a similar area and will hopefully
at some point be able to dedicate some timeslices here. Being able to
host kernel code without modification in userspace would be a very very
nice feature.

(I'm hearing the screams of monolithisism maniacs already, even though
I either didn't say anything about actually having the userspace stuff
link with the kernel state)
--
Antti Kantee <***@iki.fi> Of course he runs NetBSD
http://www.iki.fi/pooka/ http://www.NetBSD.org/
"la qualité la plus indispensable du cuisinier est l'exactitude"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Michael Richardson
2006-12-15 02:54:16 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Antti> (I'm hearing the screams of monolithisism maniacs already,
Antti> even though I either didn't say anything about actually
Antti> having the userspace stuff link with the kernel state)

Yeah, I just want to write code that manipulates mbuf's and can verify
that I've handled all the different flavours that mbufs can come in.

- --
] Bear: "Me, I'm just the shape of a bear." | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] ***@xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Finger me for keys

iQEVAwUBRYIOV4CLcPvd0N1lAQJAXggAmeUmjDzDCV+lv6iOCcm6DXq3Pm8hjWJK
V1IwyKewsdJwzQJ0e6aD+r1Hpry8lzg68QubSk58/y6VBrVaf7GI5/BYmP2Ltlg6
zfkVXVnfGJMBF/Jh36VMYFHyZTi3nbqiUNszO+k3zpm65ACDBGNWAPw9mvZTS7Yh
jGGa3yPZzygAWsQxp7uy/sNWMQLKHWbnBN9TYDEO9cUhj0u2Eakp02QEytbTyUXK
VBP3gr4mTnjJbbfGBPCgPQlvPIznww+arZwKGH6BI7S5DoojJZ662yBlgh46Zbkv
NNrQ307u/9TopkBH03BBHYVPrODUpEthi/iimaEdblZ7yZSmG5YQgQ==
=Dgs/
-----END PGP SIGNATURE-----

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Pavel Cahyna
2006-12-15 08:41:37 UTC
Permalink
Post by Michael Richardson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I know that the *BSD stacks have been "ported" to run in userspace
multiple times over the years. (I don't have any good references right
now) I'm just interested in a way to run various mbuf related code in
userspace, so that I can do unit tests on code that I might change.
Has this been done recently? Are there any live projects or regression
testing systems that currently permit this?
Yes, I've done this as a part of my Google Summer of Code project.
See http://netbsd-soc.sourceforge.net/projects/mbuf/userland-testing.html

Pavel

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...