Bcc: probe of c++ function

Created on 25 Sep 2017  路  3Comments  路  Source: iovisor/bcc

How to trace a c++ function like a::b::c in trace.py ?

Most helpful comment

You need to use the mangled name of the function. I usually run objdump -tT myfile to find the desired symbol name.

All 3 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

butterl picture butterl  路  6Comments

alvenwong picture alvenwong  路  7Comments

rjmccabe3701 picture rjmccabe3701  路  9Comments

brendangregg picture brendangregg  路  4Comments

avgsg picture avgsg  路  6Comments