From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256AbdHVVAq (ORCPT ); Tue, 22 Aug 2017 17:00:46 -0400 Received: from mga07.intel.com ([134.134.136.100]:24845 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbdHVVAp (ORCPT ); Tue, 22 Aug 2017 17:00:45 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,413,1498546800"; d="scan'208";a="142783161" Date: Tue, 22 Aug 2017 14:00:43 -0700 From: Andi Kleen To: Jiri Olsa Cc: Andi Kleen , acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 05/19] perf, tools: Support weak groups Message-ID: <20170822210043.GB28715@tassilo.jf.intel.com> References: <20170811232634.30465-1-andi@firstfloor.org> <20170811232634.30465-5-andi@firstfloor.org> <20170822083608.GE23985@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170822083608.GE23985@krava> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > also if I put 'cycles' instead of the l2_rqsts.all_code_rd, > I get clean open but 'not counted' as result.. I wonder > there's some counter scheduling issue > > [root@krava perf]# ./perf stat -v -e '{branches,branch-misses,l1d.replacement,l2_lines_in.all,cycles}:W' -a sleep 1 > Using CPUID GenuineIntel-6-3D > l1d.replacement -> cpu/umask=0x1,period=2000003,event=0x51/ > l2_lines_in.all -> cpu/umask=0x7,period=100003,event=0xf1/ > branches: 0 4004293853 0 > branch-misses: 0 4004293853 0 > l1d.replacement: 0 4004293853 0 > l2_lines_in.all: 0 4004293853 0 > cycles: 0 4004293853 0 > > Performance counter stats for 'system wide': > > branches (0.00%) > branch-misses (0.00%) > l1d.replacement (0.00%) > l2_lines_in.all (0.00%) > cycles (0.00%) > > 1.001088589 seconds time elapsed Cannot reproduce on my system Does it work without group or a normal group? ./perf stat -v -e '{branches,branch-misses,l1d.replacement,l2_lines_in.all,cycles}:W' Using CPUID GenuineIntel-6-3E l1d.replacement -> cpu/umask=0x1,period=2000003,event=0x51/ l2_lines_in.all -> cpu/umask=0x7,period=100003,event=0xf1/ ^Cbranches: 105004611 27393959413 27393959413 branch-misses: 5854172 27393959413 27393959413 l1d.replacement: 13935607 27393959413 27393959413 l2_lines_in.all: 24987238 27393959413 27393959413 cycles: 1259015810 27393959413 27393959413 Performance counter stats for 'system wide': 105,004,611 branches 5,854,172 branch-misses # 5.58% of all branches 13,935,607 l1d.replacement 24,987,238 l2_lines_in.all 1,259,015,810 cycles 2.282966609 seconds time elapsed