Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Feb 2006 19:01:58 +0100
From:      Andreas Tobler <toa@pop.agri.ch>
To:        Marius Strobl <marius@alchemy.franken.de>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: profiling with cc
Message-ID:  <43EA3216.2030606@pop.agri.ch>
In-Reply-To: <20060208173546.D53619@newtrinity.zeist.de>
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> <20060208173546.D53619@newtrinity.zeist.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Marius Strobl wrote:

> 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).

Ok, need to find out how.

> 
>> 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.

Thanks, for the comments. I try to address them, I need some doc and 
code reading then. I'm new to your style guide. I hope the code in cvs 
is worth as example ;)


[enterprise:~] andreast% cc -p hello hello.c
consider using `-pg' instead of `-p' with gprof(1)
....

Well it spits some errors, so I guess you're correct regarding the pic 
variant.

Thanks again,
Andreas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43EA3216.2030606>