Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3124764rwb; Mon, 7 Aug 2023 08:35:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZSVH4DaC+cfwG/zCAtkVwa43kQrnpWUgSF+qHHPSM+JrNs/MGZNZipfnBfiSvEXi9q5+b X-Received: by 2002:a17:906:1099:b0:94e:4489:f24d with SMTP id u25-20020a170906109900b0094e4489f24dmr9487461eju.61.1691422526644; Mon, 07 Aug 2023 08:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691422526; cv=none; d=google.com; s=arc-20160816; b=fjtHL3voLraMEFg9NuwGfeuedveVHoJOsfYRrfhQ+GiwQ2Qqp0jR5cJsb1UKeI9XL9 VnjpA2blYrjZYTq9oMf9+hJVzNwCu11h2CFmO+eUpR0ayeCxsdJ10qFgYJPRmCuxWZlt XI3SFmknVLhYfxcXH7WH3v7HCVnAwYlO2L6TUBgJ0ug59aueaONyEy2tWG7nBWrg6Dsq iCXNR67ImxC4TXmJVg78F6JXsFZ5EqEAZ/0c/QB+NN1IW+mFDkHwElvHmLsxWFJPoAJ2 ehzk5D9AMCZN2Kghsh24xs7xwbj3Vi5DQ1lwU+Zw4E0u+h16CriBeiznEjEJUljKI3DZ b+rg== 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=JhTXlrWzPHgDgzEcNgMWlIvfitimxzfIGz55LD9uH/w=; fh=dvXNEo73Wfbr0+EbPyy3bhFFz7MYgu0L/Zj/58CYJvI=; b=XE1EnyE3adBZU+yqkaXiXa68WgC9oWCUU+K0bSF9c56ok2f4B6agkx6RtvNRfnhKlT a0E70X8fkQ2LpXE5JGlxVWGpPPVRdYq4yZU8UJqQagXY5bgSU92cHP6WtgVKYdRnLuoJ 1kHBXXBiyXGas971YW+qv+IB0sckl7WbGF2Qca3lMDkFf4lYwR3EVFJZoDXorSEnCZXA dlvY4P3fDDmJ3qV69jvBJe1CWdodO2lOqBxLU604zryl5KYU0MqmGMjX14WJYa7Zkwxi xbIT0y5lwFQwbdRoQ4a3aO8GtCRXCCzLuprkiuhsPGXgqdqt0lhEzHq8PCHuMDI9D85j EYpw== 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 rk25-20020a170907215900b00991c8af7ba3si6139929ejb.148.2023.08.07.08.35.02; Mon, 07 Aug 2023 08:35:26 -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 S233570AbjHGOZ0 (ORCPT + 99 others); Mon, 7 Aug 2023 10:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233535AbjHGOZY (ORCPT ); Mon, 7 Aug 2023 10:25:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 11144C2; Mon, 7 Aug 2023 07:25:23 -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 A5F8D1FB; Mon, 7 Aug 2023 07:26:05 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 997233F64C; Mon, 7 Aug 2023 07:25:19 -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 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 , Kajol Jain , Kan Liang , Nick Forrington , Eduard Zingerman , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: [PATCH v4 4/6] perf vendor events arm64: Update scale units and descriptions of common topdown metrics Date: Mon, 7 Aug 2023 15:20:48 +0100 Message-Id: <20230807142138.288713-5-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230807142138.288713-1-james.clark@arm.com> References: <20230807142138.288713-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 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 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