bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gprof 2.14 glitches w/ powerpc elf binaries


From: Njuguna Njoroge
Subject: Re: gprof 2.14 glitches w/ powerpc elf binaries
Date: Thu, 26 Aug 2004 19:01:21 -0700

Hi Nick,

> >>Failing that if you can
> >>create a small, reproducible test case we can try to look into it ourselves.
>
> > Do you want the binary (elf file) and the gmon.out file?
>
> Actually we would prefer a small source file and a simple makefile to
> build and run it.  That way we can debug the executable as it is running
> if necessary.
>

We did not use gprof in the conventional manner. We captured an assembly code
trace of the program  running in standalone mode on a ppc405 processor using a
Agilent's/IBM trace port analyzer. I wrote a Perl script that converts the trace
file into a gmon.out format. Someone else here at Xilinx wrote a similar
application that converted a trace file (of a different format) to a gmon.out
format. We both found out that gprof tacks on functions that were never 
executed.
Each address had its own histogram bin, so there can't be any issues of crossing
function boundaries in the bins. I have attached the .elf binary file and the
gmon.out file (to be used on a little endian machine like a linux x86). treck 
elf
never uses functions like memcpy or Letext, which appear in gprof's histogram 
and
c-g tables.

Thanks,

Nju

Attachment: treck_lin.out
Description: application/unknown-content-type-out_auto_file

Attachment: treck.elf
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]