From: Milian Wolff <milian.wolff@kdab.com>
To: linux-perf-users@vger.kernel.org
Subject: perf probe: register type casting to string
Date: Wed, 06 Sep 2017 12:29:40 +0200 [thread overview]
Message-ID: <1715726.r9yPp6ySFi@agathebauer> (raw)
Hey all,
it seems like it's impossible to use the :string type cast feature of perf
probe when using a register as the source. I.e.:
~~~~~
┌milian@agathebauer:/tmp
└$ cat test.c
void blub(const char* l)
{
}
int main(int argc, char** argv)
{
blub(argv[0]);
return 0;
}
┌milian@agathebauer:/tmp
└$ gcc -O0 -g test.c
┌milian@agathebauer:/tmp
└$ perf probe -x ./a.out 'blub label=%di:string'
Failed to write event: Invalid argument
Error: Failed to add events.
~~~~~~
Is there anything I'm missing? When I use `l` instead of `%di` it works. But
if I'm trying to add a tracepoint to a library that got stripped and is
missing debug symbols, what can I do?
Thanks
--
Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
reply other threads:[~2017-09-06 10:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1715726.r9yPp6ySFi@agathebauer \
--to=milian.wolff@kdab.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).