Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4366263ybv; Mon, 10 Feb 2020 18:00:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwhHCvNlPonvXnGM66h1nvRyUV6tLPs6WMoyK5qiSCEkDsApYtANficZJV9/9svuFNyzYlI X-Received: by 2002:a05:6808:a8a:: with SMTP id q10mr1414948oij.66.1581386412426; Mon, 10 Feb 2020 18:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581386412; cv=none; d=google.com; s=arc-20160816; b=V4bPx3sTtiV8FCZMpraaM8Io+4WbW7xhaaybu4pPz9oQh0hHEaYOqv8uFMRqJRHd12 8XMmkCKUGZL5vqpEe1PvTlfe+vSdHwBeyCoHSopEI40w0DmI0YFlVPOxd7pxTOQGzLXC itJOY8F79CUw+PtBXI3e1TWK4oChtT+KuQr+3CR/InhaFxMqzyO1fsy4PhXULQxooKVw wkVEoi1J9D0T703MaQj199xblaumJNQ+cw854dCtE2UohkniHz9WLHjD80c8mOTkCSvZ FlWryeXjLyCU8qF3onKgLMdrIV/WD+9mTdGnYGdZng0bjxY82E1vavvIRKLDkQ1YixFL Y4xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VTRLrVu8NPIWZOowVpmaLAmmNijSXisL9mAayR7ORII=; b=paqrudrZBR29oEIk7mzRU1S9F5tfu5qjMD9LRBE01xHI1p+VHF5QYBP3Gp+OLS/vD+ 8VNCp3I1tsw0xXxUuB/GU8oCJi8iafDCz0y3JHzOaf58SU/16GeWtfqQ4ch/axkDIBbp l6uIA61Z3p4fJCZL7lhV4VdhkhMUdZe39v9lXAvD9uP0epftb+CANd2v8tkDk8QXDxMc s/9+B0wuF+jFFDxhGKyR/Fa3isXn4ziBbUq89rs8JikRuLpUCP4gcy8g2sVoR4vFeQgV ls7Uhnixlg/j06PiBdBeOLRLwV9JLLrFrW80jq+pgEgqvjkZtj+zKWStsnJpwxr1fEm4 lrgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190si1097841oig.229.2020.02.10.18.00.01; Mon, 10 Feb 2020 18:00:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbgBKBtD (ORCPT + 99 others); Mon, 10 Feb 2020 20:49:03 -0500 Received: from mga09.intel.com ([134.134.136.24]:9430 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727505AbgBKBtD (ORCPT ); Mon, 10 Feb 2020 20:49:03 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2020 17:49:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,427,1574150400"; d="scan'208";a="405790353" Received: from yjin15-mobl.ccr.corp.intel.com (HELO [10.249.160.130]) ([10.249.160.130]) by orsmga005.jf.intel.com with ESMTP; 10 Feb 2020 17:48:59 -0800 Subject: Re: [PATCH] perf stat: Show percore counts in per CPU output To: Jiri Olsa , Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, kan.liang@intel.com, yao.jin@intel.com References: <20200206015613.527-1-yao.jin@linux.intel.com> <20200210132804.GA9922@krava> <20200210140120.GD9922@krava> <20200210170159.GV302770@tassilo.jf.intel.com> <20200210210419.GD36715@krava> From: "Jin, Yao" Message-ID: Date: Tue, 11 Feb 2020 09:48:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200210210419.GD36715@krava> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/2020 5:04 AM, Jiri Olsa wrote: > On Mon, Feb 10, 2020 at 09:01:59AM -0800, Andi Kleen wrote: >>>> With --percore-show-thread, CPU0 and CPU4 have the same counts (CPU0 and >>>> CPU4 are siblings, e.g. 2,453,061 in my example). The value is sum of CPU0 + >>>> CPU4. >>> >>> so it shows percore stats but displays all the cpus? what is this good for? >> >> This is essentially a replacement for the any bit (which is gone in Icelake). >> Per core counts are useful for some formulas, e.g. CoreIPC >> >> The original percore version was inconvenient to post process. This >> variant matches the output of the any bit. > > I see, please put this to the changelog/doc > > thanks, > jirka > Thanks Jiri, thanks Andi! I will put the explanation in v2. Thanks Jin Yao