• P
    usbmon: bus zero · ecb658d3
    Pete Zaitcev 提交于
    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: NPete Zaitcev <zaitcev@redhat.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    ecb658d3
mon_bin.c 27.6 KB