4

I wrote different two different types of queues. Bundled them in different .sos. I have a driver main.c which tests functions offered by those queues. main.c makes use dlfcn.h to load, unload required library at run-time. Both the implementations of queue make use of standard library functions.

I wish to list number of mallocs and frees made by my library. So I did ltrace -c ./exe.out but, it could not catch any standard library calls made by my dlopen()ed libraries. All that ltrace could tap in was dl*() calls.

I checked SEE ALSO part of man ltrace and so read man ltrace.conf too. But the manual itself is bit obfuscated for beginners like me!

  • How to trace calls made by dlopen()ed libraries using ltrace utility?
  • Does configuring /etc/ltrace.conf help me deal this situation?
2
  • What version of ltrace are you using? Commented Jun 30, 2021 at 11:48
  • @StephenKitt, I am using ltrace 0.7.0 edit: am using 0.7.3 version Commented Jun 30, 2021 at 12:35

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.