Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1062651rdg; Fri, 11 Aug 2023 08:34:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFB7KVTySaXYQDHC6X4ICZLvVJLrmql7gUS7Ssjt5q3xsu6hC+fgSCqS6Z/7E0auCXZsfvH X-Received: by 2002:a05:6512:3993:b0:4fd:f827:225a with SMTP id j19-20020a056512399300b004fdf827225amr1826464lfu.43.1691768055373; Fri, 11 Aug 2023 08:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691768055; cv=none; d=google.com; s=arc-20160816; b=gb910mok8+fkkvNwik30clIkHjmRBCMszCZtSwA+LieU3Qz3x1WAHKdvf7AZc6VAfO pbJfBVdGaNEWqIPIZOHLDp51BNDoZmuw+9hcSYXGc1gANSP/PV/JGkw4pQI/+z/yKSRg +K7X61Cczkn0gOtenzifM6fqckcLRATfaQFtNvMLbNeo5aFmBfQBtEfEsUTvpN65v4Eu yO+wXdHb4ig3cMYto8dRNEkv6Nw5ODOzzecLgPJoJyRYB1maRh5Z4gOryGWzDV5epIcX eRqT6ziPKS6Az1YUr1xJKvwyeh89C+UtJ5XtU+il7NA89VWkHHVP+9W25ZgSIUvt4dPD MGFg== 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=kDE8zQoZVXp99FhwtNApP6NE133sArTjPBxZZTzZ2sE=; b=VG+4gGFDaEp8/LXk5282V044bHTX6jGEhh+BpTubUL8hjOP4jmyMF3yQrLgSK9tj+E ssVLrTmLylwwt+fZymNEEdsIY9vYv3sAgU3dJ2wbglasTGDGBE/XIlNMEA5dxpTuxrmi tXt5+Q9evFWK2l4Non9ebRFFAkFYlL6HN3SoXA4Fje5OgtoEtblpJOuAY/sGW0t1uB9D CYPeT14sJK2Xumo1tExQqU76aLZJ+cueDuo6ur8I8QhheiZWiEfWLXZBzxwpNyBQF4BL Lj+noYNJZZrwgIgmHfvK8Fcwjw4Wev9ehnh22usvxU/TLOKwRH5nJK5coQZGPO4V364H WPHA== 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 y21-20020aa7c255000000b0052257d9655bsi3393397edo.304.2023.08.11.08.33.50; Fri, 11 Aug 2023 08:34:15 -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 S235264AbjHKOo1 (ORCPT + 99 others); Fri, 11 Aug 2023 10:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235078AbjHKOo0 (ORCPT ); Fri, 11 Aug 2023 10:44:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C9DB2D43; Fri, 11 Aug 2023 07:44:25 -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 B64E9113E; Fri, 11 Aug 2023 07:45:07 -0700 (PDT) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0CC553F64C; Fri, 11 Aug 2023 07:44:21 -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 , Kan Liang , Kajol Jain , Nick Forrington , Andrii Nakryiko , Eduard Zingerman , Sohom Datta , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: [PATCH v5 4/6] perf vendor events arm64: Update scale units and descriptions of common topdown metrics Date: Fri, 11 Aug 2023 15:39:21 +0100 Message-Id: <20230811144017.491628-5-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230811144017.491628-1-james.clark@arm.com> References: <20230811144017.491628-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 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