From: Yibin Zhao <yibin.zhao@zoom.us>
To: systemtap@sourceware.org
Subject: How to translate from user space symbol name to address?
Date: Wed, 9 Nov 2022 17:58:18 +0800 [thread overview]
Message-ID: <CAHBY8CD3CR_OupR2AXgUwisgeTs9q428hqxkYbR9QWRLc+EF4A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 591 bytes --]
Hi,
usymname can be used to translate address to symbol name, but I can't find
an easy way to translate symbol name to address.
I can get the ubacktrace and translate the addresses to symbols one by one,
and try to find the relationship between the symbol and the address, but
it's a bit tricky I think.
In systemtap source code, tapset.cxx do get address for probed symbols, is
it possible to get symbol address during runtime?
The reason why I want to translate a symbol to an address is , I want to
strip part of the stack for readability.
Any clue is appreciated
Thanks
Yibin
next reply other threads:[~2022-11-09 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 9:58 Yibin Zhao [this message]
2022-11-18 15:41 ` Frank Ch. Eigler
2022-11-21 6:44 ` Yibin Zhao
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=CAHBY8CD3CR_OupR2AXgUwisgeTs9q428hqxkYbR9QWRLc+EF4A@mail.gmail.com \
--to=yibin.zhao@zoom.us \
--cc=systemtap@sourceware.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).