aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/trace-events
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-02-21 18:17:46 +0000
committerPeter Maydell <peter.maydell@linaro.org>2019-02-21 18:17:46 +0000
commitdd849ef2c9d57a329c6001c58dbdf49de712349c (patch)
treed701a156e5df9fe745af422773220f7e4fcd500c /hw/timer/trace-events
parentb0de99f3e9bc7a0cacbff0ff8517379d915dd5f6 (diff)
downloadqemu-dd849ef2c9d57a329c6001c58dbdf49de712349c.zip
qemu-dd849ef2c9d57a329c6001c58dbdf49de712349c.tar.gz
qemu-dd849ef2c9d57a329c6001c58dbdf49de712349c.tar.bz2
hw/timer/pl031: Convert to using trace events
Convert the debug printing in the PL031 device to use trace events, and augment it to cover the interesting parts of device operation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/timer/trace-events')
-rw-r--r--hw/timer/trace-events6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/timer/trace-events b/hw/timer/trace-events
index 0144a68..12eb505 100644
--- a/hw/timer/trace-events
+++ b/hw/timer/trace-events
@@ -77,3 +77,9 @@ xlnx_zynqmp_rtc_gettime(int year, int month, int day, int hour, int min, int sec
nrf51_timer_read(uint64_t addr, uint32_t value, unsigned size) "read addr 0x%" PRIx64 " data 0x%" PRIx32 " size %u"
nrf51_timer_write(uint64_t addr, uint32_t value, unsigned size) "write addr 0x%" PRIx64 " data 0x%" PRIx32 " size %u"
+# hw/timer/pl031.c
+pl031_irq_state(int level) "irq state %d"
+pl031_read(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
+pl031_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x"
+pl031_alarm_raised(void) "alarm raised"
+pl031_set_alarm(uint32_t ticks) "alarm set for %u ticks"