[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] hw/watchdog/wdt_imx2: Trace timer activity
From: |
Bernhard Beschow |
Subject: |
[PATCH 2/6] hw/watchdog/wdt_imx2: Trace timer activity |
Date: |
Sat, 28 Oct 2023 14:24:11 +0200 |
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/watchdog/wdt_imx2.c | 4 ++++
hw/watchdog/trace-events | 2 ++
2 files changed, 6 insertions(+)
diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c
index 885ebd3978..891d7beb2a 100644
--- a/hw/watchdog/wdt_imx2.c
+++ b/hw/watchdog/wdt_imx2.c
@@ -23,6 +23,8 @@ static void imx2_wdt_interrupt(void *opaque)
{
IMX2WdtState *s = IMX2_WDT(opaque);
+ trace_imx2_wdt_interrupt();
+
s->wicr |= IMX2_WDT_WICR_WTIS;
qemu_set_irq(s->irq, 1);
}
@@ -31,6 +33,8 @@ static void imx2_wdt_expired(void *opaque)
{
IMX2WdtState *s = IMX2_WDT(opaque);
+ trace_imx2_wdt_expired();
+
s->wrsr = IMX2_WDT_WRSR_TOUT;
/* Perform watchdog action if watchdog is enabled */
diff --git a/hw/watchdog/trace-events b/hw/watchdog/trace-events
index 874968cc06..ad3be1e9bd 100644
--- a/hw/watchdog/trace-events
+++ b/hw/watchdog/trace-events
@@ -20,6 +20,8 @@ aspeed_wdt_write(uint64_t addr, uint32_t size, uint64_t data)
"@0x%" PRIx64 " si
# wdt_imx2.c
imx2_wdt_read(uint32_t addr, uint16_t data) "[0x%" PRIx32 "] -> 0x%" PRIx16
imx2_wdt_write(uint32_t addr, uint16_t data) "[0x%" PRIx32 "] <- 0x%" PRIx16
+imx2_wdt_interrupt(void) ""
+imx2_wdt_expired(void) ""
# spapr_watchdog.c
spapr_watchdog_start(uint64_t flags, uint64_t num, uint64_t timeout) "Flags
0x%" PRIx64 " num=%" PRId64 " %" PRIu64 "ms"
--
2.42.0
- [PATCH 0/6] Various tracing patches, Bernhard Beschow, 2023/10/28
- [PATCH 1/6] hw/watchdog/wdt_imx2: Trace MMIO access, Bernhard Beschow, 2023/10/28
- [PATCH 2/6] hw/watchdog/wdt_imx2: Trace timer activity,
Bernhard Beschow <=
- [PATCH 4/6] hw/misc/imx6_ccm: Convert DPRINTF to trace events, Bernhard Beschow, 2023/10/28
- [PATCH 5/6] hw/i2c/pm_smbus: Convert DPRINTF to trace events, Bernhard Beschow, 2023/10/28
- [PATCH 3/6] hw/misc/imx7_snvs: Trace MMIO access, Bernhard Beschow, 2023/10/28
- [PATCH 6/6] system/memory: Trace names of MemoryRegions rather than host pointers, Bernhard Beschow, 2023/10/28
- Re: [PATCH 0/6] Various tracing patches, Peter Maydell, 2023/10/31