[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 14/17] usb: add usb host adapters exit trace
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 14/17] usb: add usb host adapters exit trace |
Date: |
Fri, 29 Aug 2014 14:03:49 +0200 |
From: Gonglei <address@hidden>
Signed-off-by: Gonglei <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/hcd-ehci.c | 2 ++
hw/usb/hcd-uhci.c | 2 ++
hw/usb/hcd-xhci.c | 2 ++
trace-events | 3 +++
4 files changed, 9 insertions(+)
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 2aa06bb..bacb7ce 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2473,6 +2473,8 @@ void usb_ehci_realize(EHCIState *s, DeviceState *dev,
Error **errp)
void usb_ehci_unrealize(EHCIState *s, DeviceState *dev, Error **errp)
{
+ trace_usb_ehci_unrealize();
+
if (s->frame_timer) {
timer_del(s->frame_timer);
timer_free(s->frame_timer);
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 220115b..3b3ebcd 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -1260,6 +1260,8 @@ static void usb_uhci_exit(PCIDevice *dev)
{
UHCIState *s = DO_UPCAST(UHCIState, dev, dev);
+ trace_usb_uhci_exit();
+
if (s->frame_timer) {
timer_del(s->frame_timer);
timer_free(s->frame_timer);
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index a9245d8..bbe4c5f 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -3649,6 +3649,8 @@ static void usb_xhci_exit(PCIDevice *dev)
int i;
XHCIState *xhci = XHCI(dev);
+ trace_usb_xhci_exit();
+
for (i = 0; i < xhci->numslots; i++) {
xhci_disable_slot(xhci, i + 1);
}
diff --git a/trace-events b/trace-events
index 81bc915..03ac5d2 100644
--- a/trace-events
+++ b/trace-events
@@ -297,6 +297,7 @@ usb_port_release(int bus, const char *port) "bus %d, port
%s"
# hw/usb/hcd-ehci.c
usb_ehci_reset(void) "=== RESET ==="
+usb_ehci_unrealize(void) "=== UNREALIZE ==="
usb_ehci_opreg_read(uint32_t addr, const char *str, uint32_t val) "rd mmio
%04x [%s] = %x"
usb_ehci_opreg_write(uint32_t addr, const char *str, uint32_t val) "wr mmio
%04x [%s] = %x"
usb_ehci_opreg_change(uint32_t addr, const char *str, uint32_t new, uint32_t
old) "ch mmio %04x [%s] = %x (old: %x)"
@@ -329,6 +330,7 @@ usb_ehci_dma_error(void) ""
# hw/usb/hcd-uhci.c
usb_uhci_reset(void) "=== RESET ==="
+usb_uhci_exit(void) "=== EXIT ==="
usb_uhci_schedule_start(void) ""
usb_uhci_schedule_stop(void) ""
usb_uhci_frame_start(uint32_t num) "nr %d"
@@ -358,6 +360,7 @@ usb_uhci_td_complete(uint32_t qh, uint32_t td) "qh 0x%x, td
0x%x"
# hw/usb/hcd-xhci.c
usb_xhci_reset(void) "=== RESET ==="
+usb_xhci_exit(void) "=== EXIT ==="
usb_xhci_run(void) ""
usb_xhci_stop(void) ""
usb_xhci_cap_read(uint32_t off, uint32_t val) "off 0x%04x, ret 0x%08x"
--
1.8.3.1
- [Qemu-devel] [PULL 05/17] Revert "xhci: Fix number of streams allocated when using streams", (continued)
- [Qemu-devel] [PULL 05/17] Revert "xhci: Fix number of streams allocated when using streams", Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 08/17] usb-ohci: add exit function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 02/17] xhci: fix debug print compiling error, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 11/17] usb-ehci: add ehci unrealize funciton, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 10/17] usb-ehci: add vmstate properity for EHCIState, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 12/17] usb-ehci: add ehci-pci device exit function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 06/17] usb: add usb_bus_release function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 13/17] usb-xhci: add exit function, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 15/17] tests: add OHCI qtest, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 03/17] Fix OHCI ISO TD state never being written back., Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 14/17] usb: add usb host adapters exit trace,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 07/17] usb-ohci: Fix memory leak for ohci timer, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 17/17] tests: add xHCI qtest, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 16/17] tests: add UHCI qtest, Gerd Hoffmann, 2014/08/29
- [Qemu-devel] [PULL 09/17] usb-uhci: clean up uhci resource when pci-uhci exit, Gerd Hoffmann, 2014/08/29
- Re: [Qemu-devel] [PULL 00/17] usb patch queue, Peter Maydell, 2014/08/29