Skip to content

Replace 9p debug infrastructure with Qemu Tracing

Harsh Prateek Bora qemu-devel 2 versions – Applied

Status from this message: applied to v9fs tree with sample output added to patch 3

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v1 RFC2 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3hw/9pfs: Introduce tracing for 9p pdu handlershw/9pfs/virtio-9p.c trace-events+109 -00 replies
2/3hw/9pfs: Remove virtio-9p-debug.* infra to be replaced by Qemu Tracing.Makefile.objs hw/9pfs/virtio-9p-debug.c hw/9pfs/virtio-9p-debug.h +1 more+1 -6610 replies
3/3scripts: Simpletrace log analysis script for pretty-printing 9p log.scripts/analyse-9p-simpletrace.py+142 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] Replace 9p debug infrastructure with Qemu Tracing

This patchset introduces Qemu Tracing to 9p pdu handlers and removes the existing debug infrastructure which became less meaningful after the introduction of coroutines. With the existing debug infra, parallel operations creates a messy output and filtering becomes difficult.

With Qemu tracing in place, we can selectively enable/disable trace-events and the trace log can be further pretty-printed/filtered using an analysis script.

Harsh Prateek Bora (3):
hw/9pfs: Introduce tracing for 9p pdu handlers
hw/9pfs: Remove virtio-9p-debug.* infra to be replaced by Qemu
Tracing.
scripts: Simpletrace log analysis script for pretty-printing 9p log.

 Makefile.objs                     |    2 +-
 hw/9pfs/virtio-9p-debug.c         |  646 -------------------------------------
 hw/9pfs/virtio-9p-debug.h         |    6 -
 hw/9pfs/virtio-9p.c               |   70 ++++-
 scripts/analyse-9p-simpletrace.py |  142 ++++++++
 trace-events                      |   47 +++
 6 files changed, 252 insertions(+), 661 deletions(-)
 delete mode 100644 hw/9pfs/virtio-9p-debug.c
 delete mode 100644 hw/9pfs/virtio-9p-debug.h
 create mode 100755 scripts/analyse-9p-simpletrace.py