From 6aebe407968a0c7e0be2647391753471ed674c65 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 23 Mar 2012 12:26:59 +0100 Subject: usb-host: trace canceled requests Add tracepoints to track canceled requests. Signed-off-by: Gerd Hoffmann --- hw/usb/host-linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hw/usb/host-linux.c') diff --git a/hw/usb/host-linux.c b/hw/usb/host-linux.c index 912ce23928..6ea59a7af5 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; -- cgit v1.2.3