[RFC] Extending ARM perf-events for multiple PMUs

Peter Zijlstra peterz at infradead.org
Tue Apr 12 06:30:28 EDT 2011


On Tue, 2011-04-12 at 15:39 +0800, Ming Lei wrote:
> > I just haven't figured out a way to dynamically add files/directories
> 
> Seems not very difficult, we have pmu_bus already, so introduce the
> .match to find driver according device name, then implement a
> driver for the pmu device to add this needed attributes(files).

It probably isn't very hard, but I'm not sysfs/driver skilled and
haven't been able to put a lot of time in.

> > in the whole struct device sysfs muck (that also pleases the
> > driver/sysfs folks). Nor have we agreed on a sane layout for such
> > events there.
> 
> You mean we can find this event names here and pass them to perf -e ? 

That's the purpose yes. The intermediate problem is how to represent
these events in the sysfs hierarchy such that not every pmu
implementation does it differently.




More information about the linux-arm-kernel mailing list