From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752541AbdIAR0X (ORCPT ); Fri, 1 Sep 2017 13:26:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36958 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752522AbdIAR0V (ORCPT ); Fri, 1 Sep 2017 13:26:21 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8C6E1C056819 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jolsa@redhat.com Date: Fri, 1 Sep 2017 19:26:18 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org Subject: Re: Support standalone metrics and metric groups for perf Message-ID: <20170901172618.GA30560@krava> References: <20170831194036.30146-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170831194036.30146-1-andi@firstfloor.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 01 Sep 2017 17:26:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 31, 2017 at 12:40:25PM -0700, Andi Kleen wrote: SNIP > > % perf stat -M Summary --metric-only -a sleep 1 > > Performance counter stats for 'system wide': > > Instructions CLKS CPU_Utilization GFLOPs SMT_2T_Utilization Kernel_Utilization > 317614222.0 1392930775.0 0.0 0.0 0.2 0.1 > > 1.001497549 seconds time elapsed > > % perf stat -M GFLOPs flops > > Performance counter stats for 'flops': > > 3,999,541,471 fp_comp_ops_exe.sse_scalar_single # 1.2 GFLOPs (66.65%) > 14 fp_comp_ops_exe.sse_scalar_double (66.65%) > 0 fp_comp_ops_exe.sse_packed_double (66.67%) > 0 fp_comp_ops_exe.sse_packed_single (66.70%) > 0 simd_fp_256.packed_double (66.70%) > 0 simd_fp_256.packed_single (66.67%) looks like some events are probably crossing some output boundaries we have: [jolsa@krava perf]$ sudo ./perf stat -M SMT -I 1000 # time counts unit events 1.000565706 408,879,985 inst_retired.any # 0.7 CoreIPC (66.68%) 1.000565706 1,120,999,114 cpu_clk_unhalted.thread_any (66.68%) 1.000565706 701,285,312 cycles (66.68%) 1.000565706 1,148,325,740 cpu_clk_unhalted.thread_any # 574162870.0 CORE_CLKS (66.67%) 1.000565706 711,565,247 cpu_clk_unhalted.thread (66.66%) 1.000565706 24,057,590 cpu_clk_thread_unhalted.one_thread_active # 0.3 SMT_2T_Utilization (66.67%) 1.000565706 65,753,475 cpu_clk_thread_unhalted.ref_xclk_any (66.67%) ^C 1.349436822 21,198,385 inst_retired.any # 0.1 CoreIPC (66.70%) 1.349436822 112,740,282 cpu_clk_unhalted.thread_any (66.70%) 1.349436822 84,509,414 cycles (66.70%) 1.349436822 108,181,315 cpu_clk_unhalted.thread_any # 54090657.5 CORE_CLKS (66.62%) 1.349436822 79,700,353 cpu_clk_unhalted.thread (66.61%) 1.349436822 3,911,698 cpu_clk_thread_unhalted.one_thread_active # 0.8 SMT_2T_Utilization (66.69%) 1.349436822 14,739,671 cpu_clk_thread_unhalted.ref_xclk_any (66.69%) could you please check on that and maybe shift the alignment for the longest name? thanks, jirka