[patch] SPU gprof support

Ken Werner ken@linux.vnet.ibm.com
Thu Nov 27 20:47:00 GMT 2008


this patch adds initial support for the GNU profiler on the SPU. The flat 
profile is based on a histogram that is created using the sampling mechanism 
provided by spu_timer.h (http://sourceware.org/ml/newlib/2008/msg00316.html). 
For the call graph the compiler generates a particular prologue that causes 
every function to call _mcount. The call graph is stored in PPU memory using 
the named address space support 



2008-11-26  Ken Werner  <ken.werner@de.ibm.com

        * spu/crt0.S: Call __monstartup if profiling is enabled.
        * spu/Makefile.in: Add gcrt1.o gcrt2.o.


2008-11-26  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
        * libc/machine/spu/spu-gmon.c: New file.
        * libc/machine/spu/spu-mcount.S: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spu_gprof.patch
Type: text/x-diff
Size: 17980 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20081127/8fb7539d/attachment.bin>

More information about the Newlib mailing list