View Single Post
  #2 (permalink)  
Old 07-10-2008, 09:40 PM
=?iso-8859-1?Q?M=E5ns_Rullg=E5rd?=
 
Posts: n/a
Re: LD_PRELOAD related question

Rajesh <rajesh.radhakrishnan@gmail.com> writes:

> Hi,
>
> This question might sound weird but its a long story why I want to do
> this.
>
> I sometimes run my app with a profiling agent 'pre-loaded'. For
> example:
>
> $ env LD_PRELOAD=profiling_agent.so my_app
>
> My question: Inside 'my_app', I want to know if 'profiling_agent.so'
> is running/pre-loaded or not. Can I find out via the /proc interface?


On Linux, /proc/self/maps should contain this information.

--
Måns Rullgård
mans@mansr.com
Reply With Quote