Perf Event support for ARMv7 (was: Re: [PATCH 5/5] arm/perfevents: implement perf event support for ARMv6)

Jamie Iles jamie at jamieiles.com
Wed Jan 6 10:30:34 EST 2010


On Wed, Jan 06, 2010 at 04:16:06PM +0100, Michał Nazarewicz wrote:
[snip]
> Since I've just started to investigate the performance counter
> architecture and will probably need to port tools/perf on ARM as well,
> would you care to post any patches of your work in this area? It will
> be greatly appreciated.  I couldn't find any of such patches posted
> anywhere or in the tree.
The patches are in tip/master. 58e9f94138c1d9c47f6a63632ca7a78fc6dcc15f and
cc835752ae3634acd2d487fdf5152f6075f45aef should do the trick. They should also
be in Linus' tree.

> Also, I would like to ask what's the idea behind tools/perf utility
> anyway. As far as I understand it provides only a few generalized
> events and all other events are accessed only via critic r### where
> ### is hardware dependent number.  If that's the case the tools might
> be hard to use since users don't tend to remember such numbers.  This
> means that perf would require some kind of front-end which would
> provide a nice textual description for those mysterious r###.
True. However, for simple profiling, cycle counts are often enough plus all of
the software events are always available. I do wonder if it would be worth
having a mechanism for implementations to register a list of supported events
with the perf subsystem that could be exported through debugfs. The perf tools
could then read this to produce the list of events and would show all events
that were available.

Jamie



More information about the linux-arm-kernel mailing list