[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 12/14] hw/i2c/imx_i2c: Convert DPRINTF() to trace events
From: |
Bernhard Beschow |
Subject: |
Re: [PATCH 12/14] hw/i2c/imx_i2c: Convert DPRINTF() to trace events |
Date: |
Thu, 09 Jan 2025 16:16:11 +0000 |
Am 9. Januar 2025 12:38:11 UTC schrieb "Philippe Mathieu-Daudé"
<philmd@linaro.org>:
>On 9/1/25 12:56, Philippe Mathieu-Daudé wrote:
>> On 9/1/25 12:43, Philippe Mathieu-Daudé wrote:
>>> On 8/1/25 10:25, Bernhard Beschow wrote:
>>>> Also print the MMIO address when tracing. This allows to distinguishing the
>>>> many instances a typical i.MX SoC has.
>>
>> I'm not a fan of using peripheral address access, because it
>> can change i.e. when a vCPU is accessing it from secure or
>> non-secure mode.
>>
>> I'd rather use an 'id', a 'name' or even the QOM (canonical?)
>> path.
>>
>> Maybe we should directly cache that as Device::qom_path, so
>> all devices can use it for tracing, and we don't need to set
>> an id/name property when creating the device...
>
>We already have that, it is Device::canonical_path :)
Will do!
>
>>
>>>> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
>>>> ---
>>>> hw/i2c/imx_i2c.c | 21 +++++----------------
>>>> hw/i2c/trace-events | 5 +++++
>>>> 2 files changed, 10 insertions(+), 16 deletions(-)
>>>
>>> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>>> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>>
>
- Re: [PATCH 04/14] hw/core: Introduce TYPE_SHARED_IRQ, (continued)
[PATCH 06/14] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset, Bernhard Beschow, 2025/01/08
[PATCH 13/14] hw/misc/imx6_src: Convert DPRINTF() to trace events, Bernhard Beschow, 2025/01/08
[PATCH 05/14] hw/pci-host/designware: Expose MSI IRQ, Bernhard Beschow, 2025/01/08
[PATCH 09/14] hw/char/imx_serial: Turn some DPRINTF() statements into trace events, Bernhard Beschow, 2025/01/08
[PATCH 14/14] hw/gpio/imx_gpio: Turn DPRINTF() into trace events, Bernhard Beschow, 2025/01/08