From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39E6AC352A3 for ; Mon, 10 Feb 2020 17:02:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19D3820715 for ; Mon, 10 Feb 2020 17:02:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727970AbgBJRCB (ORCPT ); Mon, 10 Feb 2020 12:02:01 -0500 Received: from mga04.intel.com ([192.55.52.120]:61615 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgBJRCA (ORCPT ); Mon, 10 Feb 2020 12:02:00 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2020 09:02:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,425,1574150400"; d="scan'208";a="227234450" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by fmsmga008.fm.intel.com with ESMTP; 10 Feb 2020 09:02:00 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id CDBC8300503; Mon, 10 Feb 2020 09:01:59 -0800 (PST) Date: Mon, 10 Feb 2020 09:01:59 -0800 From: Andi Kleen To: Jiri Olsa Cc: "Jin, Yao" , 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 Subject: Re: [PATCH] perf stat: Show percore counts in per CPU output Message-ID: <20200210170159.GV302770@tassilo.jf.intel.com> References: <20200206015613.527-1-yao.jin@linux.intel.com> <20200210132804.GA9922@krava> <20200210140120.GD9922@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210140120.GD9922@krava> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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. -Andi