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@krava 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 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/