]> git.proxmox.com Git - mirror_qemu.git/commitdiff
grackle: convert to trace-events
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 26 Jan 2018 09:20:27 +0000 (09:20 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 27 Jan 2018 06:25:59 +0000 (17:25 +1100)
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/pci-host/grackle.c
hw/pci-host/trace-events

index 3caf1ccb37bf0c402d23a78e0b65f70617bc3407..033588b7d2091d1ed94f33b21bd491800cb5ec78 100644 (file)
 #include "hw/pci/pci_host.h"
 #include "hw/ppc/mac.h"
 #include "hw/pci/pci.h"
-
-/* debug Grackle */
-//#define DEBUG_GRACKLE
-
-#ifdef DEBUG_GRACKLE
-#define GRACKLE_DPRINTF(fmt, ...)                               \
-    do { printf("GRACKLE: " fmt , ## __VA_ARGS__); } while (0)
-#else
-#define GRACKLE_DPRINTF(fmt, ...)
-#endif
+#include "trace.h"
 
 #define GRACKLE_PCI_HOST_BRIDGE(obj) \
     OBJECT_CHECK(GrackleState, (obj), TYPE_GRACKLE_PCI_HOST_BRIDGE)
@@ -58,7 +49,7 @@ static void pci_grackle_set_irq(void *opaque, int irq_num, int level)
 {
     qemu_irq *pic = opaque;
 
-    GRACKLE_DPRINTF("set_irq num %d level %d\n", irq_num, level);
+    trace_grackle_set_irq(irq_num, level);
     qemu_set_irq(pic[irq_num + 0x15], level);
 }
 
index 32dfc8469270ae24b7512f014c9c1b407b047c99..5b8fcc228bdbbf924933658b2864be3c7d9bc62f 100644 (file)
@@ -1,5 +1,8 @@
 # See docs/devel/tracing.txt for syntax documentation.
 
+# hw/pci-host/grackle.c
+grackle_set_irq(int irq_num, int level) "set_irq num %d level %d"
+
 # hw/pci-host/sabre.c
 sabre_set_request(int irq_num) "request irq %d"
 sabre_clear_request(int irq_num) "clear request irq %d"