Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp806082rwb; Thu, 27 Jul 2023 23:20:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjudm4PdNrYm/O6JMy66hk5d/m3zi2zuumDw3XIRvCWyTo78GI/zNyTxIxO7+fUpGBbqUs X-Received: by 2002:ac2:5b4d:0:b0:4fd:f876:d86 with SMTP id i13-20020ac25b4d000000b004fdf8760d86mr815305lfp.50.1690525229688; Thu, 27 Jul 2023 23:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690525229; cv=none; d=google.com; s=arc-20160816; b=m7Fo6nfk7LWz3/RVjPz4Gq/bqaDbDv2RuijZVA3P/4o1j5FBSMkJQWPjbtJC6aDkwI LFnSWPJVRvEL6fG7FIeyx3OXXFLH++uOg3Wx6667zNHfu4qsnatgQv7A5Ul0dXgH3IM+ t5iRQQa/HS1l3kpXfB/zZWanspdIiPlk3DgvV2lAWBw4CzKmKQlVpm78SYAUz4XBtZfr Fki25Og3HMDvqmzqfuC+KxQsmJhrryFFsFS59EyOkkB5AuVEfqTIZT3+r1rbaZ6691u/ yiUA2EqyIdXZM1hgpHmUemc/GskVlTzz6yKcobeRaN5VQwqq7tFUWDSTBY+NqL3LXoQl oybg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Uf7iLa4yGezFs+Z9rzZx8aoh1KDGQED154rAkyn+95E=; fh=6JOIFq++GFBr55qsbUomW9uDlSkbtTxkzfQq3YEDQ7Q=; b=uXZ/9kikbnnxvYBuhIznAkx6c38tkianA8HmDp+9kLYFZ3tzM14HzJZ5j5fJo8lDqz FEKhWFiH3rqg2gjCWwfSeGdAJSM0QaklKgmL6Eq2q33F6RC6Y8LnRKvR5JEHXhtrJl+P lmgowQrZP6GPnjE0px7zhd4HFrI0k4JWYEdSiN1ok9LXImx/uZXSlwdgG96GciCJBHae DAjPFvj9TPkRg6ftU/DsDzMeO9zBDA5PnB7ZlIiot5og1VLebMMY13eq9S7YDof6q4Fe aWa1D6NHF0AC2l6HgIXcTWQP4C5udxzHmKEi5cs9mkP32R0+m4xj0LUKYsUzvivdPJsL rWQA== 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020aa7d5c2000000b005220ee29396si2025360eds.52.2023.07.27.23.20.05; Thu, 27 Jul 2023 23:20:29 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233420AbjG1GRh (ORCPT + 99 others); Fri, 28 Jul 2023 02:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbjG1GRg (ORCPT ); Fri, 28 Jul 2023 02:17:36 -0400 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714491FF5; Thu, 27 Jul 2023 23:17:33 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R801e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0VoOxEFh_1690525042; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VoOxEFh_1690525042) by smtp.aliyun-inc.com; Fri, 28 Jul 2023 14:17:29 +0800 From: Jing Zhang To: John Garry , Ian Rogers Cc: Will Deacon , Mark Rutland , Robin Murphy , Ilkka Koskinen , Namhyung Kim , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, Zhuo Song , Jing Zhang , Shuai Xue Subject: [PATCH v5 0/5] Add aliases and metrics for Arm CMN Date: Fri, 28 Jul 2023 14:17:15 +0800 Message-Id: <1690525040-77423-1-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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 Changes since v4: - Support "Compat" to match multiple identifiers for regular events aliases as suggested by John. - Add self-test cases for "Compat" new feature and new event_filed as suggested by John. - Link: https://lore.kernel.org/all/1690100513-61165-1-git-send-email-renyu.zj@linux.alibaba.com/ Jing Zhang (5): perf metric: Event "Compat" value supports matching multiple identifiers perf jevents: Support more event fields perf test: Add pmu-event test for "Compat" and new event_field. perf jevents: Add support for Arm CMN PMU aliasing perf vendor events: Add JSON metrics for Arm CMN .../pmu-events/arch/arm64/arm/cmn/sys/cmn.json | 266 +++++++++++++++++++++ .../pmu-events/arch/arm64/arm/cmn/sys/metric.json | 74 ++++++ .../pmu-events/arch/test/test_soc/sys/uncore.json | 8 + tools/perf/pmu-events/jevents.py | 22 +- tools/perf/tests/pmu-events.c | 55 +++++ tools/perf/util/metricgroup.c | 2 +- tools/perf/util/pmu.c | 27 ++- tools/perf/util/pmu.h | 1 + 8 files changed, 445 insertions(+), 10 deletions(-) create mode 100644 tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json create mode 100644 tools/perf/pmu-events/arch/arm64/arm/cmn/sys/metric.json -- 1.8.3.1