[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 03/12] grackle: convert to trace-events
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 03/12] grackle: convert to trace-events |
Date: |
Mon, 29 Jan 2018 14:28:17 +1100 |
From: Mark Cave-Ayland <address@hidden>
Signed-off-by: Mark Cave-Ayland <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/pci-host/grackle.c | 13 ++-----------
hw/pci-host/trace-events | 3 +++
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c
index 3caf1ccb37..033588b7d2 100644
--- a/hw/pci-host/grackle.c
+++ b/hw/pci-host/grackle.c
@@ -27,16 +27,7 @@
#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);
}
diff --git a/hw/pci-host/trace-events b/hw/pci-host/trace-events
index 32dfc84692..5b8fcc228b 100644
--- a/hw/pci-host/trace-events
+++ b/hw/pci-host/trace-events
@@ -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"
--
2.14.3
- [Qemu-ppc] [PULL 00/12] ppc-for-2.12 queue 20180129, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 01/12] ppc/pnv: fix PnvChip redefinition in <hw/ppc/pnv_xscom.h>, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 02/12] ppc: Deprecate qemu-system-ppcemb, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 08/12] target/ppc/spapr_caps: Add support for tristate spapr_capabilities, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 04/12] uninorth: convert to trace-events, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 05/12] input: add missing newline from trace-events, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 06/12] spapr_pci: fix MSI/MSIX selection, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 12/12] target/ppc/spapr: Add H-Call H_GET_CPU_CHARACTERISTICS, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 03/12] grackle: convert to trace-events,
David Gibson <=
- [Qemu-ppc] [PULL 07/12] target/ppc/kvm: Add cap_ppc_safe_[cache/bounds_check/indirect_branch], David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 09/12] target/ppc/spapr_caps: Add new tristate cap safe_cache, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 10/12] target/ppc/spapr_caps: Add new tristate cap safe_bounds_check, David Gibson, 2018/01/28
- [Qemu-ppc] [PULL 11/12] target/ppc/spapr_caps: Add new tristate cap safe_indirect_branch, David Gibson, 2018/01/28
- Re: [Qemu-ppc] [Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180129, no-reply, 2018/01/28
- Re: [Qemu-ppc] [PULL 00/12] ppc-for-2.12 queue 20180129, Peter Maydell, 2018/01/29