Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs

From: Ingo Molnar
Date: Tue May 11 2010 - 03:21:55 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> What we do not want are exhaustive event lists for specific PMU
> implementations, those are best left for userspace.

I'd refine this the following way:

- We mandate proper in-kernel enumeration of all things event sources, for
example /sys/devices/system/node/nodeN/node_events. Obviously an event source
needs to be addressable for it to be useful to userspace.

- We want generalized events expressed in those event containers that
are used commonly. Whatever people find useful we can enumerate and what
is enumerated is an ABI.

- The 'rest' can go into /sys/devices/system/node/nodeN/node_events/raw_event/.
These will never be guaranteed in an ABI way really (although will work in
some cases) - those using raw event codes are really up to themselves and
if it ever gets in the way of proper, more expressive
enumeration/generalization it will have to yield.

These are the ground rules as i see them.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/