* perf probe: register type casting to string
@ 2017-09-06 10:29 Milian Wolff
0 siblings, 0 replies; only message in thread
From: Milian Wolff @ 2017-09-06 10:29 UTC (permalink / raw)
To: linux-perf-users
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-06 10:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-06 10:29 perf probe: register type casting to string Milian Wolff
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).