958e1b
From 69cd7d87b208e842a7b283c90cc3113fac244e29 Mon Sep 17 00:00:00 2001
958e1b
From: Gerd Hoffmann <kraxel@redhat.com>
958e1b
Date: Fri, 11 Jul 2014 14:20:40 +0200
958e1b
Subject: [PATCH 07/43] xhci: add port to slot_address tracepoint
958e1b
958e1b
Message-id: <1405088470-24115-8-git-send-email-kraxel@redhat.com>
958e1b
Patchwork-id: 59830
958e1b
O-Subject: [RHEL-7.1 qemu-kvm PATCH 07/37] xhci: add port to slot_address tracepoint
958e1b
Bugzilla: 980833
958e1b
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
958e1b
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
958e1b
958e1b
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
958e1b
(cherry picked from commit 65d81ed402d3b78b6ffbade36a09ea53e41614d2)
958e1b
---
958e1b
 hw/usb/hcd-xhci.c | 2 +-
958e1b
 trace-events      | 2 +-
958e1b
 2 files changed, 2 insertions(+), 2 deletions(-)
958e1b
958e1b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
---
958e1b
 hw/usb/hcd-xhci.c | 2 +-
958e1b
 trace-events      | 2 +-
958e1b
 2 files changed, 2 insertions(+), 2 deletions(-)
958e1b
958e1b
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
958e1b
index e8fa26c..61f5329 100644
958e1b
--- a/hw/usb/hcd-xhci.c
958e1b
+++ b/hw/usb/hcd-xhci.c
958e1b
@@ -2168,7 +2168,6 @@ static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid,
958e1b
     int i;
958e1b
     TRBCCode res;
958e1b
 
958e1b
-    trace_usb_xhci_slot_address(slotid);
958e1b
     assert(slotid >= 1 && slotid <= xhci->numslots);
958e1b
 
958e1b
     dcbaap = xhci_addr64(xhci->dcbaap_low, xhci->dcbaap_high);
958e1b
@@ -2201,6 +2200,7 @@ static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid,
958e1b
         fprintf(stderr, "xhci: port not found\n");
958e1b
         return CC_TRB_ERROR;
958e1b
     }
958e1b
+    trace_usb_xhci_slot_address(slotid, uport->path);
958e1b
 
958e1b
     dev = uport->dev;
958e1b
     if (!dev) {
958e1b
diff --git a/trace-events b/trace-events
958e1b
index 4058dd5..117c2ce 100644
958e1b
--- a/trace-events
958e1b
+++ b/trace-events
958e1b
@@ -368,7 +368,7 @@ usb_xhci_port_link(uint32_t port, uint32_t pls) "port %d, pls %d"
958e1b
 usb_xhci_port_notify(uint32_t port, uint32_t pls) "port %d, bits %x"
958e1b
 usb_xhci_slot_enable(uint32_t slotid) "slotid %d"
958e1b
 usb_xhci_slot_disable(uint32_t slotid) "slotid %d"
958e1b
-usb_xhci_slot_address(uint32_t slotid) "slotid %d"
958e1b
+usb_xhci_slot_address(uint32_t slotid, const char *port) "slotid %d, port %s"
958e1b
 usb_xhci_slot_configure(uint32_t slotid) "slotid %d"
958e1b
 usb_xhci_slot_evaluate(uint32_t slotid) "slotid %d"
958e1b
 usb_xhci_slot_reset(uint32_t slotid) "slotid %d"
958e1b
-- 
958e1b
1.8.3.1
958e1b