Date: Wed, 8 Feb 2006 17:35:46 +0100 From: Marius Strobl <marius@alchemy.franken.de> To: Andreas Tobler <toa@pop.agri.ch> Cc: freebsd-sparc64@freebsd.org Subject: Re: profiling with cc Message-ID: <20060208173546.D53619@newtrinity.zeist.de> In-Reply-To: <43E8FC6B.50705@pop.agri.ch>; from toa@pop.agri.ch on Tue, Feb 07, 2006 at 09:00:43PM %2B0100 References: <20060205112432.A3868@newtrinity.zeist.de> <43E5D988.2070009@pop.agri.ch> <20060205122153.O68720@newtrinity.zeist.de> <43E5E70D.1090209@pop.agri.ch> <20060205132234.P68720@newtrinity.zeist.de> <43E60F45.4070004@pop.agri.ch> <20060205175656.S68720@newtrinity.zeist.de> <43E7B94E.3070805@pop.agri.ch> <20060207170055.B53619@newtrinity.zeist.de> <43E8FC6B.50705@pop.agri.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 07, 2006 at 09:00:43PM +0100, Andreas Tobler wrote: > > Attached what I have so far. I built a libc_p.a and I can compile some > code with -pg and do some investigations with gprof now. > > Done on an enterprise 2 2x296MHz 896MB. > > FreeBSD enterprise.andreas.nets 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun > Feb 5 08:20:12 CET 2006 > andreast@enterprise.andreas.nets:/usr/obj/home/andreast/devel/src/sys/GENERIC > sparc64 > > What I do not know yet, is the fact, how reliably the figures are. > It should work fine for C functions but the ENTRY macro in sparc64/include/asm.h has to be changed to call _mcount() so profiling info is also gathered for asm functions (e.g. those in libc). > > Would you mind giving me some feedback if the attached is useful/needs > rework? > It has some style issues and inconsitencies (see style(9) and other inline asm in e.g. sparc64/include/cpufunc.h). Otherwise it looks good but probably needs a PIC version of the MCOUNT asm so it also works when compiling with -p. Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060208173546.D53619>