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/10625] New: nested functions aren't probeable


In loc2c.c, there are several definitions of nested inline functions, but they
are not visible to stap.  For example, translate() has a nested function called
deepen(), yet:

$ stap -l 'process("stap").function("deepen")'
semantic error: no match while resolving probe point
process("stap").function("deepen")

We get our functions from elfutils' dwarf_getfuncs(), but that function only
looks at the direct children of the CU.  For nested functions, the subprogram
DIE occurs as a child of the function that contains it.

Finding nested functions will probably require scanning through the DIEs within
each discovered function, but that will probably slow us down quite a bit.

-- 
           Summary: nested functions aren't probeable
           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=10625

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