Message ID | 20230607162700.3234712-5-kan.liang@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp329494vqr; Wed, 7 Jun 2023 09:35:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nSgWr7Arks9t+TiArJDA5udS5NhDsQdogYZCor/PMHAzT/xZgVe7lLka+Swheju7Gi1mv X-Received: by 2002:a05:6a20:7f81:b0:118:5d5a:f26f with SMTP id d1-20020a056a207f8100b001185d5af26fmr966499pzj.12.1686155721663; Wed, 07 Jun 2023 09:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686155721; cv=none; d=google.com; s=arc-20160816; b=aU25Xx/9cu4JEWudIt8NMByYp+h4nBiG+valEwfGi/EGcSQ5S1QfyZSdF5/SMbIY7B AahSs44M0Dqjn4MNpS9L7RoXMfWTkxQCBkCIQfuyA9gIFSinih3wX4m7xWzc1N3l5cDp ED8oo7Q5g6D6dOmEqFxRV5XvxPokB5PPXAx5anF+/4kpGsRG/pCkYJYhzjpsb6T6a8BF puMslrf0xPqwwK/gaLEFG+VaYaMN9h/tOsKh3oj4gsZrEP29Gh9Rvdyso5Wj+MziWk1a 9DaLKHryI7O0YAhF73QFULtzfM/86Ff9HDj4twfi/InIwwLrEIpDwy6dhhx7M8RJRRPl HYMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YGeJtR9NymWlitCj9Vkg1xVxYgQ0DKQ//xXV7ENMurE=; b=EECciKDy94y+DDkUT0z20zXsG64K37Yg/Vynm8B6cgQgyouze7VSzyK6TIgesU7iU2 VwS2/fklmwISIRQ8e17QCII9SqUKQgbWM39+Uu3C3D05pnHkb/arr9N71isAYj3cEwYy 0GGv+DViZwxoEbJ8oT425WTlLYw/MBTb9GRrkhOGdH2HVHv/DtE6QOyLQcC/p2H/ik/h V5aPyu2aHp9y5Ax6JlGyXPUvk0YeMVWCUUXIUNRjijDR1J+htrS1OkcE4lCRPdxBE1DA 4k3gOxihtbrOV9Sxg03XfuUsHovfBx4/xSr6M41fvE/scwhLMSA2Dw79e1edzOWzm5d1 UjbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DYz1J53+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a636d06000000b005348cc20de1si9032385pgc.22.2023.06.07.09.35.03; Wed, 07 Jun 2023 09:35:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DYz1J53+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231410AbjFGQ1c (ORCPT <rfc822;literming00@gmail.com> + 99 others); Wed, 7 Jun 2023 12:27:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjFGQ1Z (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Jun 2023 12:27:25 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B331734; Wed, 7 Jun 2023 09:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686155244; x=1717691244; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jMWpaJgiMGTiy13U7uDkL/ns2NCxNprT8Kgl9zFnTro=; b=DYz1J53+AyHB9ApNeafDaaml8h3VLsF/TDsPE7vYMR+1ZYAtOE8rn23f L/di7RNRzHYgpVMq083rmi0WXzAYEC43LRpOANkzbhoKBE3GhwXobwgcO zpHi0+FNhcsi4rswYyL2vWWFYwV70Vh2TW2uukXHrx3KwSigd9jJg7ze0 9+ulrwy6d5RVC6VyjcjPkk2G4mWUv/zfFJfMyzzIEcBqRm4u/X1lBtJXY 2V4lbVt+J8u0dPgYTu03gQ6xadsYNwZFbYSDRIUSp9IYiiAlex8V0h95u xXF5qZ9ei5iSiXHMumOnGegUEJDUpVWrPiCbs1XCM6oNSUPoWdL3Nk9ur g==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="355892642" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="355892642" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 09:27:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="774697668" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="774697668" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by fmsmga008.fm.intel.com with ESMTP; 07 Jun 2023 09:27:21 -0700 From: kan.liang@linux.intel.com To: acme@kernel.org, mingo@redhat.com, peterz@infradead.org, irogers@google.com, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ak@linux.intel.com, eranian@google.com, ahmad.yasin@intel.com, Kan Liang <kan.liang@linux.intel.com>, Jing Zhang <renyu.zj@linux.alibaba.com>, John Garry <john.g.garry@oracle.com> Subject: [PATCH 4/8] perf vendor events arm64: Add default tags into topdown L1 metrics Date: Wed, 7 Jun 2023 09:26:56 -0700 Message-Id: <20230607162700.3234712-5-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230607162700.3234712-1-kan.liang@linux.intel.com> References: <20230607162700.3234712-1-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768062421955760835?= X-GMAIL-MSGID: =?utf-8?q?1768062421955760835?= |
Series |
New metricgroup output in perf stat default mode
|
|
Commit Message
Liang, Kan
June 7, 2023, 4:26 p.m. UTC
From: Kan Liang <kan.liang@linux.intel.com> Add the default tags for ARM as well. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Cc: Jing Zhang <renyu.zj@linux.alibaba.com> Cc: John Garry <john.g.garry@oracle.com> --- tools/perf/pmu-events/arch/arm64/sbsa.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
Comments
On Wed, Jun 7, 2023 at 9:27 AM <kan.liang@linux.intel.com> wrote: > > From: Kan Liang <kan.liang@linux.intel.com> > > Add the default tags for ARM as well. > > Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > Cc: Jing Zhang <renyu.zj@linux.alibaba.com> > Cc: John Garry <john.g.garry@oracle.com> Acked-by: Ian Rogers <irogers@google.com> Thanks, Ian > --- > tools/perf/pmu-events/arch/arm64/sbsa.json | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/tools/perf/pmu-events/arch/arm64/sbsa.json b/tools/perf/pmu-events/arch/arm64/sbsa.json > index f678c37ea9c3..f90b338261ac 100644 > --- a/tools/perf/pmu-events/arch/arm64/sbsa.json > +++ b/tools/perf/pmu-events/arch/arm64/sbsa.json > @@ -2,28 +2,32 @@ > { > "MetricExpr": "stall_slot_frontend / (#slots * cpu_cycles)", > "BriefDescription": "Frontend bound L1 topdown metric", > - "MetricGroup": "TopdownL1", > + "DefaultMetricgroupName": "TopdownL1", > + "MetricGroup": "Default;TopdownL1", > "MetricName": "frontend_bound", > "ScaleUnit": "100%" > }, > { > "MetricExpr": "(1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", > "BriefDescription": "Bad speculation L1 topdown metric", > - "MetricGroup": "TopdownL1", > + "DefaultMetricgroupName": "TopdownL1", > + "MetricGroup": "Default;TopdownL1", > "MetricName": "bad_speculation", > "ScaleUnit": "100%" > }, > { > "MetricExpr": "(op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", > "BriefDescription": "Retiring L1 topdown metric", > - "MetricGroup": "TopdownL1", > + "DefaultMetricgroupName": "TopdownL1", > + "MetricGroup": "Default;TopdownL1", > "MetricName": "retiring", > "ScaleUnit": "100%" > }, > { > "MetricExpr": "stall_slot_backend / (#slots * cpu_cycles)", > "BriefDescription": "Backend Bound L1 topdown metric", > - "MetricGroup": "TopdownL1", > + "DefaultMetricgroupName": "TopdownL1", > + "MetricGroup": "Default;TopdownL1", > "MetricName": "backend_bound", > "ScaleUnit": "100%" > } > -- > 2.35.1 >
Em Tue, Jun 13, 2023 at 12:45:10PM -0700, Ian Rogers escreveu: > On Wed, Jun 7, 2023 at 9:27 AM <kan.liang@linux.intel.com> wrote: > > > > From: Kan Liang <kan.liang@linux.intel.com> > > > > Add the default tags for ARM as well. > > > > Signed-off-by: Kan Liang <kan.liang@linux.intel.com> > > Cc: Jing Zhang <renyu.zj@linux.alibaba.com> > > Cc: John Garry <john.g.garry@oracle.com> > > Acked-by: Ian Rogers <irogers@google.com> Thanks, applied. - Arnaldo > Thanks, > Ian > > > --- > > tools/perf/pmu-events/arch/arm64/sbsa.json | 12 ++++++++---- > > 1 file changed, 8 insertions(+), 4 deletions(-) > > > > diff --git a/tools/perf/pmu-events/arch/arm64/sbsa.json b/tools/perf/pmu-events/arch/arm64/sbsa.json > > index f678c37ea9c3..f90b338261ac 100644 > > --- a/tools/perf/pmu-events/arch/arm64/sbsa.json > > +++ b/tools/perf/pmu-events/arch/arm64/sbsa.json > > @@ -2,28 +2,32 @@ > > { > > "MetricExpr": "stall_slot_frontend / (#slots * cpu_cycles)", > > "BriefDescription": "Frontend bound L1 topdown metric", > > - "MetricGroup": "TopdownL1", > > + "DefaultMetricgroupName": "TopdownL1", > > + "MetricGroup": "Default;TopdownL1", > > "MetricName": "frontend_bound", > > "ScaleUnit": "100%" > > }, > > { > > "MetricExpr": "(1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", > > "BriefDescription": "Bad speculation L1 topdown metric", > > - "MetricGroup": "TopdownL1", > > + "DefaultMetricgroupName": "TopdownL1", > > + "MetricGroup": "Default;TopdownL1", > > "MetricName": "bad_speculation", > > "ScaleUnit": "100%" > > }, > > { > > "MetricExpr": "(op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", > > "BriefDescription": "Retiring L1 topdown metric", > > - "MetricGroup": "TopdownL1", > > + "DefaultMetricgroupName": "TopdownL1", > > + "MetricGroup": "Default;TopdownL1", > > "MetricName": "retiring", > > "ScaleUnit": "100%" > > }, > > { > > "MetricExpr": "stall_slot_backend / (#slots * cpu_cycles)", > > "BriefDescription": "Backend Bound L1 topdown metric", > > - "MetricGroup": "TopdownL1", > > + "DefaultMetricgroupName": "TopdownL1", > > + "MetricGroup": "Default;TopdownL1", > > "MetricName": "backend_bound", > > "ScaleUnit": "100%" > > } > > -- > > 2.35.1 > >
On 07/06/2023 17:26, kan.liang@linux.intel.com wrote: > From: Kan Liang<kan.liang@linux.intel.com> > > Add the default tags for ARM as well. > > Signed-off-by: Kan Liang<kan.liang@linux.intel.com> > Cc: Jing Zhang<renyu.zj@linux.alibaba.com> > Cc: John Garry<john.g.garry@oracle.com> Reviewed-by: John Garry <john.g.garry@oracle.com> But does pmu-events/arch/arm64/hisilicon/hip08/metrics.json need to be fixed up as well?
On 2023-06-14 10:30 a.m., John Garry wrote: > On 07/06/2023 17:26, kan.liang@linux.intel.com wrote: >> From: Kan Liang<kan.liang@linux.intel.com> >> >> Add the default tags for ARM as well. >> >> Signed-off-by: Kan Liang<kan.liang@linux.intel.com> >> Cc: Jing Zhang<renyu.zj@linux.alibaba.com> >> Cc: John Garry<john.g.garry@oracle.com> > > Reviewed-by: John Garry <john.g.garry@oracle.com> > > But does pmu-events/arch/arm64/hisilicon/hip08/metrics.json need to be > fixed up as well? The patch has been added in V4. Please take a look. https://lore.kernel.org/lkml/20230616031420.3751973-6-kan.liang@linux.intel.com/ Thanks, Kan
diff --git a/tools/perf/pmu-events/arch/arm64/sbsa.json b/tools/perf/pmu-events/arch/arm64/sbsa.json index f678c37ea9c3..f90b338261ac 100644 --- a/tools/perf/pmu-events/arch/arm64/sbsa.json +++ b/tools/perf/pmu-events/arch/arm64/sbsa.json @@ -2,28 +2,32 @@ { "MetricExpr": "stall_slot_frontend / (#slots * cpu_cycles)", "BriefDescription": "Frontend bound L1 topdown metric", - "MetricGroup": "TopdownL1", + "DefaultMetricgroupName": "TopdownL1", + "MetricGroup": "Default;TopdownL1", "MetricName": "frontend_bound", "ScaleUnit": "100%" }, { "MetricExpr": "(1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", "BriefDescription": "Bad speculation L1 topdown metric", - "MetricGroup": "TopdownL1", + "DefaultMetricgroupName": "TopdownL1", + "MetricGroup": "Default;TopdownL1", "MetricName": "bad_speculation", "ScaleUnit": "100%" }, { "MetricExpr": "(op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", "BriefDescription": "Retiring L1 topdown metric", - "MetricGroup": "TopdownL1", + "DefaultMetricgroupName": "TopdownL1", + "MetricGroup": "Default;TopdownL1", "MetricName": "retiring", "ScaleUnit": "100%" }, { "MetricExpr": "stall_slot_backend / (#slots * cpu_cycles)", "BriefDescription": "Backend Bound L1 topdown metric", - "MetricGroup": "TopdownL1", + "DefaultMetricgroupName": "TopdownL1", + "MetricGroup": "Default;TopdownL1", "MetricName": "backend_bound", "ScaleUnit": "100%" }