yeahuh / rpms / qemu-kvm

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