Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1777312rdb; Thu, 17 Aug 2023 01:30:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmbBGOK8XSOAZj3IRtBHlrso1mDEJkl47qr2LYuF3GVYwQr5cze38hKFPbKiI8evOlu9M2 X-Received: by 2002:a17:907:7747:b0:991:b292:699 with SMTP id kx7-20020a170907774700b00991b2920699mr3176667ejc.5.1692261058586; Thu, 17 Aug 2023 01:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692261058; cv=none; d=google.com; s=arc-20160816; b=NiSMTQwK3NXlEMCGVREQQ3E4x5jdYtIuFUd9y2HVnANWc6ybrX7Q2qiruMYNey+ELQ nLR10Rap7ND59cHX2DEpW05ZzDC8j62+ARHHTPYLOhs1o7GAh1bwjpY6GAD++ChotNrO zn70tnY2IVCI+/tmN5GK/sIYvjr9NBfvJsqOHojoqdRyvZ1HM5531u2+iwdqgnfjpbJ4 3gFHbgWcYDLrtNK1BbhAjbUgHxG/Chwr9G2i8ZTTeEzaTlfGUadOJu19l/5S7i97KF4E bC6u8ljOhtxbv2FutHKOVvzWy28+rgADyPWoynALFLq3vEgzPmDbjc6FrldCMbuwyy4E oSMw== 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; bh=tH6fgmvV6OzOEursOpWYEBTtenuR2UVkALeWZgp5dFs=; fh=WFFIL8W5MrQKq6tk/OgKtpgDDSjfKbEvy+RJjOvsgJY=; b=ccW+rNZvOqiHFHXhhrqqnqOx2i5Ve8ahfUPI9wjrbdYVYNXcUm+5aXZx/3XTrOcoz4 E9mfF6lKRfscdWB2+vS3BxG8m7EDFOk5OjPR1CMReoC0XvM3WjnlsUAd16SWAd/GIvXj RUy2XvsoAnZsqBxAPDR/O3AL3OEr8PaS1pcuZillTgDjNguatRzkLDI6EJA+x9S+k4i1 FDJzaNwWlM/BqQIYgzkhSBFJk7GFc3qMmfrYijVQxj7FHs5QxDWFjYCXW80XqhwiRt/G Vpwoeq+F8eA3M0n+W2nbPKpBQp7APzk9dT7brLerB6O8pGnG7f81ZXswLr7vt6aO02EZ U2Cg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va3-20020a17090711c300b00992c3b85acbsi12638234ejb.128.2023.08.17.01.30.33; Thu, 17 Aug 2023 01:30:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244803AbjHPLwM (ORCPT + 99 others); Wed, 16 Aug 2023 07:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244860AbjHPLv4 (ORCPT ); Wed, 16 Aug 2023 07:51:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C642B1FDE; Wed, 16 Aug 2023 04:51:53 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 944981063; Wed, 16 Aug 2023 04:52:34 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.4.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 030A13F64C; Wed, 16 Aug 2023 04:51:49 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com, john.g.garry@oracle.com, renyu.zj@linux.alibaba.com, acme@kernel.org Cc: James Clark , Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kajol Jain , Kan Liang , Haixin Yu , Nick Forrington , Eduard Zingerman , Sohom Datta , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 3/6] perf vendor events arm64: Update scale units and descriptions of common topdown metrics Date: Wed, 16 Aug 2023 12:47:45 +0100 Message-Id: <20230816114841.1679234-4-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230816114841.1679234-1-james.clark@arm.com> References: <20230816114841.1679234-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org Metrics will be published here [1] going forwards, but they have slightly different scale units. To allow autogenerated metrics to be added more easily, update the scale units to match. The more detailed descriptions have also been taken and added to the common file. [1]: https://gitlab.arm.com/telemetry-solution/telemetry-solution/-/tree/main/data/pmu/cpu/ Acked-by: Ian Rogers Reviewed-by: John Garry Signed-off-by: James Clark --- tools/perf/pmu-events/arch/arm64/sbsa.json | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/perf/pmu-events/arch/arm64/sbsa.json b/tools/perf/pmu-events/arch/arm64/sbsa.json index f90b338261ac..4eed79a28f6e 100644 --- a/tools/perf/pmu-events/arch/arm64/sbsa.json +++ b/tools/perf/pmu-events/arch/arm64/sbsa.json @@ -1,34 +1,34 @@ [ { - "MetricExpr": "stall_slot_frontend / (#slots * cpu_cycles)", - "BriefDescription": "Frontend bound L1 topdown metric", + "MetricExpr": "100 * (stall_slot_frontend / (#slots * cpu_cycles))", + "BriefDescription": "This metric is the percentage of total slots that were stalled due to resource constraints in the frontend of the processor.", "DefaultMetricgroupName": "TopdownL1", "MetricGroup": "Default;TopdownL1", "MetricName": "frontend_bound", - "ScaleUnit": "100%" + "ScaleUnit": "1percent of slots" }, { - "MetricExpr": "(1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", - "BriefDescription": "Bad speculation L1 topdown metric", + "MetricExpr": "100 * ((1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles)))", + "BriefDescription": "This metric is the percentage of total slots that executed operations and didn't retire due to a pipeline flush.\nThis indicates cycles that were utilized but inefficiently.", "DefaultMetricgroupName": "TopdownL1", "MetricGroup": "Default;TopdownL1", "MetricName": "bad_speculation", - "ScaleUnit": "100%" + "ScaleUnit": "1percent of slots" }, { - "MetricExpr": "(op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles))", - "BriefDescription": "Retiring L1 topdown metric", + "MetricExpr": "100 * ((op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles)))", + "BriefDescription": "This metric is the percentage of total slots that retired operations, which indicates cycles that were utilized efficiently.", "DefaultMetricgroupName": "TopdownL1", "MetricGroup": "Default;TopdownL1", "MetricName": "retiring", - "ScaleUnit": "100%" + "ScaleUnit": "1percent of slots" }, { - "MetricExpr": "stall_slot_backend / (#slots * cpu_cycles)", - "BriefDescription": "Backend Bound L1 topdown metric", + "MetricExpr": "100 * (stall_slot_backend / (#slots * cpu_cycles))", + "BriefDescription": "This metric is the percentage of total slots that were stalled due to resource constraints in the backend of the processor.", "DefaultMetricgroupName": "TopdownL1", "MetricGroup": "Default;TopdownL1", "MetricName": "backend_bound", - "ScaleUnit": "100%" + "ScaleUnit": "1percent of slots" } ] -- 2.34.1