From owner-freebsd-current Mon Jan 6 8:59: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3975F37B401; Mon, 6 Jan 2003 08:59:01 -0800 (PST) Received: from tesla.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F94543EC5; Mon, 6 Jan 2003 08:59:00 -0800 (PST) (envelope-from bmilekic@unixdaemons.com) Received: (from bmilekic@localhost) by tesla.distributel.net (8.11.6/8.11.6) id h06H1so36959; Mon, 6 Jan 2003 12:01:54 -0500 (EST) (envelope-from bmilekic@unixdaemons.com) Date: Mon, 6 Jan 2003 12:01:54 -0500 From: Bosko Milekic To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: HOWTO: Basic-block profiling on -current. Message-ID: <20030106120154.A36924@unixdaemons.com> References: <18868.1041859732@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <18868.1041859732@critter.freebsd.dk>; from phk@freebsd.org on Mon, Jan 06, 2003 at 02:28:52PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 06, 2003 at 02:28:52PM +0100, Poul-Henning Kamp wrote: > > I have committed the bits needed to use GCC's basicblock profiling > on -current. > > Make sure to recompile the kernbb(8) program first. > > Here's an simple example how to profile a single file (vfs_bio.c): > > cd /sys/i386/conf > config YOURKERNEL > cd ../compile/YOURKERNEL > make depend && make all > rm vfs_bio.o > make vfs_bio.o DEBUG="--test-coverage --profile-arcs" > make all && make install > reboot > # run your test. > kernbb > cd /sys/i386/compile/YOURKERNEL > gcov vfs_bio.c > # examine vfs_bio.c.gcov > > If you want to profile multiple files, you just give them all the > same treatment as vfs_bio. > > It's perfectly possible to profile the entire kernel if you want to. Hey Poul-Henning! Thanks! > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. -- Bosko Milekic * bmilekic@unixdaemons.com * bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message