From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Benjamin King <benjaminking@web.de>,
Brendan Gregg <brendan.d.gregg@gmail.com>,
"linux-perf-use." <linux-perf-users@vger.kernel.org>,
cti.systems-productivity-manager.ts@hitachi.com
Subject: Re: perf probe an addr without debuginfo
Date: Tue, 30 Jun 2015 16:37:09 +0900 [thread overview]
Message-ID: <55924725.5010504@hitachi.com> (raw)
In-Reply-To: <20150629150038.GA1225@kernel.org>
On 2015/06/30 0:00, Arnaldo Carvalho de Melo wrote:
> Em Sun, Jun 28, 2015 at 05:46:51PM +0200, Benjamin King escreveu:
>> Hi Brendan
>>
>>> Is there a trick to getting perf to probe a user-level address without
>>> debuginfo? Eg (on Linux 4.0):
>>> [...]
>>> I can do this using ftrace ok, eg, "p:tick_0x583 /root/tick:0x583"
>>> works. Thanks,
>>
>> Not quite what you have asked for, but you can add the probe via ftrace and
>> then use it from perf. Probes from /sys/kernel/debug/tracing/uprobe_events
>> will show up in 'perf list' as well.
>
> Masami,
>
> Is this already possible?
Yes, it should be possible. However, I don't recommend you to
probe the address inside a function without debuginfo. You must
check the instruction boundary in that case.
>
> - Arnaldo
>
> P.S.: If you're not subscribed to this list, please consider it :-)
Oh, I didn't know the list! I will.
Thanks!
>
--
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering
Hitachi, Ltd., Research & Development Group
E-mail: masami.hiramatsu.pt@hitachi.com
next prev parent reply other threads:[~2015-06-30 8:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-27 19:06 perf probe an addr without debuginfo Brendan Gregg
2015-06-28 15:46 ` Benjamin King
2015-06-29 15:00 ` Arnaldo Carvalho de Melo
2015-06-30 6:44 ` Benjamin King
2015-06-30 8:51 ` Masami Hiramatsu
2015-06-30 18:07 ` Brendan Gregg
2015-06-30 20:44 ` Benjamin King
2015-06-30 7:37 ` Masami Hiramatsu [this message]
2015-06-30 18:40 ` Brendan Gregg
2015-07-01 11:05 ` Masami Hiramatsu
2015-07-06 23:18 ` Brendan Gregg
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=55924725.5010504@hitachi.com \
--to=masami.hiramatsu.pt@hitachi.com \
--cc=acme@kernel.org \
--cc=benjaminking@web.de \
--cc=brendan.d.gregg@gmail.com \
--cc=cti.systems-productivity-manager.ts@hitachi.com \
--cc=linux-perf-users@vger.kernel.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 NNTP newsgroup(s).