Unit Tests for FreeBSD Kernel APIs?

2011-06-24 Thread Sebastian Huber
Hello, exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9), condvar(9), etc.? Have a nice day! -- Sebastian Huber, embedded brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.hu..

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Hans Petter Selasky
On Friday 24 June 2011 09:22:57 Robert Millan wrote: > 2011/6/24 Hans Petter Selasky : > > Updated bus_auto.conf: > > > > http://hselasky.homeunix.org:8192/bus_auto.conf > > Very nice. But why not use variable names instead of hardcoding numbers? > It makes the output much easier to understand.

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Robert Millan
2011/6/23 Warner Losh : > How'd you go about generating all these .conf files? I have to admit it was quite boring, lots of grep & sed, different regex for each file, then some manual editting. But I see that someone has found a better way. I'll look into testing that :-) > I don't see where yo

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Robert Millan
2011/6/24 Hans Petter Selasky : > Updated bus_auto.conf: > > http://hselasky.homeunix.org:8192/bus_auto.conf Very nice. But why not use variable names instead of hardcoding numbers? It makes the output much easier to understand. -- Robert Millan ___

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Hans Petter Selasky
On Friday 24 June 2011 14:59:37 Robert Millan wrote: > 2011/6/24 Hans Petter Selasky : > >> Very nice. But why not use variable names instead of hardcoding > >> numbers? It makes the output much easier to understand. > > > > To save memory. > > I haven't inspected devd code, but I was under the

Re: Unit Tests for FreeBSD Kernel APIs?

2011-06-24 Thread John Baldwin
On Friday, June 24, 2011 3:23:11 am Sebastian Huber wrote: > Hello, > > exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9), > condvar(9), etc.? > > Have a nice day! Hmm, I have a kernel module that does some tests, but it is not in the tree. One of the issues is that many of t

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Robert Millan
2011/6/24 Hans Petter Selasky : >> Very nice.  But why not use variable names instead of hardcoding numbers? >> It makes the output much easier to understand. > > To save memory. I haven't inspected devd code, but I was under the assumption that variables only lived untill resolved. What would be

Re: Unit Tests for FreeBSD Kernel APIs?

2011-06-24 Thread mdf
On Fri, Jun 24, 2011 at 6:14 AM, John Baldwin wrote: > On Friday, June 24, 2011 3:23:11 am Sebastian Huber wrote: >> Hello, >> >> exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9), >> condvar(9), etc.? >> >> Have a nice day! > > Hmm, I have a kernel module that does some tests, b

Re: misc/157903: automated kldload for USB class devices

2011-06-24 Thread Warner Losh
On Jun 24, 2011, at 7:11 AM, Hans Petter Selasky wrote: > On Friday 24 June 2011 14:59:37 Robert Millan wrote: >> 2011/6/24 Hans Petter Selasky : Very nice. But why not use variable names instead of hardcoding numbers? It makes the output much easier to understand. >>> >>> To save mem

IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-24 Thread Steven Hartland
We're trying to get our machines IPv6 enabled but in doing so this seems to break java apps using openjdk6 for UDP sends. The server seems quite happy to send and receive TCP packets on IPv6 socket that are bound to IPv4 addresses, but the same is not true for UDP. The socket bind works fine and

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-24 Thread Matthias Andree
Removing -java@ list because the VM is an application on top of the kernel's network stack, and the issue isn't Java-specific. Am 24.06.2011 23:11, schrieb Steven Hartland: > We're trying to get our machines IPv6 enabled but in doing so this > seems to break java apps using openjdk6 for UDP sends.