From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41939C31E4B for ; Fri, 14 Jun 2019 14:09:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1547F2173C for ; Fri, 14 Jun 2019 14:09:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728830AbfFNOJi (ORCPT ); Fri, 14 Jun 2019 10:09:38 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:48066 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728734AbfFNOJe (ORCPT ); Fri, 14 Jun 2019 10:09:34 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D91F2BC617D8266AF79E; Fri, 14 Jun 2019 22:09:29 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 14 Jun 2019 22:09:22 +0800 From: John Garry To: , , , , , , , , , , , , CC: , , , , "John Garry" Subject: [PATCH v2 0/5] Perf uncore PMU event alias support for Hisi hip08 ARM64 platform Date: Fri, 14 Jun 2019 22:07:58 +0800 Message-ID: <1560521283-73314-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for uncore PMU event aliasing for HiSilicon hip08 ARM64 platform. We can now get proper event description for uncore events for the perf tool. For HHA, DDRC, and L3C JSONs, we don't have all the event info yet, so I will seek it out to update the JSONs later. Changes to v2: - Use strtok_r() in pmu_uncore_alias_match() - from "sccl" from uncore aliases John Garry (5): perf pmu: Fix uncore PMU alias list for ARM64 perf pmu: Support more complex PMU event aliasing perf jevents: Add support for Hisi hip08 DDRC PMU aliasing perf jevents: Add support for Hisi hip08 HHA PMU aliasing perf jevents: Add support for Hisi hip08 L3C PMU aliasing .../arm64/hisilicon/hip08/uncore-ddrc.json | 44 ++++++++++++++ .../arm64/hisilicon/hip08/uncore-hha.json | 51 +++++++++++++++++ .../arm64/hisilicon/hip08/uncore-l3c.json | 37 ++++++++++++ tools/perf/pmu-events/jevents.c | 3 + tools/perf/util/pmu.c | 57 +++++++++++++------ 5 files changed, 176 insertions(+), 16 deletions(-) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json -- 2.17.1