From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965496AbbHKRNs (ORCPT ); Tue, 11 Aug 2015 13:13:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36565 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965269AbbHKRNr (ORCPT ); Tue, 11 Aug 2015 13:13:47 -0400 Date: Tue, 11 Aug 2015 19:13:41 +0200 From: Jiri Olsa To: Andi Kleen Cc: Andi Kleen , acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, namhyung@kernel.org, peterz@infradead.org, mingo@kernel.org Subject: Re: [PATCH 2/9] perf, tools, stat: Support up-scaling of events Message-ID: <20150811171341.GD10703@krava.brq.redhat.com> References: <1438995985-13631-1-git-send-email-andi@firstfloor.org> <1438995985-13631-3-git-send-email-andi@firstfloor.org> <20150811132532.GB1942@krava.brq.redhat.com> <20150811133805.GD4524@tassilo.jf.intel.com> <20150811135437.GB10703@krava.brq.redhat.com> <20150811170036.GG1747@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150811170036.GG1747@two.firstfloor.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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