From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>
Cc: "linux-perf-use." <linux-perf-users@vger.kernel.org>
Subject: Re: Question to struct map
Date: Tue, 12 Sep 2017 12:17:56 -0300 [thread overview]
Message-ID: <20170912151756.GB3452@kernel.org> (raw)
In-Reply-To: <1d758097-b01b-cbad-913a-855a61f8ce73@linux.vnet.ibm.com>
Em Tue, Sep 12, 2017 at 05:04:53PM +0200, Thomas-Mich Richter escreveu:
> Hi all,
>
> I have a question regarding struct map.
> What is the purpose is the functions pointers in struct map named map_ip and unmap_ip?
> How do they relate the to dso the struct map is refering to?
A DSO has a symbol table (ELF or other kind, like the JIT ones
(documented in tools/perf/Documentation/jit-interface.txt) that may be
identity mapped or not, requiring or not use of relocation, etc.
The map, on the other hand, is where this DSO was loaded in memory,
which will be used to add to the symbol offset to do the address
resolution.
- Arnaldo
> This is not clear to me. Must have been on vacation for too long :-).
>
> Thanks a lot.
> --
> Thomas Richter, Dept 3303, IBM LTC Boeblingen Germany
> --
> Vorsitzende des Aufsichtsrats: Martina Koederitz
> Geschäftsführung: Dirk Wittkopp
> Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-09-12 15:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-12 15:04 Question to struct map Thomas-Mich Richter
2017-09-12 15:17 ` Arnaldo Carvalho de Melo [this message]
2017-09-13 14:48 ` Thomas-Mich Richter
2017-09-13 15:18 ` Arnaldo Carvalho de Melo
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=20170912151756.GB3452@kernel.org \
--to=acme@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=tmricht@linux.vnet.ibm.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 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).