From b8cbc1374acdc1d8081f1dc57ef1249d263cf389 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 27 Aug 2013 16:59:37 +0200 Subject: usb-hub: add tracepoint for status reports Signed-off-by: Gerd Hoffmann --- hw/usb/dev-hub.c | 1 + trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c index e865a98751..54f63c0d47 100644 --- a/hw/usb/dev-hub.c +++ b/hw/usb/dev-hub.c @@ -475,6 +475,7 @@ static void usb_hub_handle_data(USBDevice *dev, USBPacket *p) port->wPortChange_reported = port->wPortChange; } if (status != 0) { + trace_usb_hub_status_report(s->dev.addr, status); for(i = 0; i < n; i++) { buf[i] = status >> (8 * i); } diff --git a/trace-events b/trace-events index f8498077f8..754c28cc51 100644 --- a/trace-events +++ b/trace-events @@ -411,6 +411,7 @@ usb_hub_set_port_feature(int addr, int nr, const char *f) "dev %d, port %d, feat usb_hub_clear_port_feature(int addr, int nr, const char *f) "dev %d, port %d, feature %s" usb_hub_attach(int addr, int nr) "dev %d, port %d" usb_hub_detach(int addr, int nr) "dev %d, port %d" +usb_hub_status_report(int addr, int status) "dev %d, status 0x%x" # hw/usb/dev-uas.c usb_uas_reset(int addr) "dev %d" -- cgit v1.2.3