* [Bug translator/21403] New: provide something like ppfunc() that also provided the class name of the function
@ 2017-04-20 13:57 dsmith at redhat dot com
2017-04-20 19:51 ` [Bug translator/21403] " dsmith at redhat dot com
2017-05-09 0:02 ` fche at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2017-04-20 13:57 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=21403
Bug ID: 21403
Summary: provide something like ppfunc() that also provided the
class name of the function
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: translator
Assignee: systemtap at sourceware dot org
Reporter: dsmith at redhat dot com
Target Milestone: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug translator/21403] provide something like ppfunc() that also provided the class name of the function
2017-04-20 13:57 [Bug translator/21403] New: provide something like ppfunc() that also provided the class name of the function dsmith at redhat dot com
@ 2017-04-20 19:51 ` dsmith at redhat dot com
2017-05-09 0:02 ` fche at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: dsmith at redhat dot com @ 2017-04-20 19:51 UTC (permalink / raw)
To: systemtap
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug translator/21403] provide something like ppfunc() that also provided the class name of the function
2017-04-20 13:57 [Bug translator/21403] New: provide something like ppfunc() that also provided the class name of the function dsmith at redhat dot com
2017-04-20 19:51 ` [Bug translator/21403] " dsmith at redhat dot com
@ 2017-05-09 0:02 ` fche at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2017-05-09 0:02 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=21403
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |fche at redhat dot com
Resolution|--- |DUPLICATE
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
Closely related.
*** This bug has been marked as a duplicate of bug 14832 ***
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-09 0:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20 13:57 [Bug translator/21403] New: provide something like ppfunc() that also provided the class name of the function dsmith at redhat dot com
2017-04-20 19:51 ` [Bug translator/21403] " dsmith at redhat dot com
2017-05-09 0:02 ` fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).