aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c/trace-events
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2023-10-28 14:24:14 +0200
committerPeter Maydell <peter.maydell@linaro.org>2023-11-02 13:36:45 +0000
commitc6e1b31bce523710024bca1b529f2117033003a7 (patch)
treed15ecf8a0ea1c0fdf7ddc4767a69dca560dbae2b /hw/i2c/trace-events
parent3839aff84cfc6c87189afe8fa0589f2a85dc7b0c (diff)
downloadqemu-c6e1b31bce523710024bca1b529f2117033003a7.zip
qemu-c6e1b31bce523710024bca1b529f2117033003a7.tar.gz
qemu-c6e1b31bce523710024bca1b529f2117033003a7.tar.bz2
hw/i2c/pm_smbus: Convert DPRINTF to trace events
Let the trace messages slightly deviate from the function names ("smb" -> "smbus") being traced in order to avoid conflights with the SMB protocol. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Corey Minyard <cminyard@mvista.com> Message-id: 20231028122415.14869-6-shentey@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c/trace-events')
-rw-r--r--hw/i2c/trace-events6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/i2c/trace-events b/hw/i2c/trace-events
index d7b1e25..6900e06 100644
--- a/hw/i2c/trace-events
+++ b/hw/i2c/trace-events
@@ -15,6 +15,12 @@ i2c_send_async(uint8_t address, uint8_t data) "send_async(addr:0x%02x) data:0x%0
i2c_recv(uint8_t address, uint8_t data) "recv(addr:0x%02x) data:0x%02x"
i2c_ack(void) ""
+# pm_smbus.c
+
+smbus_ioport_readb(uint16_t addr, uint8_t data) "[0x%04" PRIx16 "] -> val=0x%02x"
+smbus_ioport_writeb(uint16_t addr, uint8_t data) "[0x%04" PRIx16 "] <- val=0x%02x"
+smbus_transaction(uint8_t addr, uint8_t prot) "addr=0x%02x prot=0x%02x"
+
# allwinner_i2c.c
allwinner_i2c_read(const char* reg_name, uint64_t offset, uint64_t value) "read %s [0x%" PRIx64 "]: -> 0x%" PRIx64