From owner-freebsd-sparc64@FreeBSD.ORG Mon Feb 6 21:02:10 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81AB616A420 for ; Mon, 6 Feb 2006 21:02:10 +0000 (GMT) (envelope-from toa@pop.agri.ch) Received: from exsmtp01.agrinet.ch (exsmtp01.agrinet.ch [81.221.250.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4C9E43D46 for ; Mon, 6 Feb 2006 21:02:09 +0000 (GMT) (envelope-from toa@pop.agri.ch) Received: from smtp.messaging.ch ([10.50.252.215]) by exsmtp01.agrinet.ch with Microsoft SMTPSVC(6.0.3790.211); Mon, 6 Feb 2006 22:02:07 +0100 Received: from [192.168.225.5] ([80.219.88.141]) by smtp.messaging.ch with id uM2b1T00132ylCo0000000 for freebsd-sparc64@freebsd.org; Mon, 06 Feb 2006 22:02:36 +0100 X-IMP: RBL SPAMCOP: 0.00, RBL SORBS: 0.10, RBL SBL+XBL: 0.00, RBL MAPS_ORDB: 0.00, URL RHS: 0.00, URL SURBL: 0.00 Message-ID: <43E7B94E.3070805@pop.agri.ch> Date: Mon, 06 Feb 2006 22:02:06 +0100 From: Andreas Tobler User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Marius Strobl 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> In-Reply-To: <20060205175656.S68720@newtrinity.zeist.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Feb 2006 21:02:07.0945 (UTC) FILETIME=[9727A390:01C62B60] Cc: freebsd-sparc64@freebsd.org Subject: Re: profiling with cc X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2006 21:02:10 -0000 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.