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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/