qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 14/14] hw/gpio/imx_gpio: Turn DPRINTF() into trace events


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 14/14] hw/gpio/imx_gpio: Turn DPRINTF() into trace events
Date: Thu, 9 Jan 2025 12:57:33 +0100
User-agent: Mozilla Thunderbird

On 8/1/25 10:25, Bernhard Beschow wrote:
While at it add a trace event for input GPIO events.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
  hw/gpio/imx_gpio.c   | 16 +++++-----------
  hw/gpio/trace-events |  5 +++++
  2 files changed, 10 insertions(+), 11 deletions(-)


@@ -210,8 +205,7 @@ static void imx_gpio_write(void *opaque, hwaddr offset, 
uint64_t value,
  {
      IMXGPIOState *s = IMX_GPIO(opaque);
- DPRINTF("(%s, value = 0x%" PRIx32 ")\n", imx_gpio_reg_name(offset),
-            (uint32_t)value);
+    trace_imx_gpio_write(s->iomem.addr, imx_gpio_reg_name(offset), value);

Similar comment from patch 12 (iomem.addr -> qom_path?), otherwise:

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



reply via email to

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