OSDN Git Service

hw/mips/gt64xxx: Remove dynamic field width from trace events
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 8 Nov 2019 14:13:59 +0000 (15:13 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 19 Nov 2019 13:46:01 +0000 (14:46 +0100)
commitabc7cf36559f953777faf27d2e0dfb561ac533a5
tree28e6e4bbd9f8185e1ed962da47dc27f7ef98e3dc
parent10f9f1fbed11e520e6fd71f02cd71f0e9c759b69
hw/mips/gt64xxx: Remove dynamic field width from trace events

Since not all trace backends support dynamic field width in
format (dtrace via stap does not), replace by a static field
width instead.

We previously passed to the trace API 'width << 1' as the number
of hex characters to display (the dynamic field width). We don't
need this anymore. Instead, display the size of bytes accessed.

Fixes: ab6bff424f ("gt64xxx_pci: Convert debug printf to trace events")
Reported-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Buglink: https://bugs.launchpad.net/qemu/+bug/1844817
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/mips/gt64xxx_pci.c
hw/mips/trace-events