-
- Downloads
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>
Showing
- drivers/usb/mon/mon_bin.c 8 additions, 6 deletionsdrivers/usb/mon/mon_bin.c
- drivers/usb/mon/mon_main.c 93 additions, 65 deletionsdrivers/usb/mon/mon_main.c
- drivers/usb/mon/mon_text.c 12 additions, 11 deletionsdrivers/usb/mon/mon_text.c
- drivers/usb/mon/usb_mon.h 3 additions, 2 deletionsdrivers/usb/mon/usb_mon.h
Loading
Please register or sign in to comment