How to trace a c++ function like a::b::c in trace.py ?
You need to use the mangled name of the function. I usually run objdump -tT myfile to find the desired symbol name.
Alternatively, defined a USDT Tracepoint in the function for more stable probe and better experience.
Thank you, mangled name works. Using USDT Tracepoint may a easy way for debugging!
Most helpful comment
You need to use the mangled name of the function. I usually run
objdump -tT myfileto find the desired symbol name.