All of lore.kernel.org
 help / color / mirror / Atom feed
* perf user SDT markers
@ 2015-04-12  2:13 Brendan Gregg
  2015-04-12 20:05 ` Brendan Gregg
  0 siblings, 1 reply; 5+ messages in thread
From: Brendan Gregg @ 2015-04-12  2:13 UTC (permalink / raw)
  To: linux-perf-use., hemant

G'Day,

I was just trying Hemant Kumar's user SDT patch
(http://lwn.net/Articles/618956/); anyone else tried it recently? I
applied it to 4.0.0-rc6, and it creates instrumentation, but doesn't
record the probes.

This works (it finds the Node.js probes):

# ./perf sdt-cache --dump
/home/bgregg-testtest/node-standard/out/Release/node:
   %node:net__server__connection
   %node:net__stream__end
   %node:net__socket__read
   %node:net__socket__write
   %node:http__server__request
   %node:http__server__response
   %node:http__client__request
   %node:http__client__response
   %node:gc__done
   %node:gc__start

But I can't "perf list" or record them:

# ./perf record -e '%node:http__server__request' -aR
invalid or unsupported event: '%node:http__server__request'
Run 'perf list' for a list of valid events
[...]

stap works:

# /root/systemtap-2.8/bin/stap -e 'probe
process("/home/bgregg-testtest/node-standard/out/Release/node").mark("http__server__request")
{ println("hit"); }'
hit
hit

Brendan

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

end of thread, other threads:[~2015-04-14 10:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-12  2:13 perf user SDT markers Brendan Gregg
2015-04-12 20:05 ` Brendan Gregg
2015-04-13  9:27   ` Hemant Kumar
2015-04-13 17:19     ` Brendan Gregg
2015-04-14 10:25       ` Hemant Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.