linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uprobe symbols with @GLIBC...
@ 2015-02-20 15:29 Paul Clarke
  2015-02-20 17:20 ` David Ahern
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Clarke @ 2015-02-20 15:29 UTC (permalink / raw)
  To: linux-perf-users

Greetings,

(New user for perf probe -x...)

How does one set a dynamic tracepoint for user-mode symbols with "@" 
qualifiers?

# perf probe -F -x /lib/libpthread.so.0 --filter='pthread_create*'
pthread_create@@GLIBC_2.1
pthread_create@GLIBC_2.0

# perf probe -v -x /lib/libpthread.so.0 pthread_create@GLIBC_2.0
probe-definition(0): pthread_create@GLIBC_2.0
symbol:pthread_create file:GLIBC_2.0 line:0 offset:0 return:0 lazy:(null)
0 arguments
Failed to open debuginfo file.
   Error: Failed to add events. (-2)

# perf probe -v -x /lib/libpthread.so.0 pthread_create
probe-definition(0): pthread_create
symbol:pthread_create file:(null) line:0 offset:0 return:0 lazy:(null)
0 arguments
Could not open debuginfo. Try to use symbols.
no symbols found in /usr/lib/libpthread-2.18.so, maybe install a debug 
package?
Failed to find symbol pthread_create in /usr/lib/libpthread-2.18.so
   Error: Failed to add events. (-2)

Symbols without such qualifiers work fine:

# perf probe -F -x /lib/libpthread.so.0 --filter='pthread_detach*'
pthread_detach

# perf probe -v -x /lib/libpthread.so.0 pthread_detach
probe-definition(0): pthread_detach
symbol:pthread_detach file:(null) line:0 offset:0 return:0 lazy:(null)
0 arguments
Could not open debuginfo. Try to use symbols.
Opening /sys/kernel/debug/tracing/uprobe_events write=1
Added new event:
Writing event: p:probe_libpthread/pthread_detach 
/usr/lib/libpthread-2.18.so:0x8b30
   probe_libpthread:pthread_detach (on pthread_detach in 
/usr/lib/libpthread-2.18.so)

You can now use it in all perf tools, such as:

         perf record -e probe_libpthread:pthread_detach -aR sleep 1

--
Regards,
Paul Clarke, IBM

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

end of thread, other threads:[~2017-03-30  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 15:29 uprobe symbols with @GLIBC Paul Clarke
2015-02-20 17:20 ` David Ahern
2015-02-20 17:57   ` Paul Clarke
2017-03-27 21:49     ` Paul Clarke
2017-03-29 16:23       ` David Ahern
2017-03-30  3:44         ` Masami Hiramatsu

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