Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2898401rdb; Mon, 4 Dec 2023 10:24:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9tD0VAVpmr/StWCloR6c3TMC8bKLs2iqx6PyfTqN8EPdSjAZ5EEw5M2JvzZrmkDHf+U7G X-Received: by 2002:a05:6a21:9982:b0:18f:97c:6147 with SMTP id ve2-20020a056a21998200b0018f097c6147mr6207491pzb.68.1701714257709; Mon, 04 Dec 2023 10:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701714257; cv=none; d=google.com; s=arc-20160816; b=qFkIrhk72QaE36eOZsMxbJKc9k7Yp3dBEQAEJtVxlXwlxnnjV0+z9YdbKF9hieibuP JaHHVV/q5AJozbXXk1F0PvasbOvto2PoiYmycVKFJMM4uJoxzHINOOx6+/9gIoHM0ZS0 kbKAeC0hriHbcJTBDT14m19FP5lOlLCWjYDZ0EcPhLep68vC03V93FJXnQufBZy7yjyq L0Q69/72A2qZvZXdcUe0z9da1Cf7/7dQBWLSMMDq2bfLlLAsEX/Rxt9KsfVosVZy+aJP CutE6xOpr5Z6WiCCIBfjSu/Hh6YfTXxjWcU8+tiaNFKyVEdOrVrISunZMlijPeTqbFGb +OyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=X7oIwN0gwgnh0JH2uoSPjyFXY7LBES97cup/kWuAMDc=; fh=GdNrbVz4+rD5GDxx28FfX7pstWQA2odnFE24GYz37s4=; b=xYeIpHmu7rGi1PKbRFTvpDrJFD4GlJOb7v0qmRbbNxh3z6dyXeEuSBsZ9yphLGt12x lbgGFfIJqSb5PthvTb2TUIRlvFgD3tqLXNnr6qliHnmsq+z8Sn5hoEox9cnDvrhlrnP/ uJrV/eUy+/vJiN9Zaj3NtK+QSQDJ2nwFGiXq75NiIjZR3hXYiEmDjgZ62lLFN/KHTjH8 ukszk8b4xtHWhWMiTBYeGqgdthkA1l3pKwECf6adPmjG7UtN7zMva3xX8hZI77tJwR2E 91u2JOxlUw+XP3Do0TtA4ugFGDgnNY8E90vW+KhMCG1oJDoz3z8dJE5u6SFxgXFNvKN2 NSgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="q92XS/kE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q31-20020a63f95f000000b005c6001ec190si8527202pgk.892.2023.12.04.10.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 10:24:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="q92XS/kE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3A31A809B750; Mon, 4 Dec 2023 10:24:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232840AbjLDSXg (ORCPT + 99 others); Mon, 4 Dec 2023 13:23:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbjLDSXc (ORCPT ); Mon, 4 Dec 2023 13:23:32 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83816FA for ; Mon, 4 Dec 2023 10:23:38 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-db548f8dae4so3114866276.3 for ; Mon, 04 Dec 2023 10:23:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701714217; x=1702319017; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=X7oIwN0gwgnh0JH2uoSPjyFXY7LBES97cup/kWuAMDc=; b=q92XS/kE26MVTRpPzE2bIiAyjv9qbVKDQsWy1X7HPBmXk5UD1My1tKNPadBkxZX291 j5CRjW4DGyTjtALsasg6vgp+lUaRbhiYArI4+d9G5zJcBCiz2RPfVsUSW7sjfxpNZQkc iYMBWAewjLxEVkZb8UmH6SWJE0KXOurqWE9oac+BB5KlwQcuLKIllzO+CByr7kWyh2j/ ZZoWLB0wwnGOAmgGEhud/yW+H/QXNlm1TTXnUcpOZ4H9NUQhpeyFMcXrZdmym6Ck8XIm syVam1m3pwm9Wdxlqd2hKY/kfpNH2H7R4HIi2Ik7jjlPgrGzG24BXJfMIjWUpRgnpKWa HxWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701714217; x=1702319017; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X7oIwN0gwgnh0JH2uoSPjyFXY7LBES97cup/kWuAMDc=; b=VuRi3YvUxacBK2fioTgsNMym/upgDfB8qDxGi/Hd2Z7o6J9ShGvruLKVWVVqqmrTFS 1K5AG6iQiq0UBg6oRAq7h7i1cA+W+d0mX4zgqGDOvdcHnub8a9jOJb7/JPzkF+5OHheC nUV/oc2847WCwi0PJS1v4NRzHS84qOBws2aOUKqcKnQ03dDexDGMf4jJvzMCjGzvLKFD FPBg4V0KbsLxWFnowQtYvU9lK1QXL2lxB4hNx0IWCLO2zEgN0vUvVgNvBr9yZeboaqwv qPyDnNq43Gd9u5mu2WqZGDPZo4X3ZLSj8noD47VZvgFhW61ODBr1Y/xTrn0bpZFON6fj 2sfQ== X-Gm-Message-State: AOJu0YxbAwwDKssHTWxsZ0PD5oLaQId79We/QLNY0bl5GYebEEr2G0ss PJIXi5wLN8HXF9j/eDOjb7xowXWWzNMi X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:b241:d804:967e:c827]) (user=irogers job=sendgmr) by 2002:a25:d4cc:0:b0:db9:772b:1020 with SMTP id m195-20020a25d4cc000000b00db9772b1020mr44975ybf.5.1701714217695; Mon, 04 Dec 2023 10:23:37 -0800 (PST) Date: Mon, 4 Dec 2023 10:23:30 -0800 In-Reply-To: <20231204182330.654255-1-irogers@google.com> Message-Id: <20231204182330.654255-2-irogers@google.com> Mime-Version: 1.0 References: <20231204182330.654255-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Subject: [PATCH v1 2/2] perf vendor events arm64: Fix default AmpereOne metrics From: Ian Rogers To: John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Ilkka Koskinen , Kan Liang , Kajol Jain , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 10:24:12 -0800 (PST) Add default metric group name for TopdownL1 metrics. Fixes: 59faeaf80d02 ("perf vendor events arm64: Fix for AmpereOne metrics") Signed-off-by: Ian Rogers --- tools/perf/pmu-events/arch/arm64/ampere/ampereone/metrics.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/metrics.json b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/metrics.json index e2848a9d4848..afcdad58ef89 100644 --- a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/metrics.json @@ -231,6 +231,7 @@ "MetricName": "slots_lost_misspeculation_fraction", "MetricExpr": "100 * ((OP_SPEC - OP_RETIRED) / (CPU_CYCLES * #slots))", "BriefDescription": "Fraction of slots lost due to misspeculation", + "DefaultMetricgroupName": "TopdownL1", "MetricGroup": "Default;TopdownL1", "ScaleUnit": "1percent of slots" }, @@ -238,6 +239,7 @@ "MetricName": "retired_fraction", "MetricExpr": "100 * (OP_RETIRED / (CPU_CYCLES * #slots))", "BriefDescription": "Fraction of slots retiring, useful work", + "DefaultMetricgroupName": "TopdownL1", "MetricGroup": "Default;TopdownL1", "ScaleUnit": "1percent of slots" }, -- 2.43.0.rc2.451.g8631bc7472-goog