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 tapsets/10572] New: stap misses functions with the same name in one CU


stap doesn't probe all possible functions when some have the same name in a
single CU.  This can happen in C++ if the functions have overloaded parameters,
or if the functions are from different namespace/class scopes.  For example:

$ stap -l 'process("/usr/bin/stap").function("visit_target_symbol")' 
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/staptree.cxx:2636")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/elaborate.cxx:2807")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/translate.cxx:3513")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/tapsets.cxx:2167")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/tapset-procfs.cxx:353")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/tapset-perfmon.cxx:46")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/tapset-mark.cxx:187")
process("/usr/bin/stap").function("visit_target_symbol@/usr/src/debug/systemtap-0.9.9/tapset-utrace.cxx:543")

That's 8 probes, but stap actually has 15 visit_target_symbol functions.  You
can see that there's only one function per selected CU, but should be multiple
functions found in elaborate.cxx, staptree.cxx, and tapsets.cxx.

-- 
           Summary: stap misses functions with the same name in one CU
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10572

------- 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]