Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3929789ybv; Mon, 10 Feb 2020 09:02:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxFJ+8UW2YAsCdMTEgdIxWPhRzjFr8hHbUiDKyTz6LzOWUOyzfm6HP6Gxp0ANe/SajehVZr X-Received: by 2002:aca:c0c5:: with SMTP id q188mr1340552oif.169.1581354146197; Mon, 10 Feb 2020 09:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581354146; cv=none; d=google.com; s=arc-20160816; b=YidIgzWKEDYVDGgXDWUM7hZ387d91XpAx0UOpDjb25ijx8/O1mwb9oWrbQWxs9FoIw 6dRUWCA3D9x9yDaofsTd/f0syuaRIDMLU6SNISB6TY/e9PV2cybnbKtyPJv130MJcmzF 4fx4gei+7RfKf+GdaHnW1U56J20UrPa1vt6g5CEL1F2jxKNcqTuPHqzX7jqI0iWvgpse WeztMC8Ofpd8RnH68o/ypmnvoeJqIg1ij2k+bMv2qALjlYNfTS3aw+JhjnhTFp+3WnVe mgbUURCZtDlc7a4GO0GwtEUxkE9j80wsmUBtbyAOD2mteJ6OO8jDldY2CMIg+aMJShOh D+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IkRIaxR23cI6uSJWdZsibJrpJypZ+VkJYBhZfCUGHXw=; b=GsADYYcWGMPG23v0SFKzanhiKlpiUrJLpB8EztEFGmnUoh1JDK+uN1+tiDK854PTRd zRZ9qM3G8fjH3lcntweekyTX/pvo+3zeAVMvnpoNJQIfTKI5VkosdxQMRDpRKSLv+hNW gt7P18c3elvyYuRoJHNV5/LoRuQvUAqPeJiSTL1T3XNQL0rrM2wvU15hyk/+NhOygF4B sClKN4c4nAQuaI0LKk6zH4Ije9MHbeqOHkT2h8uY8QGusXOtaGb+4rnCoGjtBPBShxKO xcJ3iYa4HffAxpY8+pTNbkwxtHpmJbvbtwiojdb5mG3hXgv/4gGcN9ydFDQpcerEVs7r jcyg== 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 r67si407329oie.145.2020.02.10.09.02.13; Mon, 10 Feb 2020 09:02:26 -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 S1727930AbgBJRCB (ORCPT + 99 others); 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