aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c/trace-events
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2025-01-11 19:37:09 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 17:16:04 +0100
commite589c0ea9c991094a85dbd7bee24e02e7d272310 (patch)
tree6598dd6aa6dd67b01ad4f889dcc03f3d0908a7e1 /hw/i2c/trace-events
parent1bada3c94c7d6a3ebb731eb23a6e4454a921c4e0 (diff)
downloadqemu-e589c0ea9c991094a85dbd7bee24e02e7d272310.zip
qemu-e589c0ea9c991094a85dbd7bee24e02e7d272310.tar.gz
qemu-e589c0ea9c991094a85dbd7bee24e02e7d272310.tar.bz2
hw/i2c/imx_i2c: Convert DPRINTF() to trace events
Also print the QOM canonical path when tracing which allows for distinguishing the many instances a typical i.MX SoC has. 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-12-shentey@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/i2c/trace-events')
-rw-r--r--hw/i2c/trace-events5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/i2c/trace-events b/hw/i2c/trace-events
index f708a7a..1ad0e95 100644
--- a/hw/i2c/trace-events
+++ b/hw/i2c/trace-events
@@ -56,3 +56,8 @@ npcm7xx_smbus_recv_fifo(const char *id, uint8_t received, uint8_t expected) "%s
pca954x_write_bytes(uint8_t value) "PCA954X write data: 0x%02x"
pca954x_read_data(uint8_t value) "PCA954X read data: 0x%02x"
+
+# imx_i2c.c
+
+imx_i2c_read(const char *id, const char *reg, uint64_t ofs, uint64_t value) "%s:[%s (0x%" PRIx64 ")] -> 0x%02" PRIx64
+imx_i2c_write(const char *id, const char *reg, uint64_t ofs, uint64_t value) "%s:[%s (0x%" PRIx64 ")] <- 0x%02" PRIx64