Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 10:40:56 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Harti Brandt <brandt@fokus.gmd.de>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: kernel basic block profiling 
Message-ID:  <1012.1037871656@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 21 Nov 2002 09:38:56 %2B0100." <20021121093752.A36443-100000@beagle.fokus.gmd.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1012.1037871656>