Re: [PATCH 04/31] perf, core: Add generic intx/intx_checkpointedcounter modifiers

From: Peter Zijlstra
Date: Fri Sep 28 2012 - 11:19:23 EST


On Fri, 2012-09-28 at 16:53 +0200, Andi Kleen wrote:
> If I moved this into sysfs this would imply that the perf stat -T
> code would become Haswell specific. As far as I understand normally
> you guys don't want things like that. Would everyone be ok with
> having specific code there?

Have a look at /sys/bus/event_source/devices/cpu/format/*, that's
already very hardware specific.

What I suggested is something like:

PMU_FORMAT_ATTR(intx, "config:32");
PMU_FORMAT_ATTR(intx_cp "config:33");

For the HSW+ cpus. That should be enough for userspace to create such
events.
--
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/