Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1637404ybk; Thu, 14 May 2020 14:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv/Nn0ZOx6XwNFzt3TKMRtoSZahb6NGTIc04hazVyXFb+fJfVpHS6h57ez1vf+yNCjwEfp X-Received: by 2002:aa7:daca:: with SMTP id x10mr14013eds.59.1589490412773; Thu, 14 May 2020 14:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589490412; cv=none; d=google.com; s=arc-20160816; b=DmWSdbJsn2sWMkqnrDx2v/zqkG/EeyUh4kw790+NsNknZRVuhjZoXkXpELWObxaequ X5HBXrI/9cl10xkVHdJxW69yu0ce4IaEiJST+bBEc5BgkeO3QpdWh+p1V3fQGUxYvgll ZKCb4ptqgsmyTkMaeeCg5rhAx78dUvWivLbY9USFG9NqqGhnAQRYnlTqqUVOMxtv8JgN 62SIVGbDKCRw0oOQqe7kLWqE52XIc5tdqaExZ+ENprUz9hQ4W+tlPGp/Q9hEd0eCfs1K 0V27iJwS1CmmtLfj6lV/n7ugCA1ApbKov/4DCJuTiKAke98t+PrFFIwS+35gXrhgtu1+ txUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=B7DBwAmcJX7FOhSwvd8ltyqmNwaclnLkZ2hSPSasEMw=; b=umR2QCh+DL6ole2bAhutx92rsdPaLU/y9Ot4QHnaXDkuz2ukBwrADUl2J0FTb8oycV WekoFWSFknVp7dNzuxHcHGyhFLIzfK8eWp/GXizqqmHQbJUwqzy2uzdmZoRRy0+SJbUI IpfA+7D1hiHZ4uicqI2hY9sd2q1sVRY7BM7JiZv2fB8cIfHOZXxrDKC33aGOtBDnPOt6 FWt5fv2wgK4ZUlah8n90vL0Dn25SB4TPYBdVaMW7It4OALdGvwWtDsZ2RDp35mN1lRaZ dJ7W+aDEzzzKVPbHOMI46tUoBCjfRFYFzunXzvpkPl+RI0au7QXsdoYNVutK09kCqLui +N8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si2573200eds.446.2020.05.14.14.06.29; Thu, 14 May 2020 14:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727929AbgENVEq (ORCPT + 99 others); Thu, 14 May 2020 17:04:46 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45260 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727122AbgENVEp (ORCPT ); Thu, 14 May 2020 17:04:45 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04EL376s033207; Thu, 14 May 2020 17:04:41 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 310tjpks5t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 May 2020 17:04:40 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 04EL3a7W035141; Thu, 14 May 2020 17:04:40 -0400 Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 310tjpks4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 May 2020 17:04:40 -0400 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 04EL3Aui018301; Thu, 14 May 2020 21:04:39 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma03wdc.us.ibm.com with ESMTP id 3100ubhthv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 May 2020 21:04:38 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04EL4bSL28967186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 May 2020 21:04:37 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C71013604F; Thu, 14 May 2020 21:04:38 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AF9F4136051; Thu, 14 May 2020 21:04:35 +0000 (GMT) Received: from oc3272150783.ibm.com (unknown [9.160.9.126]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTPS; Thu, 14 May 2020 21:04:35 +0000 (GMT) Date: Thu, 14 May 2020 16:04:25 -0500 From: "Paul A. Clarke" To: Michael Ellerman Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, acme@kernel.org, ananth@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com, sukadev@linux.ibm.com, irogers@google.com Subject: Re: [PATCH 2/2] perf: Add missing metrics to POWER9 'cpi_breakdown' Message-ID: <20200514210425.GA3338@oc3272150783.ibm.com> References: <1588868938-21933-1-git-send-email-pc@us.ibm.com> <1588868938-21933-3-git-send-email-pc@us.ibm.com> <87eerob5n4.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eerob5n4.fsf@mpe.ellerman.id.au> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-14_07:2020-05-14,2020-05-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 clxscore=1015 suspectscore=0 phishscore=0 adultscore=0 priorityscore=1501 cotscore=-2147483648 malwarescore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005140184 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 06:28:31PM +1000, Michael Ellerman wrote: > "Paul A. Clarke" writes: > > Add the following metrics to the POWER9 'cpi_breakdown' metricgroup: > > - ict_noslot_br_mpred_cpi > > - ict_noslot_br_mpred_icmiss_cpi > > - ict_noslot_cyc_other_cpi > > - ict_noslot_disp_held_cpi > > - ict_noslot_disp_held_hb_full_cpi > > - ict_noslot_disp_held_issq_cpi > > - ict_noslot_disp_held_other_cpi > > - ict_noslot_disp_held_sync_cpi > > - ict_noslot_disp_held_tbegin_cpi > > - ict_noslot_ic_l2_cpi > > - ict_noslot_ic_l3_cpi > > - ict_noslot_ic_l3miss_cpi > > - ict_noslot_ic_miss_cpi > > > > Signed-off-by: Paul A. Clarke > > --- > > .../arch/powerpc/power9/metrics.json | 143 ++++++++++-------- > > 1 file changed, 78 insertions(+), 65 deletions(-) > > > > diff --git a/tools/perf/pmu-events/arch/powerpc/power9/metrics.json b/tools/perf/pmu-events/arch/powerpc/power9/metrics.json > > index 811c2a8c1c9e..6169351a72c8 100644 > > --- a/tools/perf/pmu-events/arch/powerpc/power9/metrics.json > > +++ b/tools/perf/pmu-events/arch/powerpc/power9/metrics.json > > @@ -207,6 +207,84 @@ > > "MetricGroup": "cpi_breakdown", > > "MetricName": "fxu_stall_cpi" > > }, > > + { > > + "BriefDescription": "Ict empty for this thread due to branch mispred", > > I think you're just moving this, not adding it. But ICT is an acronym, > so it should be spelled ICT not Ict. > > It might be worth expanding it too? This was 98% produced through automated means, translating an existing XML file to perf's JSON format. I've gotten the upstream XML file changed to include the "ICT" metrics in the "cpi_breakdown" group already, and can request the changes you suggest also be incorporated. For the time being, can we move forward with the patch as-is? PC