Re: [RFC] [PATCH] perf: Attaching an event to a specific PMU

From: Peter Zijlstra
Date: Sun Jul 03 2011 - 14:04:54 EST


On Sun, 2011-07-03 at 17:04 +0200, Robert Richter wrote:
>
> this is a prototype implementation for attaching an event to a
> specific PMU. If there is a general acceptance for this approach I
> will create patches for upstream integration and base my current IBS
> patches on it.

But there's already an infrastructure to do this, simply stick the
contents of /sys/bus/event_source/devices/*/type in
perf_event_attr::type and you're done.

I don't see the need for /dev crap.
--
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/