This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Handling pgoff in perf elf mmap/mmap2 elf info
- From: Mark Wielaard <mark at klomp dot org>
- To: Milian Wolff <mail at milianw dot de>, elfutils-devel at sourceware dot org
- Cc: Ulf Hermann <ulf dot hermann at qt dot io>, Christoph Sterz <christoph dot sterz at kdab dot com>
- Date: Mon, 15 Oct 2018 23:04:52 +0200
- Subject: Re: Handling pgoff in perf elf mmap/mmap2 elf info
- References: <d0141f86-a010-ebff-e271-d11b556c30aa@kdab.com> <20181011173707.GA8552@wildebeest.org> <3480068.6G4le2ijG6@agathebauer> <4862287.LsxLGO1v19@agathebauer>
Hi Milian,
On Mon, 2018-10-15 at 22:38 +0200, Milian Wolff wrote:
> here's one example of mmap events recorded by perf:
>
> 0x7fac5ec0b000 to 0x7fac5ed9a000, len = 0x18f000, offset = 0
> r--p /usr/lib/libstdc++.so.6.0.25
> 0x7fac5ec94000 to 0x7fac5ed8a000, len = 0xf6000, offset = 0x89000
> ---p /usr/lib/libstdc++.so.6.0.25
> 0x7fac5ec94000 to 0x7fac5ed4c000, len = 0xb8000, offset = 0x89000
> r-xp /usr/lib/libstdc++.so.6.0.25
> 0x7fac5ed4c000 to 0x7fac5ed89000, len = 0x3d000, offset = 0x141000
> r--p /usr/lib/libstdc++.so.6.0.25
> 0x7fac5ed8a000 to 0x7fac5ed97000, len = 0xd000, offset = 0x17e000
> rw-p /usr/lib/libstdc++.so.6.0.25
Could you also post the matching phdr output for the file?
eu-readelf -l /usr/lib/libstdc++.so.6.0.25 should show it.
That way we can see how the PT_LOAD segments map to the mmap events.
Thanks,
Mark