hw/misc/macio: Improve trace logs
PATCH 1/1 hw/misc/macio: Improve trace logs
Add macio_gpio_read trace event and use that in macio_gpio_read() instead of macio_gpio_write. Also change log message to match macio_timer_{read,write}.
--- hw/misc/macio/gpio.c | 2 +- hw/misc/macio/trace-events | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
hw/misc/macio/gpio.c +1 -1
@@ -135,7 +135,7 @@ static uint64_t macio_gpio_read(void *opaque, hwaddr addr, unsigned size) } } -trace_macio_gpio_write (addr, val); +trace_macio_gpio_read (addr, val);return val; }
hw/misc/macio/trace-events +2 -1
@@ -18,7 +18,8 @@ macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx6 macio_set_gpio(int gpio, bool state) "setting GPIO %d to %d" macio_gpio_irq_assert(int gpio) "asserting GPIO %d" macio_gpio_irq_deassert(int gpio) "deasserting GPIO %d" -macio_gpio_write(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64 +macio_gpio_write(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 +macio_gpio_read(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 # pmu.c pmu_adb_poll(int olen) "ADB autopoll, olen=%d"
Signature · 1 line
2.30.9
Quoted 9 lines · BALATON Zoltan
Add
macio_gpio_readtrace event and use that inmacio_gpio_read()instead ofmacio_gpio_write. Also change log message to match macio_timer_{read,write}.Signed-off-by BALATON Zoltan <[email protected]>--- hw/misc/macio/gpio.c | 2 +- hw/misc/macio/trace-events | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
Quoted 28 lines · BALATON Zoltan
Add
macio_gpio_readtrace event and use that inmacio_gpio_read()instead ofmacio_gpio_write. Also change log message to match macio_timer_{read,write}.Signed-off-by BALATON Zoltan <[email protected]>--- hw/misc/macio/gpio.c | 2 +- hw/misc/macio/trace-events | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)hw/misc/macio/gpio.c +1
-1@@ -135,7 +135,7 @@ static uint64_t macio_gpio_read(void *opaque, hwaddr addr, unsigned size) } } -trace_macio_gpio_write (addr, val); +trace_macio_gpio_read (addr, val);return val; }hw/misc/macio/trace-events +0
-0
hw/misc/macio/trace-events macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx6 · line 25
Quoted 9 lines
hw/misc/macio/trace-events +2
-1@@ -18,7 +18,8 @@ macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx6 macio_set_gpio(int gpio, bool state) "setting GPIO %d to %d" macio_gpio_irq_assert(int gpio) "asserting GPIO %d" macio_gpio_irq_deassert(int gpio) "deasserting GPIO %d" -macio_gpio_write(uint64_t addr, uint64_t val) "addr: 0x%"PRIx64" value: 0x%"PRIx64 +macio_gpio_write(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 +macio_gpio_read(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 # pmu.c pmu_adb_poll(int olen) "ADB autopoll, olen=%d"
ATB,
Mark.
Quoted 9 lines · BALATON Zoltan
Add
macio_gpio_readtrace event and use that inmacio_gpio_read()instead ofmacio_gpio_write. Also change log message to match macio_timer_{read,write}.Signed-off-by BALATON Zoltan <[email protected]>--- hw/misc/macio/gpio.c | 2 +- hw/misc/macio/trace-events | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
Patch queued.