Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36606087rwd; Tue, 11 Jul 2023 03:20:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHN1OWLQ3IVrXl2brY6rVQDvy157nZcljJ8H1LVkC5ex2zWYXxXdy1XPwqXUrmwWkEXLDoN X-Received: by 2002:a05:6402:54:b0:51b:fa0a:dc37 with SMTP id f20-20020a056402005400b0051bfa0adc37mr15568763edu.10.1689070804715; Tue, 11 Jul 2023 03:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689070804; cv=none; d=google.com; s=arc-20160816; b=DazAUxwUTX3dlZNvSTFZGVnAoMvXaeCnksuKQh0UYj/RGFAqQX9N7buHzChgJYI0ix Lo1MxT6DHgNUVZ0WqhjgJPcsXUjxXNR7ANiwa77LsCaCOUgKnQyrZkwT0laxyJ/3YDe4 oRN7qrQxPfiGQHi/ME54fyI20UVE+LZJcCwo97G0pgYYJOB1exlVzZhv7UAkG/frC5TY qvnbgAubPSjnLkoPSdWHjjeXWHS1mhxK+q6mGO6cDkNPKAwFrRhmCNA5W5nbp44xD7aK ZL8cIoEf+dmeN8XJiZPr7zIFpUFnbgMkWGJlN8R91BCkM7ZSHYIt2RrKRJNJwIK8cbtu 1ftg== 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=4j30Ju762hv/Htn2NvLX+ZdSCJXWacAECyDRNYmRIsc=; b=dNcOfGQLJA7lL0pVqO0lFmvevfzwtsq2yPD2T0gZXDzWU8UyazptC0IpkFAj/Mwmo0 vOFqk+7bLVCf2U7SXFi/X4mTOABHv0UrnE1hXDJs2g20d8Nn6w/dJvXj0SkRVXq0sybA OQAeaAB1deUur0KlOuNmHgXao5u2wNwKpKSmAIcw82MkiVnFTYPuZEeLirEUh9qvjOol Cy24fK+1c2G1tqdrWUqflhk2uqWgpOSqJSMQ256l2HCqz2IoihKrFi0dsoEdcAOZADzb XOXluwY+wR80zfmmKC5Vq1lv50PwcTxPqGBoev6fKu7laHhJcC6mbX1Xrc2kdUM7tKV/ wwEA== 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 d2-20020aa7ce02000000b0051e4c4ac51esi1867356edv.467.2023.07.11.03.19.41; Tue, 11 Jul 2023 03:20:04 -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 S230078AbjGKKDc (ORCPT + 99 others); Tue, 11 Jul 2023 06:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231328AbjGKKDD (ORCPT ); Tue, 11 Jul 2023 06:03:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1070D10D4; Tue, 11 Jul 2023 03:02:54 -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 71DF311FB; Tue, 11 Jul 2023 03:03:36 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.29.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0D3D33F67D; Tue, 11 Jul 2023 03:02:50 -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: namhyung@kernel.org, acme@kernel.org, James Clark , Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nick Forrington , Ilkka Koskinen , Kan Liang , Kajol Jain , Thomas Richter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/5] perf vendor events arm64: Update scale units and descriptions of common topdown metrics Date: Tue, 11 Jul 2023 11:02:13 +0100 Message-Id: <20230711100218.1651995-4-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230711100218.1651995-1-james.clark@arm.com> References: <20230711100218.1651995-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, 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/ 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