I'm trying to add a perf probe
for a C++ method in my library, but I keep getting the following:
$ perf probe --exec=/path/to/file --add='my::Own::Method'
Semantic error :There is non-digit char in line number.
I've listed the available functions like so:
$ perf probe --funcs --exec=/path/to/file
And tried some C functions that are also included. A probe can be added for these just fine. So I tried the mangled name (e.g. _ZN2my8Own16Method
) and perf probe
says it doesn't exist.
Is there a way around this issue?