An executable file, a.out, loads the shared libraries 1.so, 2.so and 3.so. There is a function func() implemented in each of the three libraries. When func() is invoked, I want to identify, which implementation of func() is executed.
I tried ltrace on the PID of the executable file. It only lists the func() call, but not the shared library.
Any suggestions?
Using systemtap:
Use it with:
With linux perf: