From owner-freebsd-hackers Thu Nov 21 1:41:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 625D537B401 for ; Thu, 21 Nov 2002 01:41:15 -0800 (PST) Received: from critter.freebsd.dk (esplanaden.cybercity.dk [212.242.40.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CC6C43E42 for ; Thu, 21 Nov 2002 01:41:12 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gAL9euew001013; Thu, 21 Nov 2002 10:40:56 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Harti Brandt Cc: hackers@FreeBSD.ORG Subject: Re: kernel basic block profiling In-Reply-To: Your message of "Thu, 21 Nov 2002 09:38:56 +0100." <20021121093752.A36443-100000@beagle.fokus.gmd.de> Date: Thu, 21 Nov 2002 10:40:56 +0100 Message-ID: <1012.1037871656@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20021121093752.A36443-100000@beagle.fokus.gmd.de>, Harti Brandt wri tes: >${subject} seems not to work on -current. First of all 'man kernbb' tells >me to compile at least one kernel file with '-a'. Well, gcc tells me that >it doesn't know anything about '-a'. After some grepping in the gcc >sources I came to the conclusion, that -fprofile-arcs is what it wants. >But even then 'kernbb' gives me nothing on the new kernel and gdb shows >bbhead to contain a 0. As far as I could figure out, the profile-arcs uses >a ctor section and I somehow doubt, that this works in the kernel case. > >So, is ${subject} usable on current or is it just a stale feature? I havn't checked it lately, but it should be brought to work again I think, it is a very valuable provider of insight into what code is really executed. -- 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message