All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milian Wolff <mail@milianw.de>
To: Namhyung Kim <namhyung@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>,
	linux-perf-users <linux-perf-users@vger.kernel.org>,
	Arnaldo Carvalho de Melo <acme@kenel.org>
Subject: Re: missing mmap events in perf profiles without dwarf callgraph
Date: Tue, 19 Jan 2021 12:33:12 +0100	[thread overview]
Message-ID: <6799156.55LOemW0PR@milian-workstation> (raw)
In-Reply-To: <CAM9d7cihUNLX9wAWkNi5-J1HC4NPhD_mFW9EFc77t=SAFF10-A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]

On Dienstag, 19. Januar 2021 10:36:11 CET Namhyung Kim wrote:
> Hi Milian,
> 
> On Tue, Jan 19, 2021 at 5:11 PM Milian Wolff <mail@milianw.de> wrote:
> > On Donnerstag, 14. Januar 2021 09:56:36 CET Namhyung Kim wrote:
> > > What I noticed is ss->adjust_symbols which is set for user DSOs.  It
> > > does
> > > 
> > >   sym.st_value -= shdr.sh_addr - shdr.sh_offset
> > > 
> > > Maybe your program's section header has different values?
> > 
> > Hey Namhyung,
> > 
> > how would I figure that one out? Isn't that data shown in the readelf
> > output above? Put differently: Could someone else maybe show his readelf
> > output so we can compare?
> 
> I mean the below.  In my case, address and offset of the .text section are
> same as 0x1080.

Ah, indeed for me it's not the same - there's the discrepancy of 0x1000 again:

  [13] .text             PROGBITS         0000000000001610  00000610
       0000000000000185  0000000000000000  AX       0     0     16

Thanks, that gives me a (complicated) path forward. We'd have to essentially 
load the elf file, find this offset, and then take it into account when 
telling elfutils where the file was actually mapped to originally.

Cheers

-- 
Milian Wolff
mail@milianw.de
http://milianw.de

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2021-01-19 18:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-11 16:56 missing mmap events in perf profiles without dwarf callgraph Milian Wolff
2021-01-13 10:30 ` Jiri Olsa
2021-01-13 17:47   ` Milian Wolff
2021-01-13 18:45     ` Jiri Olsa
2021-01-13 19:18       ` Milian Wolff
2021-01-14  8:56         ` Namhyung Kim
2021-01-19  8:09           ` Milian Wolff
2021-01-19  9:36             ` Namhyung Kim
2021-01-19 11:33               ` Milian Wolff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6799156.55LOemW0PR@milian-workstation \
    --to=mail@milianw.de \
    --cc=acme@kenel.org \
    --cc=jolsa@redhat.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=namhyung@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.