[PATCH 0/7] debug: add PR_SET_VMA_ANON_NAME support

John Snow posted 7 patches 1 week, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261109185907.3220584-1-jsnow@redhat.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, Dmitry Osipenko <dmitry.osipenko@collabora.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>, Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>, Alistair Francis <alistair.francis@wdc.com>, David Gibson <david@gibson.dropbear.id.au>, "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>, Marcelo Tosatti <mtosatti@redhat.com>, Stefan Weil <sw@weilnetz.de>
There is a newer version of this series
meson.build                |  8 ++++
include/qemu/bitmap.h      |  6 +++
include/qemu/mmap-alloc.h  |  3 +-
include/qemu/mmap-vma.h    | 21 +++++++++
include/qemu/osdep.h       |  2 +-
hw/core/loader.c           |  3 ++
hw/display/virtio-gpu-gl.c |  2 +-
hw/i386/x86-common.c       |  3 ++
migration/ram.c            |  3 +-
system/device_tree.c       |  2 +
system/physmem.c           | 15 ++++--
target/i386/kvm/tdx.c      |  3 +-
util/mmap-alloc.c          | 17 +++++--
util/mmap-vma.c            | 94 ++++++++++++++++++++++++++++++++++++++
util/oslib-posix.c         |  7 ++-
util/oslib-win32.c         |  2 +-
util/qemu-thread-posix.c   | 34 ++++++++++++++
util/meson.build           |  1 +
util/trace-events          |  3 ++
19 files changed, 213 insertions(+), 16 deletions(-)
create mode 100644 include/qemu/mmap-vma.h
create mode 100644 util/mmap-vma.c
[PATCH 0/7] debug: add PR_SET_VMA_ANON_NAME support
Posted by John Snow 1 week, 6 days ago
Add PR_SET_VMA_ANON_NAME support to name mmap'd regions of
memory. This is only supported on Linux >= 5.17, but allows QEMU to
communicate names for each VMA segment to linux, where they are
visible in /proc/$pid/[s]maps and utilities like pmap.

John Snow (7):
  debug/mem: add utility to name anonymous memory mappings
  debug/mem: add tracing to qemu_vname_vma()
  debug/mem: name <reserved> regions in mmap-alloc
  debug/mem: name pthreads
  debug/mem: name coroutine stacks
  debug/mem: name qemu_anon_ram_alloc/qemu_ram_mmap pages
  debug/mem: HACK add qemu_name_buffer

 meson.build                |  8 ++++
 include/qemu/bitmap.h      |  6 +++
 include/qemu/mmap-alloc.h  |  3 +-
 include/qemu/mmap-vma.h    | 21 +++++++++
 include/qemu/osdep.h       |  2 +-
 hw/core/loader.c           |  3 ++
 hw/display/virtio-gpu-gl.c |  2 +-
 hw/i386/x86-common.c       |  3 ++
 migration/ram.c            |  3 +-
 system/device_tree.c       |  2 +
 system/physmem.c           | 15 ++++--
 target/i386/kvm/tdx.c      |  3 +-
 util/mmap-alloc.c          | 17 +++++--
 util/mmap-vma.c            | 94 ++++++++++++++++++++++++++++++++++++++
 util/oslib-posix.c         |  7 ++-
 util/oslib-win32.c         |  2 +-
 util/qemu-thread-posix.c   | 34 ++++++++++++++
 util/meson.build           |  1 +
 util/trace-events          |  3 ++
 19 files changed, 213 insertions(+), 16 deletions(-)
 create mode 100644 include/qemu/mmap-vma.h
 create mode 100644 util/mmap-vma.c

-- 
2.56.0