summary refs log tree commit diff stats
path: root/hw/gpio/trace-events
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2025-01-11 19:37:11 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 17:16:04 +0100
commite3778c8499add463fa2c62b0251a4c9879f37e04 (patch)
tree37c9ff6626073add13593b3680c72d47b7380db6 /hw/gpio/trace-events
parente589c0ea9c991094a85dbd7bee24e02e7d272310 (diff)
downloadfocaccia-qemu-e3778c8499add463fa2c62b0251a4c9879f37e04.tar.gz
focaccia-qemu-e3778c8499add463fa2c62b0251a4c9879f37e04.zip
hw/gpio/imx_gpio: Turn DPRINTF() into trace events
While at it add a trace event for input GPIO events.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <20250111183711.2338-14-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/gpio/trace-events')
-rw-r--r--hw/gpio/trace-events5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/gpio/trace-events b/hw/gpio/trace-events
index b91cc7e9a4..cea896b28f 100644
--- a/hw/gpio/trace-events
+++ b/hw/gpio/trace-events
@@ -1,5 +1,10 @@
 # See docs/devel/tracing.rst for syntax documentation.
 
+# imx_gpio.c
+imx_gpio_read(const char *id, const char *reg, uint32_t value) "%s:[%s] -> 0x%" PRIx32
+imx_gpio_write(const char *id, const char *reg, uint32_t value) "%s:[%s] <- 0x%" PRIx32
+imx_gpio_set(const char *id, int line, int level) "%s:[%d] <- %d"
+
 # npcm7xx_gpio.c
 npcm7xx_gpio_read(const char *id, uint64_t offset, uint64_t value) " %s offset: 0x%04" PRIx64 " value 0x%08" PRIx64
 npcm7xx_gpio_write(const char *id, uint64_t offset, uint64_t value) "%s offset: 0x%04" PRIx64 " value 0x%08" PRIx64