qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] hw/misc: i2c-echo: add tracing


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2] hw/misc: i2c-echo: add tracing
Date: Wed, 22 Jan 2025 08:00:27 +0100
User-agent: Mozilla Thunderbird

On 21/1/25 11:59, Titus Rwantare wrote:
This has been useful when debugging and unsure if the guest is
generating i2c traffic.

Signed-off-by: Titus Rwantare <titusr@google.com>
---
  hw/misc/i2c-echo.c   | 8 ++++++++
  hw/misc/trace-events | 5 +++++
  2 files changed, 13 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

+#i2c-echo.c
+i2c_echo_event(const char *id, const char *event) "%s: %s"
+i2c_echo_recv(const char *id, uint8_t data) "%s: recv 0x%" PRIx8
+i2c_echo_send(const char *id, uint8_t data) "%s: send 0x%" PRIx8

and queued using 0x02% format, thanks!

Phil.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]