From owner-freebsd-current@FreeBSD.ORG Thu Nov 29 23:38:47 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 7E05316A421 for ; Thu, 29 Nov 2007 23:38:47 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id E6FB813C448 for ; Thu, 29 Nov 2007 23:38:45 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 6E342EB4F54 for ; Fri, 30 Nov 2007 01:38:44 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 55D58158584 for ; Fri, 30 Nov 2007 01:38:44 +0200 (EET) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fE+ClHueVzi2 for ; Fri, 30 Nov 2007 01:38:44 +0200 (EET) Received: from ace.netcins.ceid.upatras.gr (vfppp079167010191.dsl.hol.gr [79.167.10.191]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 12A66158529 for ; Fri, 30 Nov 2007 01:38:44 +0200 (EET) Received: by ace.netcins.ceid.upatras.gr (Postfix, from userid 1001) id 9F7BA3F457; Fri, 30 Nov 2007 01:38:42 +0200 (EET) Date: Fri, 30 Nov 2007 01:38:42 +0200 From: Nikos Ntarmos To: freebsd-current@FreeBSD.org Message-ID: <20071129233842.GA57951@ace.netcins.ceid.upatras.gr> Mail-Followup-To: freebsd-current@FreeBSD.org References: <200711292024.lATKOq5R000769@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <200711292024.lATKOq5R000769@freefall.freebsd.org> Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) 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: Thu, 29 Nov 2007 23:38:47 -0000 -----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-----