[PATCH 0/2] memory: Add tracepoints for log_sync

Peter Xu posted 2 patches 4 years, 5 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210817013121.29941-1-peterx@redhat.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Roman Bolshakov <r.bolshakov@yadro.com>, Wenchao Wang <wenchao.wang@intel.com>, Eduardo Habkost <ehabkost@redhat.com>, Reinoud Zandijk <reinoud@netbsd.org>, David Hildenbrand <david@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Sunil Muthuswamy <sunilmut@microsoft.com>, Jagannathan Raman <jag.raman@oracle.com>, Greg Kurz <groug@kaod.org>, Alex Williamson <alex.williamson@redhat.com>, Anthony Perard <anthony.perard@citrix.com>, Cameron Esfahani <dirty@apple.com>, John G Johnson <john.g.johnson@oracle.com>, Elena Ufimtseva <elena.ufimtseva@oracle.com>, Peter Xu <peterx@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Kamil Rytarowski <kamil@netbsd.org>, Paolo Bonzini <pbonzini@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, Paul Durrant <paul@xen.org>, Marcelo Tosatti <mtosatti@redhat.com>, David Gibson <david@gibson.dropbear.id.au>, Richard Henderson <richard.henderson@linaro.org>, Colin Xu <colin.xu@intel.com>
There is a newer version of this series
accel/hvf/hvf-accel-ops.c         | 1 +
accel/kvm/kvm-all.c               | 7 +++++--
hw/i386/xen/xen-hvm.c             | 2 ++
hw/intc/openpic_kvm.c             | 1 +
hw/remote/proxy-memory-listener.c | 1 +
hw/vfio/common.c                  | 1 +
hw/vfio/spapr.c                   | 1 +
hw/virtio/vhost-vdpa.c            | 1 +
hw/virtio/vhost.c                 | 2 ++
hw/virtio/virtio.c                | 1 +
hw/xen/xen_pt.c                   | 2 ++
include/exec/memory.h             | 8 ++++++++
include/sysemu/kvm_int.h          | 2 +-
softmmu/memory.c                  | 2 ++
softmmu/physmem.c                 | 1 +
softmmu/trace-events              | 1 +
target/arm/kvm.c                  | 1 +
target/i386/hax/hax-mem.c         | 1 +
target/i386/kvm/kvm.c             | 2 +-
target/i386/nvmm/nvmm-all.c       | 1 +
target/i386/whpx/whpx-all.c       | 1 +
21 files changed, 36 insertions(+), 4 deletions(-)
[PATCH 0/2] memory: Add tracepoints for log_sync
Posted by Peter Xu 4 years, 5 months ago
It can help to identify which step is slow for migration dirty sync process.
We have migration_bitmap_sync_* trace events but it's still a bit coarse.

This should help us to cut migration_bitmap_sync() into finer grained small
steps when measurement is needed.

Please review, thanks.

Peter Xu (2):
  memory: Name all the memory listeners
  memory: Add tracepoint for dirty sync

 accel/hvf/hvf-accel-ops.c         | 1 +
 accel/kvm/kvm-all.c               | 7 +++++--
 hw/i386/xen/xen-hvm.c             | 2 ++
 hw/intc/openpic_kvm.c             | 1 +
 hw/remote/proxy-memory-listener.c | 1 +
 hw/vfio/common.c                  | 1 +
 hw/vfio/spapr.c                   | 1 +
 hw/virtio/vhost-vdpa.c            | 1 +
 hw/virtio/vhost.c                 | 2 ++
 hw/virtio/virtio.c                | 1 +
 hw/xen/xen_pt.c                   | 2 ++
 include/exec/memory.h             | 8 ++++++++
 include/sysemu/kvm_int.h          | 2 +-
 softmmu/memory.c                  | 2 ++
 softmmu/physmem.c                 | 1 +
 softmmu/trace-events              | 1 +
 target/arm/kvm.c                  | 1 +
 target/i386/hax/hax-mem.c         | 1 +
 target/i386/kvm/kvm.c             | 2 +-
 target/i386/nvmm/nvmm-all.c       | 1 +
 target/i386/whpx/whpx-all.c       | 1 +
 21 files changed, 36 insertions(+), 4 deletions(-)

-- 
2.31.1