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/21403] provide something like ppfunc() that also provided the class name of the function


https://sourceware.org/bugzilla/show_bug.cgi?id=21403

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
(In reply to David Smith from comment #0)
> It would be nice if there was a way for a function to not just return the
> function name the current probe point, but also the class name (assuming
> we're in a C++ class).
> 
> The problem here is that the pp() information (which is what ppfunc()
> parses) has the class name, but in a mangled format. We'd have to add a C++
> demangler for this to work properly.

Just to be clear here, I'm not suggesting we put a C++ demangler in the kernel
modules. I'm suggesting that we add enough code to the translator to put the
unmangled C++ class/function name ("CLASS::FUNCTION") as part of the probe
point name field the translator emits. Then a ppfunc() variant could extract
CLASS::FUNCTION from the full probe name field.

(Note that we'd still have mangled C++ names in backtraces that would need to
be passed through c++filt to get demangled.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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