Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Feb 2006 22:02:06 +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:  <43E7B94E.3070805@pop.agri.ch>
In-Reply-To: <20060205175656.S68720@newtrinity.zeist.de>
References:  <43E3D228.6060801@pop.agri.ch> <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>

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

> As far as I understand MCOUNT refers to the symbol generated by the
> compiler and _MCOUNT_DECL to the name of the real function in libc.
> As the compiler apparently generates calls to _mcount() on sparc64
> the MCOUNT macro should define _mcount() for userland and _MCOUNT_DECL
> mcount() or maybe better __mcount(). I'm not sure wheter the NetBSD
> asm applies to FreeBSD.
> If you let _MCOUNT_DECL define _mcount() as in your snippet above
> you'll bypass the wrapper on sparc64 altogether.

Ok, my naive assumption that this will be easy, has gone :)

I do not yet understand the build process. Jumping into a 
/usr/src/lib/libc and do a make picks up the system headers and not my 
modified machine/profile.h. Going to /usr/src and do a make -DNO_CLEAN 
all doesn't pick it up either.

What step do I miss? This is on CURRENT.

Thanks,
Andreas

P.S, even a pointer to read all through would be good.



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