From patchwork Mon Jun 10 09:59:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 166296 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp826122ilk; Mon, 10 Jun 2019 03:01:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBMu6NsFFZEO6R3zYrzu5G5QPSFl/G2XDAQz9g3W+W4O42LF2+pU6HKE8RYAfqKMNK0dlG X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr31160222plb.283.1560160877837; Mon, 10 Jun 2019 03:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560160877; cv=none; d=google.com; s=arc-20160816; b=NooH81PVQ/8a7YE3zkmHtq4voAFOqhnQ/F0ihE9AdIb1vGG5JoIVLE7E1uZPDzhnjQ UCp9uecQ9tA70zPUYR4XMgWxwiYF7EPfQHyuj4hPDbHk+6OnDFsR/4k9ZDhMn2Nk9ZBT ftW9R93hvFxwx5zds290R+KRbzoyDn+fXDdBg/atuk6kka07tHM+gtv+NHx2aGsjlb0V Jdriwi/QvsTuzyVTPZl4PeinRx747WDQLrqLgdknq2+ASK9y7xPcmuIza1JjOP66Ppm6 XbIle/jOWrn7/UOi6ZclhbBHFmTtJ5HIGM78gjMhzLfa1bGtBHXCvvMHFONufUPEHGNF TdWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=4D0HXv+KX5al4esHriGi5PAkS2n/Ib+7YEkLlvAS73A=; b=CzZ01TZsPi6rCydfh9TR1wY1oc98tKGd7wH7xPa8NTgJN4lpDV1H4QgnHf/iQESdbb Saa2FewsKU9UocTrRCJMoW5UJ1oGUPI+JM7cECgbs0bw+MGdt6njCRZbzGdXjsDbwOeM d+H6ljkPxypghoprNBM2cLSs00y59RrBkJw/oSAJj23TDARuR+ONFmO1fxl0ljYfC9Ju QBq8ITSOE1NvqFHli7MdqOuMJsHfI8oOFQgUJZ/Lo0wlg9QD23yxRVQ0biKHYaNEKgiO gF1GZxeVzSEYLEHUC/pbINe3LMt4LAls+RNrqivkbhIYPjjZXstOzMh59P099fCxFRGG OtQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si10375006pfk.201.2019.06.10.03.01.14; Mon, 10 Jun 2019 03:01:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389121AbfFJKBN (ORCPT + 30 others); Mon, 10 Jun 2019 06:01:13 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56518 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389020AbfFJKBN (ORCPT ); Mon, 10 Jun 2019 06:01:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E6281F61A87CED15321F; Mon, 10 Jun 2019 18:01:10 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Mon, 10 Jun 2019 18:00:51 +0800 From: John Garry To: , , , , , , , , , , , , CC: , , , , , John Garry Subject: [PATCH 0/5] Perf uncore PMU event alias support for Hisi hip08 ARM64 platform Date: Mon, 10 Jun 2019 17:59:27 +0800 Message-ID: <1560160772-210844-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 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. 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 | 61 ++++++++++++++----- 5 files changed, 181 insertions(+), 15 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