This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10208] New: Support probing weak symbol functions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]