This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/21403] provide something like ppfunc() that also provided the class name of the function
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 20 Apr 2017 19:51:40 +0000
- Subject: [Bug translator/21403] provide something like ppfunc() that also provided the class name of the function
- Auto-submitted: auto-generated
- References: <bug-21403-6586@http.sourceware.org/bugzilla/>
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.