summaryrefslogtreecommitdiffstats
path: root/hw/i2c/trace-events
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-06-08 14:15:33 +0200
committerPeter Maydell2018-06-08 14:15:33 +0200
commit08bb9b347b9597252338a599421818f4a4e333cb (patch)
tree6b42a990b30c98ef5d2e8ed2f50474602dd17674 /hw/i2c/trace-events
parenthw/arm: Remove the deprecated xlnx-ep108 machine (diff)
downloadqemu-08bb9b347b9597252338a599421818f4a4e333cb.tar.gz
qemu-08bb9b347b9597252338a599421818f4a4e333cb.tar.xz
qemu-08bb9b347b9597252338a599421818f4a4e333cb.zip
hw/i2c: Add trace events
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180606191801.6331-1-f4bug@amsat.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c/trace-events')
-rw-r--r--hw/i2c/trace-events7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/i2c/trace-events b/hw/i2c/trace-events
new file mode 100644
index 0000000000..d339b61202
--- /dev/null
+++ b/hw/i2c/trace-events
@@ -0,0 +1,7 @@
+# See docs/devel/tracing.txt for syntax documentation.
+
+# hw/i2c/core.c
+
+i2c_event(const char *event, uint8_t address) "%s(addr:0x%02x)"
+i2c_send(uint8_t address, uint8_t data) "send(addr:0x%02x) data:0x%02x"
+i2c_recv(uint8_t address, uint8_t data) "recv(addr:0x%02x) data:0x%02x"