From owner-freebsd-stable@FreeBSD.ORG Wed Nov 5 02:16:08 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99C2C106564A for ; Wed, 5 Nov 2008 02:16:08 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id 70D848FC0A for ; Wed, 5 Nov 2008 02:16:08 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id CAC08190857 for ; Tue, 4 Nov 2008 21:16:07 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 04 Nov 2008 21:16:07 -0500 X-Sasl-enc: UONjGh04e8SVolJ/R0th+hfqo3WAJEOV04jS912ArwQJ 1225851367 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 469CB28A93 for ; Tue, 4 Nov 2008 21:16:07 -0500 (EST) Message-ID: <491101E6.9000903@incunabulum.net> Date: Wed, 05 Nov 2008 02:16:06 +0000 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: FreeBSD stable X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Fwd: Profiling on FreeBSD] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 02:16:08 -0000 I got this response from Robert, the root cause sounds plausible (amd64 vs i386 not preserving ecx). Any chance of an MFC? I see one is pending in the PR. If I can test and verify the change I could MFC. -------- Original Message -------- Subject: Profiling on FreeBSD Date: Wed, 5 Nov 2008 08:47:37 +1100 From: Robert Jenssen To: bms@incunabulum.net Hi, GCC 4 gprof profiling for i386 has been broken on FreeBSD for quite a while. See PR bin/119709. It appears that the fix has been MFC'd recently: $FreeBSD: src/sys/i386/include/profile.h,v 1.42.2.1 2008/10/13 12:45:18 kib Exp $ (I've been successfully using gprof by patching using the code in the PR but haven't rebuilt my system with the above change) Is there a similar problem for AMD64? Cheers, Rob Jenssen