From owner-freebsd-current@FreeBSD.ORG Fri Nov 30 02:42:55 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96BFB16A420 for ; Fri, 30 Nov 2007 02:42:55 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 675B813C461 for ; Fri, 30 Nov 2007 02:42:55 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAU2gsf5005756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 29 Nov 2007 18:42:55 -0800 X-Auth-Received: from dzihan.cs.washington.edu (dzihan.cs.washington.edu [128.208.4.96]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAU2gsq4031685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 29 Nov 2007 18:42:54 -0800 Message-ID: <474F78AE.5070107@u.washington.edu> Date: Thu, 29 Nov 2007 18:42:54 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (X11/20071003) MIME-Version: 1.0 To: freebsd-current@FreeBSD.org References: <200711292024.lATKOq5R000769@freefall.freebsd.org> <20071129233842.GA57951@ace.netcins.ceid.upatras.gr> In-Reply-To: <20071129233842.GA57951@ace.netcins.ceid.upatras.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.29.182724 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: gprof's broken in 7-CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 02:42:55 -0000 Nikos Ntarmos wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, Nov 29, 2007 at 08:24:52PM +0000, Luoqi Chen wrote: > >>> And to think that I mentioned this problem 5-6 months ago with gcc 4.2.x >>> and now it finally gets publicity... >>> >> Did I just hear someone volunteered to be a guinea pig? >> >> Garrett, would you like to try out my fix? It's actually quite simple, >> >> > [...] > >> This file is in the kernel tree, but the change only affects libc build. >> If you don't want to redo a world build, you may copy the patched profile.h >> to /usr/include/machine and "make all install" inside /usr/src/lib/libc. >> Then re-link -pg compiled code and try it out. >> > > Hi again. > > I couldn't wait for Garrett :) so I went on and tested your patch and > gprof seems to work fine for me (at least for the executables I was > interested in profiling anyway). This is i386 on a 7.0-BETA3 kernel and > 7.0-BETA1 world. What are the chances for this to be committed in time > for 7.0R? > > Thanks. > > \n\n > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4 (FreeBSD) > Comment: Nikos Ntarmos > > iD8DBQFHT02Cm6J1ac+VFgoRAnaVAJ9n/WZY2nJU4Ym5qUFOBvg38p0lXQCfYDwT > moIVew3+UhMLXLuJGEZd6HM= > =J8RG > -----END PGP SIGNATURE----- > I'll be sure to give it a toss when I get back home. I'd expect a reply sometime tomorrow morning (PST).. Thanks again for all of your work! -Garrett