Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-09-23 Thread Garrett Cooper
On Sat, Sep 22, 2012 at 11:30 PM, Poul-Henning Kamp p...@phk.freebsd.dk wrote:
 In message 
 cagh67wsux7zjrtb5gehqwhkqykog-atwkinw5csjlrzftzk...@mail.gmail.com
 , Garrett Cooper writes:

Without the change:

$ python calc_runtime.py bw.*_without.log | ministat -w 72
[...]
$ python calc_runtime.py bw.*.log | ministat -w 72

 Try:
python calc_runtime.py bw.*_without.log  _without
python calc_runtime.py bw.*.log  _with
ministat -w 72 _with _without

 :-)

 (PS: your two chosen glob patterns are not exclusive, but I suppose
 that was for illustration only)

Forgot to mention that I ran the with results before the
without results, so technically the files didn't exist yet and hence
the results are separate. But, just for absolute clarity for archiving
sake (and provided your suggestion on how to overlay both graphs),
here are the results:

$ for i in bw.*[0-9].log; do mv $i `echo $i | sed -e
's/\.log/_with\.log/g'`; done
$ python calc_runtime.py bw.*_with.log  _with
$ python calc_runtime.py bw.*_without.log  _without
$ ministat -w 72 _with _without
x _with
+ _without
++
| +x |
|++  +   xx +   x   xx+ ++ x x  +xx +|
| ||A_MA___M___|__|  |
++
N   Min   MaxMedian   AvgStddev
x  10   940  1002   988 972.3 24.476973
+  10   919  1010   972 958.9 33.994934
No difference proven at 95.0% confidence

Thanks for the tip :)!
-Garrett
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


How to claim only some of USB interfaces of a composite USB device

2012-09-23 Thread geoffrey levand
Hi,

i have the following problem.
I have a composite  USB device with multiple USB interfaces. Some of interfaces 
belong to the Bluetooth device and other to the WLAN device.
The problem is i want my WLAN driver to claim only the interfaces which belong 
to the WLAN device. But ng_ubt kernel driver claims all interfaces for itself 
beginning with the interface 0. Therefore, my WLAN driver doesn't work if 
ng_ubt is loaded first.

The second question is, why FreeBSD USB stack calls the match callback of my 
WLAN driver only once with USB interface index 0. Shouldn't it call the match 
callback for each interface on a USB device ? Linux kernel e.g. does it per USB 
interface.

regards
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org