trace type mismatch cleanups
Status from this message: Thanks, applied to my tracing-next tree:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest30 patches 20 repliesApplied
- v11 patch 6 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | trace: Fix backwards mirror_yield parametersblock/ | +3 | 1 reply | |
| 2/30 | trace: Fix incorrect megasas trace parametershw/ | +3 | 2 replies | |
| 3/30 | trace: Avoid abuse of amdvi_mmio_readhw/ hw/ | +2 | 2 replies | |
| 4/30 | trace: Fix parameter types in blockblock/ | +2 | 0 replies | |
| 5/30 | trace: Fix parameter types in ioio/ | +1 | 0 replies | |
| 6/30 | trace: Fix parameter types in migrationmigration/ | +2 | 6 replies | |
| 7/30 | trace: Fix parameter types in uiui/ | +4 | 1 reply | |
| 8/30 | trace: Fix parameter types in top levelcpu-exec.c trace-events translate-all.c | +5 | 0 replies | |
| 9/30 | trace: Fix parameter types in linux-userlinux-user/ | +53 | 0 replies | |
| 10/30 | trace: Fix parameter types in hw/acpihw/ | +3 | 0 replies | |
| 11/30 | trace: Fix parameter types in hw/audiohw/ | +4 | 2 replies | |
| 12/30 | trace: Fix parameter types in hw/blockhw/ | +2 | 0 replies | |
| 13/30 | trace: Fix parameter types in hw/charhw/ hw/ | +9 | 0 replies | |
| 14/30 | trace: Fix parameter types in hw/displayhw/ | +10 | 0 replies | |
| 15/30 | trace: Fix parameter types in hw/dmahw/ | +4 | 0 replies | |
| 16/30 | trace: Fix parameter types in hw/i386hw/ | +1 | 0 replies | |
| 17/30 | trace: Fix parameter types in hw/inputhw/ | +2 | 0 replies | |
| 18/30 | trace: Fix parameter types in hw/intchw/ hw/ | +21 | 0 replies | |
| 19/30 | trace: Fix parameter types in hw/isahw/ | +2 | 0 replies | |
| 20/30 | trace: Fix parameter types in hw/mischw/ | +22 | 0 replies | |
| 21/30 | trace: Fix parameter types in hw/nethw/ hw/ | +34 | 1 reply | |
| 22/30 | trace: Fix parameter types in hw/nvramhw/ hw/ | +3 | 0 replies | |
| 23/30 | trace: Fix parameter types in hw/ppchw/ | +8 | 0 replies | |
| 24/30 | trace: Fix parameter types in hw/sdhw/ | +2 | 0 replies | |
| 25/30 | trace: Fix parameter types in hw/scsihw/ hw/ hw/ | +63 | 1 reply | |
| 26/30 | trace: Fix parameter types in hw/timerhw/ hw/ | +10 | 0 replies | |
| 27/30 | trace: Fix parameter types in hw/usbhw/ hw/ hw/ | +49 | 1 reply | |
| 28/30 | trace: Fix parameter types in hw/vfiohw/ hw/ | +9 | 0 replies | |
| 29/30 | trace: Fix parameter types in hw/virtiohw/ | +1 | 1 reply | |
| 30/30 | trace: Force compiler warnings on trace parameter type mismatchesscripts/ | +13 | 2 replies |
Reviews trailers per patch
6 of 30 patches have a Reviewed-by or Acked-by.
| Patch | Hannes Reinecke | Dmitry Fleytman | Gerd Hoffmann |
|---|---|---|---|
| 1/30 | |||
| 2/30 | R-b | ||
| 3/30 | |||
| 4/30 | |||
| 5/30 | |||
| 6/30 | |||
| 7/30 | R-b | ||
| 8/30 | |||
| 9/30 | |||
| 10/30 | |||
| 11/30 | R-b | ||
| 12/30 | |||
| 13/30 | |||
| 14/30 | |||
| 15/30 | |||
| 16/30 | |||
| 17/30 | |||
| 18/30 | |||
| 19/30 | |||
| 20/30 | |||
| 21/30 | R-b | ||
| 22/30 | |||
| 23/30 | |||
| 24/30 | |||
| 25/30 | R-b | ||
| 26/30 | |||
| 27/30 | R-b | ||
| 28/30 | |||
| 29/30 | |||
| 30/30 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Qemu-devel] [PATCH for-2.9 v2 00/30] trace type mismatch cleanups
We have a number of tracepoints that mistakenly truncate 64-bit values into 32-bit printouts, making the trace less useful than what is fully possible.
Previously posted patch 1 here:
https://lists.gnu.org/archive/html/qemu-devel/2017-03/msg01918.html
At which point I realized the problem may be more pervasive, so I started a much bigger audit (aided by patch 30 of this series).
Proposing the (bulk of this) series for 2.9. Patches 1-3 are ready to go, and definitely belong in 2.9 as bug-fixes; 4-29 can probably be treated as bug-fixes and included per maintainer discretion, but may need further tweaks on platforms with different typing setups than what I tested with (for example, I have not attempted a 32-bit build, which will likely flag some additional misuse of "%lx" that should have been "%"PRIx64, and I know that mingw still trips things up).
Patch 30 is NOT 2.9 material - it has too much risk of causing compilation failures on platforms with different types, where the current behavior of just (silently) switching between types allows compilation (even if it is not accurate traces). But if we like the approach, there are enough potential merge-conflict magnets that the overall series should probably go early into 2.10 (other than the bug-fixes picked into 2.9), and patch 30 is essential to keeping us from regressing into future type mismatches.
Eric Blake (30):
trace: Fix backwards mirror_yield parameters
trace: Fix incorrect megasas trace parameters
trace: Avoid abuse of amdvi_mmio_read
trace: Fix parameter types in block
trace: Fix parameter types in io
trace: Fix parameter types in migration
trace: Fix parameter types in ui
trace: Fix parameter types in top level
trace: Fix parameter types in linux-user
trace: Fix parameter types in hw/acpi
trace: Fix parameter types in hw/audio
trace: Fix parameter types in hw/block
trace: Fix parameter types in hw/char
trace: Fix parameter types in hw/display
trace: Fix parameter types in hw/dma
trace: Fix parameter types in hw/i386
trace: Fix parameter types in hw/input
trace: Fix parameter types in hw/intc
trace: Fix parameter types in hw/isa
trace: Fix parameter types in hw/misc
trace: Fix parameter types in hw/net
trace: Fix parameter types in hw/nvram
trace: Fix parameter types in hw/ppc
trace: Fix parameter types in hw/sd
trace: Fix parameter types in hw/scsi
trace: Fix parameter types in hw/timer
trace: Fix parameter types in hw/usb
trace: Fix parameter types in hw/vfio
trace: Fix parameter types in hw/virtio
trace: Force compiler warnings on trace parameter type mismatches
scripts/tracetool/format/h.py | 13 +++++ block/mirror.c | 5 +- cpu-exec.c | 6 +-- hw/block/virtio-blk.c | 4 +- hw/char/escc.c | 4 +- hw/i386/amd_iommu.c | 3 +- hw/intc/apic_common.c | 2 +- hw/net/e1000e_core.c | 10 ++-- hw/nvram/fw_cfg.c | 2 +- hw/scsi/esp-pci.c | 2 +- hw/scsi/megasas.c | 14 +++--- hw/timer/grlib_gptimer.c | 6 +-- hw/usb/hcd-ehci.c | 9 ++-- hw/usb/hcd-xhci.c | 4 +- hw/vfio/pci.c | 3 +- io/channel-command.c | 2 +- linux-user/signal.c | 106 +++++++++++++++++++-------------------- translate-all.c | 2 +- block/trace-events | 4 +- hw/acpi/trace-events | 6 +-- hw/audio/trace-events | 8 +-- hw/char/trace-events | 14 +++--- hw/display/trace-events | 20 ++++---- hw/dma/trace-events | 8 +-- hw/i386/trace-events | 3 +- hw/input/trace-events | 4 +- hw/intc/trace-events | 40 +++++++-------- hw/isa/trace-events | 4 +- hw/misc/trace-events | 44 ++++++++-------- hw/net/trace-events | 58 ++++++++++----------- hw/nvram/trace-events | 4 +- hw/ppc/trace-events | 16 +++--- hw/scsi/trace-events | 114 +++++++++++++++++++++--------------------- hw/sd/trace-events | 4 +- hw/timer/trace-events | 14 +++--- hw/usb/trace-events | 84 +++++++++++++++---------------- hw/vfio/trace-events | 14 +++--- hw/virtio/trace-events | 2 +- migration/trace-events | 4 +- trace-events | 2 +- ui/trace-events | 8 +-- 41 files changed, 347 insertions(+), 329 deletions(-)
Signature · 1 line
2.9.3