Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp892866ybj; Thu, 7 May 2020 09:59:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKiP/6Bt1rHME8/IMlbCsVPCvezD1ohAM+0PodV56AsWXZ3WIkpUmtaGkjxetVz5MWnO4rn X-Received: by 2002:a50:f61b:: with SMTP id c27mr12227745edn.256.1588870779765; Thu, 07 May 2020 09:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588870779; cv=none; d=google.com; s=arc-20160816; b=Rmc9t7QnuXVwK5tkAG2ztKzJevyEFPngzFFfO1pjPkhcVYJiImNo+zeRAo4YT8nMiH pC03S7sauRD1bicF72y+QUPLhU5sfuoxiAKUmxpK4FJJ2QHQ4FWPbGs59F5W6784vBsS VmBMFDs9JGy4ZEp7yhCvdzbNoqdkguAZ2+1B7jk+ei3KNAPU+ADvRXxWXCqT8DMWsMyc ubzculdIadJ+XHwIvxDJIvP196qv8x3GLtUG4roUFIa0ykfJ7Bl7UgjaAvG3AoGEzF3w GmV1BTvi45wo4aPFBr9VF5uAwifUYTiJsX/T2cC0SV4fbaO26RIhhQ+PaSAHOT5lh1hC Mj+A== 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:date:from :dkim-signature; bh=tUJajxIGVv5jxgVRXN117q77ZGYl7n4txNiJb/e5Gcg=; b=zvCKkv0pBYtC1YHilXomqhSOIjJcD2q/5C74i9WcsTJjIjodnFDKptOpaj26JXfB0E DQGrr3MkgCw29InPf0FWa7mw3DPw787GhaATwL8Y7s9na3p77uBQBlz+U0aa9s3owFCB Yc29KP9xwolnJ3UaFgtIbxTp7jGK7lVXycYV0vT+NBwBVX+U/GQgmsTgmuvrrgS3pipC HvnlC3Pq4saJGA5k3GLy4RCa3lzjOKplL8MiPZ+mCY0xz2JYVqZnA1MT89wKbbUmbtdr e17scsB1rSnoB/15ZXXNuF9m1qM/IGrCriYFtWhLIszbXq7xPpqwPa2Ll+xWQXwXU1wh AIpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B2k+rCyC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si3512781ejs.396.2020.05.07.09.59.13; Thu, 07 May 2020 09:59:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B2k+rCyC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbgEGQ5r (ORCPT + 99 others); Thu, 7 May 2020 12:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726320AbgEGQ5q (ORCPT ); Thu, 7 May 2020 12:57:46 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF483C05BD43; Thu, 7 May 2020 09:57:45 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id c10so1403673qka.4; Thu, 07 May 2020 09:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tUJajxIGVv5jxgVRXN117q77ZGYl7n4txNiJb/e5Gcg=; b=B2k+rCyCQRH+Yldaq+by6w6MXj9LORTXLhJjaKfBUPYCBkEzZqetrNBMybHdw3EpKr VBv8gtU7z58IibBjDgB5k4CYrV9vkqoHqf7abG91Tenu6AgoYvTgG6V7Uxjub7WkW+ZA Axsrot89rAi0v+bxwnrwbrMCNWTZwx4L6OVfitJW20xPTje6UQRiXiMhxEf/zKKAPfLx Te0h/a1n7vpvlnKrvb12oLxrbuYAdX4V7wUb9UdOEYal6lwTge8PlfI+9xUDvOh/fOpr BRykDp4qRTdzecqvZaBq+mDQWeVvDFiD3ktj3RGOzq5NjIqsWjLsaVIS617Qyl+dYYSF ehJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tUJajxIGVv5jxgVRXN117q77ZGYl7n4txNiJb/e5Gcg=; b=ZickS1BVSrRB+P8mo+1EFqUHxQpkydWWHgfbrS5Cz3aUmyBLR/ZxNed7T5L3L9GBt0 c58rDC+c9BYLuTZO5qGJKjfA1E3wyVU/O4uaZmkO6p81/sEI36GrKqa2lA7+oNzza/D1 IX3ULW4ieWJ7hrBHuEgBMSJf6F3/NjjtJWyeuJtQGz+QLvPTDVUawpsvBLc9uXDsRcIh drkDrfh0yQkCMaLzhXmTHvMghjalEOWn45jWr6cjvrD7ONmV9fBAHe4y33oityv1X746 vk62enuKyE7Cmr7j2E/Cwj0t2KOG5i+6ZFjyXTzYM8KnR6SeG5aYW4R+0uvFAqsKuswo yVpw== X-Gm-Message-State: AGi0PuZyoZfghvirDJbR1QL/8AvqeB8zlNa1ofT1X+LbDyunpmn3f2jz FG0+b71u4wj3RXgkGXzdQYA= X-Received: by 2002:a37:96c4:: with SMTP id y187mr15758005qkd.126.1588870664992; Thu, 07 May 2020 09:57:44 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id b11sm4448187qti.50.2020.05.07.09.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 09:57:43 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id DA60E40AFD; Thu, 7 May 2020 13:57:40 -0300 (-03) Date: Thu, 7 May 2020 13:57:40 -0300 To: "Paul A. Clarke" Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, ananth@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com, sukadev@linux.ibm.com, mpe@ellerman.id.au, irogers@google.com Subject: Re: [PATCH 2/2] perf: Add missing metrics to POWER9 'cpi_breakdown' Message-ID: <20200507165740.GF31109@kernel.org> References: <1588868938-21933-1-git-send-email-pc@us.ibm.com> <1588868938-21933-3-git-send-email-pc@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588868938-21933-3-git-send-email-pc@us.ibm.com> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, May 07, 2020 at 11:28:58AM -0500, Paul A. Clarke escreveu: > From: "Paul A. Clarke" > > 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 Can folks provide Acked-by or Reviewed-by? Thanks, - Arnaldo > 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", > + "MetricExpr": "PM_ICT_NOSLOT_BR_MPRED/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_br_mpred_cpi" > + }, > + { > + "BriefDescription": "Ict empty for this thread due to Icache Miss and branch mispred", > + "MetricExpr": "PM_ICT_NOSLOT_BR_MPRED_ICMISS/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_br_mpred_icmiss_cpi" > + }, > + { > + "BriefDescription": "ICT other stalls", > + "MetricExpr": "(PM_ICT_NOSLOT_CYC - PM_ICT_NOSLOT_IC_MISS - PM_ICT_NOSLOT_BR_MPRED_ICMISS - PM_ICT_NOSLOT_BR_MPRED - PM_ICT_NOSLOT_DISP_HELD)/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_cyc_other_cpi" > + }, > + { > + "BriefDescription": "Cycles in which the NTC instruciton is held at dispatch for any reason", > + "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_disp_held_cpi" > + }, > + { > + "BriefDescription": "Ict empty for this thread due to dispatch holds because the History Buffer was full. Could be GPR/VSR/VMR/FPR/CR/XVF", > + "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_HB_FULL/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_disp_held_hb_full_cpi" > + }, > + { > + "BriefDescription": "Ict empty for this thread due to dispatch hold on this thread due to Issue q full, BRQ full, XVCF Full, Count cache, Link, Tar full", > + "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_ISSQ/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_disp_held_issq_cpi" > + }, > + { > + "BriefDescription": "ICT_NOSLOT_DISP_HELD_OTHER_CPI", > + "MetricExpr": "(PM_ICT_NOSLOT_DISP_HELD - PM_ICT_NOSLOT_DISP_HELD_HB_FULL - PM_ICT_NOSLOT_DISP_HELD_SYNC - PM_ICT_NOSLOT_DISP_HELD_TBEGIN - PM_ICT_NOSLOT_DISP_HELD_ISSQ)/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_disp_held_other_cpi" > + }, > + { > + "BriefDescription": "Dispatch held due to a synchronizing instruction at dispatch", > + "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_SYNC/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_disp_held_sync_cpi" > + }, > + { > + "BriefDescription": "the NTC instruction is being held at dispatch because it is a tbegin instruction and there is an older tbegin in the pipeline that must complete before the younger tbegin can dispatch", > + "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_TBEGIN/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_disp_held_tbegin_cpi" > + }, > + { > + "BriefDescription": "ICT_NOSLOT_IC_L2_CPI", > + "MetricExpr": "(PM_ICT_NOSLOT_IC_MISS - PM_ICT_NOSLOT_IC_L3 - PM_ICT_NOSLOT_IC_L3MISS)/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_ic_l2_cpi" > + }, > + { > + "BriefDescription": "Ict empty for this thread due to icache misses that were sourced from the local L3", > + "MetricExpr": "PM_ICT_NOSLOT_IC_L3/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_ic_l3_cpi" > + }, > + { > + "BriefDescription": "Ict empty for this thread due to icache misses that were sourced from beyond the local L3. The source could be local/remote/distant memory or another core's cache", > + "MetricExpr": "PM_ICT_NOSLOT_IC_L3MISS/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_ic_l3miss_cpi" > + }, > + { > + "BriefDescription": "Ict empty for this thread due to Icache Miss", > + "MetricExpr": "PM_ICT_NOSLOT_IC_MISS/PM_RUN_INST_CMPL", > + "MetricGroup": "cpi_breakdown", > + "MetricName": "ict_noslot_ic_miss_cpi" > + }, > { > "MetricExpr": "(PM_NTC_ISSUE_HELD_DARQ_FULL + PM_NTC_ISSUE_HELD_ARB + PM_NTC_ISSUE_HELD_OTHER)/PM_RUN_INST_CMPL", > "MetricGroup": "cpi_breakdown", > @@ -1819,71 +1897,6 @@ > "MetricExpr": "PM_FXU_IDLE / PM_CYC", > "MetricName": "fxu_all_idle" > }, > - { > - "BriefDescription": "Ict empty for this thread due to branch mispred", > - "MetricExpr": "PM_ICT_NOSLOT_BR_MPRED/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_br_mpred_cpi" > - }, > - { > - "BriefDescription": "Ict empty for this thread due to Icache Miss and branch mispred", > - "MetricExpr": "PM_ICT_NOSLOT_BR_MPRED_ICMISS/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_br_mpred_icmiss_cpi" > - }, > - { > - "BriefDescription": "ICT other stalls", > - "MetricExpr": "(PM_ICT_NOSLOT_CYC - PM_ICT_NOSLOT_IC_MISS - PM_ICT_NOSLOT_BR_MPRED_ICMISS - PM_ICT_NOSLOT_BR_MPRED - PM_ICT_NOSLOT_DISP_HELD)/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_cyc_other_cpi" > - }, > - { > - "BriefDescription": "Cycles in which the NTC instruciton is held at dispatch for any reason", > - "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_disp_held_cpi" > - }, > - { > - "BriefDescription": "Ict empty for this thread due to dispatch holds because the History Buffer was full. Could be GPR/VSR/VMR/FPR/CR/XVF", > - "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_HB_FULL/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_disp_held_hb_full_cpi" > - }, > - { > - "BriefDescription": "Ict empty for this thread due to dispatch hold on this thread due to Issue q full, BRQ full, XVCF Full, Count cache, Link, Tar full", > - "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_ISSQ/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_disp_held_issq_cpi" > - }, > - { > - "BriefDescription": "ICT_NOSLOT_DISP_HELD_OTHER_CPI", > - "MetricExpr": "(PM_ICT_NOSLOT_DISP_HELD - PM_ICT_NOSLOT_DISP_HELD_HB_FULL - PM_ICT_NOSLOT_DISP_HELD_SYNC - PM_ICT_NOSLOT_DISP_HELD_TBEGIN - PM_ICT_NOSLOT_DISP_HELD_ISSQ)/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_disp_held_other_cpi" > - }, > - { > - "BriefDescription": "Dispatch held due to a synchronizing instruction at dispatch", > - "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_SYNC/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_disp_held_sync_cpi" > - }, > - { > - "BriefDescription": "the NTC instruction is being held at dispatch because it is a tbegin instruction and there is an older tbegin in the pipeline that must complete before the younger tbegin can dispatch", > - "MetricExpr": "PM_ICT_NOSLOT_DISP_HELD_TBEGIN/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_disp_held_tbegin_cpi" > - }, > - { > - "BriefDescription": "ICT_NOSLOT_IC_L2_CPI", > - "MetricExpr": "(PM_ICT_NOSLOT_IC_MISS - PM_ICT_NOSLOT_IC_L3 - PM_ICT_NOSLOT_IC_L3MISS)/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_ic_l2_cpi" > - }, > - { > - "BriefDescription": "Ict empty for this thread due to icache misses that were sourced from the local L3", > - "MetricExpr": "PM_ICT_NOSLOT_IC_L3/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_ic_l3_cpi" > - }, > - { > - "BriefDescription": "Ict empty for this thread due to icache misses that were sourced from beyond the local L3. The source could be local/remote/distant memory or another core's cache", > - "MetricExpr": "PM_ICT_NOSLOT_IC_L3MISS/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_ic_l3miss_cpi" > - }, > - { > - "BriefDescription": "Ict empty for this thread due to Icache Miss", > - "MetricExpr": "PM_ICT_NOSLOT_IC_MISS/PM_RUN_INST_CMPL", > - "MetricName": "ict_noslot_ic_miss_cpi" > - }, > { > "BriefDescription": "Rate of IERAT reloads from L2", > "MetricExpr": "PM_IPTEG_FROM_L2 * 100 / PM_RUN_INST_CMPL", > -- > 2.18.2 > -- - Arnaldo