diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-03-23 12:26:59 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-04-17 10:23:27 +0200 |
commit | 6aebe407968a0c7e0be2647391753471ed674c65 (patch) | |
tree | 5427388b2098271d5f36905882e2f2509ff3f78a /hw/usb/host-linux.c | |
parent | e382e751ef7848b237be2d569815dcc4f8097306 (diff) | |
download | hqemu-6aebe407968a0c7e0be2647391753471ed674c65.zip hqemu-6aebe407968a0c7e0be2647391753471ed674c65.tar.gz |
usb-host: trace canceled requests
Add tracepoints to track canceled requests.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/host-linux.c')
-rw-r--r-- | hw/usb/host-linux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/usb/host-linux.c b/hw/usb/host-linux.c index 912ce23..6ea59a7 100644 --- a/hw/usb/host-linux.c +++ b/hw/usb/host-linux.c @@ -392,12 +392,14 @@ static void usb_host_async_cancel(USBDevice *dev, USBPacket *p) USBHostDevice *s = DO_UPCAST(USBHostDevice, dev, dev); AsyncURB *aurb; + trace_usb_host_req_canceled(s->bus_num, s->addr); + QLIST_FOREACH(aurb, &s->aurbs, next) { if (p != aurb->packet) { continue; } - DPRINTF("husb: async cancel: packet %p, aurb %p\n", p, aurb); + trace_usb_host_urb_canceled(s->bus_num, s->addr, aurb); /* Mark it as dead (see async_complete above) */ aurb->packet = NULL; |