* Perf MMAP records differ from /proc/[X]/maps when chroot is used
@ 2022-06-01 18:04 Beau Belgrave
0 siblings, 0 replies; only message in thread
From: Beau Belgrave @ 2022-06-01 18:04 UTC (permalink / raw)
To: namhyung, jolsa, acme, peterz, mingo; +Cc: linux-trace-devel, linux-kernel
I noticed a related conversation that occurred in the past here:
https://lore.kernel.org/lkml/20220202070828.143303-1-namhyung@kernel.org/
I hit this same issue, however, during debugging I noticed that when
chroot is used the full path including the chroot are in /proc/[X]/maps.
The perf MMAP records only give the relative path within the chroot.
This causes different views of a process when combining mmaps that existed
before perf_event_open() via /proc/[X]/maps and observed mmaps within the
perf_event_open() ring buffer.
I would like to know if this is how mmap records are wanted to be represented
long term via perf? It would be great if these mmap records aligned with how
/proc/[X]/maps are represented so chroot usage becomes (mostly) seamless.
Thanks,
-Beau
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-01 18:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01 18:04 Perf MMAP records differ from /proc/[X]/maps when chroot is used Beau Belgrave
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).