Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2008 08:40:15 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Jeff Roberson <jroberson@jroberson.net>
Cc:        Attilio Rao <attilio@freebsd.org>, FreeBSD Arch <arch@freebsd.org>, freebsd-performance@freebsd.org, Joseph Koshy <jkoshy@freebsd.org>
Subject:   Re: [PATCH] pmcannotate tool
Message-ID:  <20081124084015.84153bmq6411va68@webmail.leidinger.net>
In-Reply-To: <20081123135009.I971@desktop>
References:  <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com> <20081123205603.17752y578er4bcqo@webmail.leidinger.net> <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> <20081123135009.I971@desktop>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Jeff Roberson <jroberson@jroberson.net> (from Sun, 23 Nov 2008 =20
13:50:35 -1000 (HST)):

>
> On Mon, 24 Nov 2008, Attilio Rao wrote:
>
>> 2008/11/23, Alexander Leidinger <Alexander@leidinger.net>:
>>> Quoting Attilio Rao <attilio@freebsd.org> (from Sun, 23 Nov 2008 14:02:2=
2
>>> +0100):
>>>
>>>
>>>> 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.
>>>>
>>>
>>> Can this also be used to do some code coverage analysis? What I'm
>>> interested in is to enable something, run some tests in userland, disabl=
e
>>> this something, and then run a tool which tells me which parts of specif=
ic
>>> functions where run or not.
>>
>> Yes, this is exactly what it does.
>> You can see traces for any sampled PC and so get a profiling anslysis
>> on a per-instance basis.
>
> I would add that it is only sampled so you don't see every =20
> instruction executed.  You can use gcov for that however.  That's =20
> precisely what it's for.

How to use gcov for the kernel?

Bye,
Alexander.

--=20
If only you knew she loved you, you could
face the uncertainty of whether you love her.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID =3D B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID =3D 72077137



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