From owner-freebsd-current@FreeBSD.ORG Sat Dec 1 16:59:53 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 D4D6E16A418 for ; Sat, 1 Dec 2007 16:59:53 +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 4B88C13C447 for ; Sat, 1 Dec 2007 16:59:53 +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 D2572EB4B24 for ; Sat, 1 Dec 2007 18:59:51 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id B8524158A43 for ; Sat, 1 Dec 2007 18:59:51 +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 lYQK1JcLjeqO for ; Sat, 1 Dec 2007 18:59:51 +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 DB820158AF8 for ; Sat, 1 Dec 2007 18:59:50 +0200 (EET) Received: by ace.netcins.ceid.upatras.gr (Postfix, from userid 1001) id 515863F40F; Sat, 1 Dec 2007 18:59:47 +0200 (EET) Date: Sat, 1 Dec 2007 18:59:46 +0200 From: Nikos Ntarmos To: freebsd-current@freebsd.org Message-ID: <20071201165946.GA13320@ace.netcins.ceid.upatras.gr> Mail-Followup-To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: 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) 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: Sat, 01 Dec 2007 16:59:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Nov 30, 2007 at 02:49:35PM -0800, Garrett Cooper wrote: > On Nov 30, 2007, at 12:21 PM, Steve Kargl wrote: > > >On Fri, Nov 30, 2007 at 12:10:56PM -0800, Garrett Cooper wrote: > >> > >> Still doesn't work with pkg_install, unless I'm doing something > >>incorrectly. Says something like '{blah} not in executable format' > >>when I try and execute gprof as follows: > >> > >>gprof pkg_info.gmon > >> > > > >Have you read the manpage for gprof? Those little square brackets > >are important. > > > >-- > >Steve > > > Sorry -- forgot to mention that I tried gprof `which pkg_info` > pkg_info.gmon and that didn't work either.. I just finished a cvsup/buildworld/installworld cycle and tried executing a CFLAGS+=-pg compiled version of pkg_info. Except from the (initially confusing) fact that pkg_info chdir(2)'s into every port's directory under /var/db/pkg and thus pkg_info.gmon is created in the dir of the last visited port, gprof didn't segfault or whatever. However, I now see an artifact, not present previously in my BETA1 world: .mcount seems to be taking the best part of the time percentage in the flat profile section. FYI I've done a 'pkg_info -a >/dev/null' and put the output of 'gprof /path/to/profiled/pkg_info pkg_info.gmon' online at http://ntarmos.dyndns.org/Misc/pkg_info.gprof. I also see this with my other -pg compiled code, so this is due to either something that changed between BETA1 and now, or some of the (just rebuilt) libraries taking up the change in profile.h. \n\n -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Nikos Ntarmos iD8DBQFHUZMCm6J1ac+VFgoRAjMeAJ4qVPTlpRO6oDAbOHJZ9HM6UqyiZQCfbyaD IYv5wg9GrEfy830POXK7geU= =FdK5 -----END PGP SIGNATURE-----