This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: is there a work around for gprof with shared library?


Alberto Lutgardo <alutgard@brocade.com> writes:

> I am using the following software:
> 
> Linux 2.4.1-mvista-010301
> gcc version 2.95.3
> ld version 2.10.1
> gprof 2.10.1
> 
> Problem:
> 
> gprof is not working with shared library. I like some directions for a work around or how to fix it if there is not a big deal?

If you're using glibc 2.1 or newer, try the following to profile
libc.so.6:

$ LD_PROFILE=libc.so.6 ls
$ sprof libc.so.6 libc.so.6.profile

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]