This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10208] New: Support probing weak symbol functions
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 27 May 2009 14:26:43 -0000
- Subject: [Bug translator/10208] New: Support probing weak symbol functions
- Reply-to: sourceware-bugzilla at sourceware dot org
stap doesn't find chmod or fchmod in glibc:
$ stap -ve 'probe process("/usr/bin/ld").function("main") { log("started"); }
probe process("/lib/libc.so.6").function("fchmod") { print_ubacktrace(); }'
Pass 1: parsed user script and 52 library script(s) in 370usr/10sys/379real ms.
semantic error: no match while resolving probe point
process("/lib/libc.so.6").function("fchmod")
Pass 2: analyzed script: 1 probe(s), 5 function(s), 0 embed(s), 0 global(s) in
50usr/10sys/55real ms.
Pass 2: analysis failed. Try again with another '--vp 01' option.
This seems to be because chmod and fchmod are "weak symbols", while fchmodat
aren't. But they do seem to have a default value:
Name Value
Class Type Size Line Section
__GI___chmod
|001f9070|LOCAL |FUNC | 3d| |.text
__GI___fchmod
|001f90b0|LOCAL |FUNC | 3d| |.text
__GI_chmod
|001f9070|LOCAL |FUNC | 3d| |.text
__GI_fchmod
|001f90b0|LOCAL |FUNC | 3d| |.text
__chmod
|001f9070|LOCAL |FUNC | 3d| |.text
__fchmod
|001f90b0|LOCAL |FUNC | 3d| |.text
chmod
|001f9070|WEAK |FUNC | 3d| |.text
fchmod
|001f90b0|WEAK |FUNC | 3d| |.text
fchmodat
|001f9120|GLOBAL|FUNC | 16f| |.text
--
Summary: Support probing weak symbol functions
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10208
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.