aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/trace-events
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-06-05 14:59:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-06-17 09:12:22 +0200
commit9f815e83e983d247a3cd67579d2d9c1765adc644 (patch)
treea1694d3430c18c2cc16462688556735c6b292efb /hw/usb/trace-events
parent5c24bce3056ff209a1ecc50ff4b7e65b85ad8e74 (diff)
usb: add hostdevice property to usb-host
The new property allows to specify usb host device name. Uses standard qemu_open(), so both file system path (/dev/bus/usb/$bus/$dev on linux) and file descriptor passing can be used. Requires libusb 1.0.23 or newer. The hostdevice property is only present in case qemu is compiled against a new enough library version, so the presence of the property can be used for feature detection. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-Id: <20200605125952.13113-1-kraxel@redhat.com>
Diffstat (limited to 'hw/usb/trace-events')
-rw-r--r--hw/usb/trace-events1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/trace-events b/hw/usb/trace-events
index 5817ce4421..e9cdeeed14 100644
--- a/hw/usb/trace-events
+++ b/hw/usb/trace-events
@@ -291,6 +291,7 @@ usb_mtp_file_monitor_event(int dev, const char *path, const char *s) "dev %d, pa
# host-libusb.c
usb_host_open_started(int bus, int addr) "dev %d:%d"
+usb_host_open_hostfd(int hostfd) "hostfd %d"
usb_host_open_success(int bus, int addr) "dev %d:%d"
usb_host_open_failure(int bus, int addr) "dev %d:%d"
usb_host_close(int bus, int addr) "dev %d:%d"