linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kprobe string
@ 2014-07-17  0:51 Brendan Gregg
  2014-07-17  4:41 ` David Ahern
  0 siblings, 1 reply; 6+ messages in thread
From: Brendan Gregg @ 2014-07-17  0:51 UTC (permalink / raw)
  To: linux-perf-use.

G'Day,

I'm not sure where else to ask this; I don't think this functionality
is in perf_events yet...

kprobes is supposed to be able to handle string arguments, but I've
not been able to find a single working example. I'm trying (on 3.16):

# cd /sys/kernel/debug/tracing
# echo 'r:getname getname $retval:string' > kprobe_events
-bash: echo: write error: Invalid argument
# echo 'p:myprobe do_sys_open %dx:string' > kprobe_events
-bash: echo: write error: Invalid argument

I'm following the syntax in Documentation/trace/kprobetrace.txt by
Masami Hiramatsu, and it is recognizing "string". But I'm getting
these errors:

# dmesg | tail -4
[98021.813560] string type has no corresponding fetch method.
[98021.813564] Parse error at argument[0]. (-22)
[98705.956199] string type has no corresponding fetch method.
[98705.956203] Parse error at argument[0]. (-22)

Anyone seen this work? I'm checking the source... Thanks in advance,

Brendan
-- 
http://www.brendangregg.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-21  1:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-17  0:51 kprobe string Brendan Gregg
2014-07-17  4:41 ` David Ahern
2014-07-17  6:29   ` Brendan Gregg
2014-07-17  7:24     ` Namhyung Kim
2014-07-17  8:23       ` Brendan Gregg
2014-07-21  1:20         ` Brendan Gregg

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).