Hi Gopal, Just export LD_DEBUG environment variable
and run your binary as shown below. # export LD_DEBUG=libs # <run your app> See ld.so(8) man pages for details. Regards, Prasanth. From:
kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Gopala Krishna Hi, Is there any way to findout: what are all the libraries referred during life time of the process. I
found ltrace command which would provide what are all the APIs referred during
life of process. This much of granularity is not required for me. I also could
understand we can get mapping in /proc/pid/maps which list the shared library
mappings during life of the process. My requirement is: I need to findout all the shared libraries used by a process and it's
children. If sombody uses some shared library using dl_open, I should be in a
position to findout. Is it possible to trace the process we are interested ,
and get a signal when it exits and kill the process once we get the statics of
libraries used?. What happens if there are so many shared libraries referred
during short interval(using dlopen/dlclose) and had to remove to make a
room for other mapped shared libraries. Will such statics be retained in
/proc/pid/maps? Thanks in advance for your respopnse!. Regards, Gopal. |