linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Profiling Code
@ 1999-09-20  7:48 Sriranga Veeraraghavan
  0 siblings, 0 replies; only message in thread
From: Sriranga Veeraraghavan @ 1999-09-20  7:48 UTC (permalink / raw)
  To: linuxppc-dev



Hi,

I have been trying to profile a small C program under LinuxPPC, but I
can't gprof to run. (I couldn't find prof on my box).

Bascially my make rule for profiling executes the following code:

$ gcc -pg -Wall -pedantic -o prog prog.c

This compiles just fine. When I execute the program it creates the
gmon.out file correctly. If I run gprof against this gmon.out file, I
get a seg fault:

$ gprof prog gmon.out
Segmentation fault

ldd on gprof looks okay:

$ ldd /usr/bin/gprof 
        libbfd-990418.so => /usr/lib/libbfd-990418.so (0x01753000)
        libc.so.6 => /lib/libc.so.6 (0x01611000)
        /lib/ld.so.1 => /lib/ld.so.1 (0x30000000)

I am able to build with profiling on my Solaris box and Linux x86 just
fine (for the exact same program), so I think that I'm not doing
something correctly on PPC.

If anyone has been able profile thier code under LinuxPPC, I would
appreciate some pointers.

Thanks,


----ranga <ranga@soda.berkeley.edu>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-20  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-20  7:48 Profiling Code Sriranga Veeraraghavan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).