This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: How to associate Elf with Dwfl_Module returned by dwfl_report_module
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: elfutils-devel at sourceware dot org, milian dot wolff at kdab dot com
- Date: Wed, 21 Mar 2018 15:35:20 +0100
- Subject: Re: How to associate Elf with Dwfl_Module returned by dwfl_report_module
- References: <3517953.ztkfjMdy38@agathebauer> <20180320220549.GD6269@wildebeest.org> <1946852.ajpeOdNFGP@agathebauer> <1581387.j5xz9UsgaX@agathebauer>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
> MEH: heaptrack_print | mmap: 56166e9d4000 56166ea39000 | dwfl: 56166e9d4000
> 56166ea38880
> MEH: ld-2.26.so | mmap: 7fd0afc6c000 7fd0afe93000 | dwfl: 7fd0afc6c000
> 7fd0afe920f8
> MEH: libc-2.26.so | mmap: 7fd0ae16a000 7fd0ae521000 | dwfl: 7fd0ae16a000
> 7fd0ae5208f0
> MEH: libstdc++.so.6.0.24 | mmap: 7fd0aea84000 7fd0aee0b000 | dwfl:
> 7fd0aea84000 7fd0aee0a640
> MEH: libzstd.so.1.3.3 | mmap: 7fd0aee0b000 7fd0af087000 | dwfl: 7fd0aee0b000
> 7fd0af086030
>
> Interestingly, here the mmap events observed by perf are actually always
> *larger* than what dwfl sees...
Do those differences map to some specific ELF sections? That is, does elfutils assume some sections are mmap'd even though they aren't or vice versa? As elfutils always assumes pgoff == 0 it should be fairly simple to see which sections those are (right?).
Ulf