[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150811171341.GD10703@krava.brq.redhat.com>
Date: Tue, 11 Aug 2015 19:13:41 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: Andi Kleen <ak@...ux.intel.com>, acme@...nel.org, jolsa@...nel.org,
linux-kernel@...r.kernel.org, eranian@...gle.com,
namhyung@...nel.org, peterz@...radead.org, mingo@...nel.org
Subject: Re: [PATCH 2/9] perf, tools, stat: Support up-scaling of events
On Tue, Aug 11, 2015 at 07:00:37PM +0200, Andi Kleen wrote:
> > how about existing scale attributes, like in rapl code
>
> I'm using the existing scale attribute, but I need a multiplication,
> not a division. That is why negative scale was redefined to mean
> multiplication.
your new perf tool code (perf/top-down-2 branch) over the rapl counter:
[root@...va perf]# ./perf stat -e 'power/energy-cores/' -I 1000 -a
# time counts unit events
1.000096151 21606019212309954560.00 Joules power/energy-cores/
2.000284710 3411476717733150720.00 Joules power/energy-cores/
3.000455216 12621337955705815040.00 Joules power/energy-cores/
4.000543075 6444651066767179776.00 Joules power/energy-cores/
^C 4.144246923 1705738358866575360.00 Joules power/energy-cores/
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists