I have tried to use the ltrace. I tried to use the following command to profile the library.so file which is used by a program sampleapp
, ltrace -c -T --library=library.so --output=out.txt ./SampleApp
. But it shows the above error. But library.so is a debug build. So the symbol table should be there. I have tried to verify it with objdump --source library.so | grep CreateSocket()
. It returns codes that uses that CreateSocket() function. Which means it contains a symbol table. Than why that error occurs?
Related post: measure CPU usage per second of a dynamically linked library