Re: [PATCH 2/3] introduce intel_rapl driver

From: Matt Fleming
Date: Thu Jun 02 2011 - 04:04:34 EST


On Thu, 26 May 2011 11:55:38 +0100
Matt Fleming <matt@xxxxxxxxxxxxxxxxx> wrote:

> On Thu, May 26, 2011 at 11:43:23AM +0200, Peter Zijlstra wrote:
>
> > If you expect you actually want to sample, use this event as part of a
> > group and add a sampling event in there and use PERF_FORMAT_GROUP, Matt
> > was working on patches to make perf-record capable of this.
>
> Yep, I have some unfinished patches around here somewhere...
>
> *rummage*
>
> OK, they're in this repository on the perf/group-events branch,
>
> git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/sh-2.6.git
>
> Obviously since I last touched them in November of last year they're
> more than likely not going to apply cleanly to tip, and perhaps more
> importantly, I don't think I ever submitted them to LKML for review.

OK, my previous patches didn't apply at all and I had to rewrite them.
This is what I came up with. It's not quite finished (it's missing
perf-report changes) but should be enough to get you started if indeed
you need this functionality. I've only touched the perf-record code but
it should be trivial to add support to builtin-stat.c.

-------->8--------