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.
(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.)
Closely related. *** This bug has been marked as a duplicate of bug 14832 ***