]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
usbmon: bus zero
authorPete Zaitcev <zaitcev@redhat.com>
Wed, 11 Apr 2007 20:47:26 +0000 (13:47 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:39 +0000 (13:28 -0700)
commitecb658d387dc09f344b3d755e8674076072032c7
treeb24067478554d5514db22ca6b107b8258e22b7e3
parent35d07fd58f47284adecf219d3b73e4ea197cf29f
usbmon: bus zero

Add the "bus zero" feature to the usbmon. If a user process specifies bus
with number zero, it receives events from all buses. This is useful when
we wish to see initial enumeration when a bus is created, typically after
a modprobe. Until now, an application had to loop until a new bus could
be open, then start capturing on it. This procedure was cumbersome and
could lose initial events. Also, often it's too bothersome to find exactly
to which bus a specific device is attached.

Paolo Albeni provided the original concept implementation. I added the
handling of "bus->monitored" flag and generally fixed it up.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_bin.c
drivers/usb/mon/mon_main.c
drivers/usb/mon/mon_text.c
drivers/usb/mon/usb_mon.h