Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35383970rwd; Mon, 10 Jul 2023 06:47:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/+lMH+rqjeNQxv6ii2JW5oPa/NWLUgR7wYdfeW1RLk5rAAjN/Q62Qre2iEbT19S0cXrjV X-Received: by 2002:a05:6808:f03:b0:39a:a4ab:22f2 with SMTP id m3-20020a0568080f0300b0039aa4ab22f2mr14940666oiw.56.1688996860013; Mon, 10 Jul 2023 06:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688996859; cv=none; d=google.com; s=arc-20160816; b=U7ZLfihDoVBcHspXutygE19lvLbvNVJPtt2mTvhOISc1Y928KFPa4vsj70ggUH8ik0 yaUbPum6bnR+pOZRPbAfkg7dJ2mR+mYgOiAA9dHiK/XDuhmvwDD6sxf5h0Gl3gDs3iKe Fqc3o3x1OV0F0C1Ls4s+2VcYGBdnX2viA9W3fA6GpksfQ05OFwKScJH4+iD2rA+wUjib NV+ELEyvlX0rP+9rv7nvV6Bt4TXWJLieLwZCnWA5AXD8L9WSeJjEjzOPR7uQG8sG0Kar 3U6zWgij05bvkGwBsKEH7f5hA2VuX9BsU1HQn33/s5KiKpZtohaq5Ycm6vXhI+QGzNmn VGVQ== 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=+IssXEyeIr3MnUxNSfZofeZ95MSt7eaLIKBxiLcc1SU=; fh=cThaliM0lLCoBxfwVd61pUW/GVwbiKVFeqShrEC124A=; b=LRRkQHRObudUFw4Z+nCD5dKlb0C8MdD8BXsAPm9sbIoGd3oBn1rO43qooICCJNDH7a Q1uPPE88UZPMgTUB92ixpEHHTrXl7AzoXPHJLqWQNRcpDqCan+7w1O5222HI2Ar7YDnw VEOCxsQI9smp1kjnTY9bQZdsKKIJb2BicgPHj4EG1a1HQN6v3wmYNhFwPLQWa7ObeyVc hOOXVolIgxYJrWMcCKuTogBLJfZQJk9ZC+jwQi3Ao76SierUfqSjbvD2Gl7Shau6+Sdu SzJHRFguU4+3Wh3OKs5vHl09pahkCHeS/Ay2xDNdCfwfx3uSycwIYjsJoxCDs+HALU4Q vTuw== 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 v185-20020a6389c2000000b005599cbfa257si9083945pgd.275.2023.07.10.06.47.27; Mon, 10 Jul 2023 06:47:39 -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 S232434AbjGJNbi (ORCPT + 99 others); Mon, 10 Jul 2023 09:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232422AbjGJNbe (ORCPT ); Mon, 10 Jul 2023 09:31:34 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F305F12A; Mon, 10 Jul 2023 06:31:28 -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 E25E311FB; Mon, 10 Jul 2023 06:32:10 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.30.85]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C5DD43F67D; Mon, 10 Jul 2023 06:31:25 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com, renyu.zj@linux.alibaba.com, john.g.garry@oracle.com Cc: James Clark , Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Suzuki K Poulose , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: [PATCH 3/4] perf vendor events arm64: Update scale units and descriptions of common topdown metrics Date: Mon, 10 Jul 2023 14:30:54 +0100 Message-Id: <20230710133058.1483610-3-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230710133058.1483610-1-james.clark@arm.com> References: <20230710133058.1483610-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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/ 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