summary refs log tree commit diff stats
path: root/hw/i2c/trace-events
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-01-11 09:50:16 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-01-23 13:32:38 +0000
commitc166e592a7457e0ac3398cd14ba543bce032c88c (patch)
treeb907fd8349e3d00fad09accacaa06d2a9f419a87 /hw/i2c/trace-events
parent1e5b1899ccea8b69e3393c7ed2040aef8b33a9e8 (diff)
downloadfocaccia-qemu-c166e592a7457e0ac3398cd14ba543bce032c88c.tar.gz
focaccia-qemu-c166e592a7457e0ac3398cd14ba543bce032c88c.zip
hw/i2c/bitbang_i2c: Convert DPRINTF() to trace events
Convert the remaining DPRINTF debug macro uses to tracepoints.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-id: 20230111085016.44551-6-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c/trace-events')
-rw-r--r--hw/i2c/trace-events4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/i2c/trace-events b/hw/i2c/trace-events
index 48aee4887c..8e88aa24c1 100644
--- a/hw/i2c/trace-events
+++ b/hw/i2c/trace-events
@@ -2,6 +2,10 @@
 
 # bitbang_i2c.c
 bitbang_i2c_state(const char *old_state, const char *new_state) "state %s -> %s"
+bitbang_i2c_addr(uint8_t addr) "Address 0x%02x"
+bitbang_i2c_send(uint8_t byte) "TX byte 0x%02x"
+bitbang_i2c_recv(uint8_t byte) "RX byte 0x%02x"
+bitbang_i2c_data(unsigned dat, unsigned clk, unsigned old_out, unsigned new_out) "dat %u clk %u out %u -> %u"
 
 # core.c