From owner-freebsd-arch@FreeBSD.ORG Fri Apr 10 19:25:51 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 683CD1065675; Fri, 10 Apr 2009 19:25:51 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2A0088FC0C; Fri, 10 Apr 2009 19:25:50 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id C8E9F6D449; Fri, 10 Apr 2009 19:10:37 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id AB056844C6; Fri, 10 Apr 2009 21:10:37 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: =?utf-8?Q?Jean-S=C3=A9bastien_P=C3=A9dron?= References: <49DDCB1D.6080302@FreeBSD.org> Date: Fri, 10 Apr 2009 21:10:37 +0200 In-Reply-To: <49DDCB1D.6080302@FreeBSD.org> (=?utf-8?Q?=22Jean-S=C3=A9bast?= =?utf-8?Q?ien_P=C3=A9dron=22's?= message of "Thu, 09 Apr 2009 12:17:01 +0200") Message-ID: <86vdpcuxxu.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arch@freebsd.org Subject: Re: Build shared profiled library? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2009 19:25:52 -0000 Jean-S=C3=A9bastien P=C3=A9dron writes: > Currently, only static profiled library are built during buildworld. Why > not shared library too? Because - if I understand correctly how gprof works - you wouldn't be able to profile code inside the libraries, unless gprof knew enough about rtld to figure out which libraries were loaded, in which order, at which addresses, and duplicate the relocations. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no