usb-hub: add tracepoint for status reports
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
c96c41ed0d
commit
b8cbc1374a
@ -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);
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user