Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2008 11:20:48 +0000 (UTC)
From:      Vadim Goncharov <vadim_nuclight@mail.ru>
To:        freebsd-performance@freebsd.org
Subject:   Re: [PATCH] pmcannotate tool
Message-ID:  <slrngjcqsf.2j6c.vadim_nuclight@server.filona.x88.info>
References:  <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Attilio Rao! 

On Sun, 23 Nov 2008 14:02:22 +0100; Attilio Rao wrote about '[PATCH] pmcannotate tool':

> pmcannotate is a tool that prints out sources of a tool (in C or
> assembly) with inlined profiling informations retrieved by a prior
> pmcstat analysis.
> If compared with things like callgraph generation, it prints out
> profiling on a per-instance basis and this can be useful to find, for
> example, badly handled caches, too high latency instructions, etc.
[...]
> objdump is not the only one tool on which pmcannotare rely. Infact, in
> order to have it working, pmcstat needs to be present too because we
> need to retrieve, from the pmcstat raw output, informations about the
> sampled PCs (in particular the name of the function they live within,
> its start and ending addresses). As long as currently pmcstat doesn't
> return those informations, a new option has been added to the tool
> (-m) which can extract (from a raw pmcstat output) all pc sampled,
> name of the functions and symbol bundaries they live within.
[...]

> The patch can be found here:
> http://www.freebsd.org/~attilio/pmcannotate.diff/

> where pmcannotate/ dir contains the code and needs to go under
> /usr/src/usr.sbin/ and the patch has diffs against pmcstat and
> Makefile.

It looks like this the thing I need, please see parallel thread
"hwpmc granularity and 6.4 network performance", I have CPU hog ipfw_chk()
which is 1200+ lines long and want to know which parts are most hogs.

But that part of your patch which is for pmcstat isn't applying to 6.4 :(
Could you please provide another for this ver?

-- 
WBR, Vadim Goncharov. ICQ#166852181       mailto:vadim_nuclight@mail.ru
[Moderator of RU.ANTI-ECOLOGY][FreeBSD][http://antigreen.org][LJ:/nuclight]




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