From patchwork Mon Jun 10 09:59:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 166298 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp826236ilk; Mon, 10 Jun 2019 03:01:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTpR8XR/rAmckJ/KPwEnfOGkP5wrY485Fr4c9Fk8ZoibGvOOc+yzkKkBc8KJI38LOACjsE X-Received: by 2002:aa7:940c:: with SMTP id x12mr44579188pfo.80.1560160883041; Mon, 10 Jun 2019 03:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560160883; cv=none; d=google.com; s=arc-20160816; b=0PTE2SVtHbVYh0slvQPdVpDEGjNEJBXWbY6W/xru4t3wpufv0MdYUPrG6hpnRPTWrS TR252jxFXZvsWpfSALjV3Zm5yjENG+wS/mqprre6ybRmHxOcMoXXjmMx62bBlSzvieKG Vx1AHVXfmF18v0Gqqc+0uBLdVgutOq2uSpQzu3E4GWm9wVxZEpN1DZMcBy6QZzAY5Tf2 cpq086yn7s9DJhSakdQRL1xPyXzrishoRE4+1ySe9Pe6DRRmDbRyH9Xz97E9Ep5uQUMx 6HHq6vAjjWTBLuD9/RJ8PBRZx1fGA6oTen9bpC02WoUq+7dpNsj06G0DE9vhurHNzr/0 x58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=wTCQxUQwQ1cXMlc3LgA65BE1DCr6LO//vd0o86jdlkg=; b=ZXcnY5667q7RpxWRHGeXSMwiHT5aVKxzPrn8yRAGmIbjdKXJKUap+hBvhAr84dN+EG gjW4xBdnw8ORGuUIxeVooX7ZflUUaXYShTH2tQ/kRSJ/f7/Wvzsxc7dTfFDe66DP1213 bMTzgn5nbFUnoemRRrga+XlETeUCsSo3Zci+WpZEqSd1ZqR5jqFVOfckxw7RcEdC+xnA GnXunH+6zRx71fTsEr5pk2xG9UgbNUdGPzkvWSKArhGE9yZ2b/SIdAPgux+ydOTcoPCI EQGNx8iKieIhSL4xLH/NRGPOAj5nDAJ6BEINCP1M75z2Cxs4fdLbiaLluNgonbASi7DE aCEQ== 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 y12si9754000pgr.329.2019.06.10.03.01.22; Mon, 10 Jun 2019 03:01:23 -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 S2389150AbfFJKBR (ORCPT + 30 others); Mon, 10 Jun 2019 06:01:17 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56522 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389030AbfFJKBN (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 0AE522FA1468851684E8; Mon, 10 Jun 2019 18:01:11 +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:52 +0800 From: John Garry To: , , , , , , , , , , , , CC: , , , , , John Garry Subject: [PATCH 4/5] perf jevents: Add support for Hisi hip08 HHA PMU aliasing Date: Mon, 10 Jun 2019 17:59:31 +0800 Message-ID: <1560160772-210844-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1560160772-210844-1-git-send-email-john.garry@huawei.com> References: <1560160772-210844-1-git-send-email-john.garry@huawei.com> 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 Add support for Hisi hip08 HHA PMU aliasing. The kernel driver is in drivers/perf/hisilicon/hisi_uncore_hha_pmu.c Signed-off-by: John Garry --- .../arm64/hisilicon/hip08/uncore-hha.json | 51 +++++++++++++++++++ tools/perf/pmu-events/jevents.c | 1 + 2 files changed, 52 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json -- 2.17.1 diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json new file mode 100644 index 000000000000..f94b8513166e --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json @@ -0,0 +1,51 @@ +[ + { + "EventCode": "0x00", + "EventName": "uncore_hisi_sccl_hha.rx_ops_num", + "BriefDescription": "The number of all operations received by the HHA", + "PublicDescription": "The number of all operations received by the HHA", + "Unit": "hisi_sccl,hha", + }, + { + "EventCode": "0x01", + "EventName": "uncore_hisi_sccl_hha.rx_outer", + "BriefDescription": "The number of all operations received by the HHA from another socket", + "PublicDescription": "The number of all operations received by the HHA from another socket", + "Unit": "hisi_sccl,hha", + }, + { + "EventCode": "0x02", + "EventName": "uncore_hisi_sccl_hha.rx_sccl", + "BriefDescription": "The number of all operations received by the HHA from another SCCL in this socket", + "PublicDescription": "The number of all operations received by the HHA from another SCCL in this socket", + "Unit": "hisi_sccl,hha", + }, + { + "EventCode": "0x1c", + "EventName": "uncore_hisi_sccl_hha.rd_ddr_64b", + "BriefDescription": "The number of read operations sent by HHA to DDRC which size is 64 bytes", + "PublicDescription": "The number of read operations sent by HHA to DDRC which size is 64bytes", + "Unit": "hisi_sccl,hha", + }, + { + "EventCode": "0x1d", + "EventName": "uncore_hisi_sccl_hha.wr_dr_64b", + "BriefDescription": "The number of write operations sent by HHA to DDRC which size is 64 bytes", + "PublicDescription": "The number of write operations sent by HHA to DDRC which size is 64 bytes", + "Unit": "hisi_sccl,hha", + }, + { + "EventCode": "0x1e", + "EventName": "uncore_hisi_sccl_hha.rd_ddr_128b", + "BriefDescription": "The number of read operations sent by HHA to DDRC which size is 128 bytes", + "PublicDescription": "The number of read operations sent by HHA to DDRC which size is 128 bytes", + "Unit": "hisi_sccl,hha", + }, + { + "EventCode": "0x1f", + "EventName": "uncore_hisi_sccl_hha.wr_ddr_128b", + "BriefDescription": "The number of write operations sent by HHA to DDRC which size is 128 bytes", + "PublicDescription": "The number of write operations sent by HHA to DDRC which size is 128 bytes", + "Unit": "hisi_sccl,hha", + }, +] diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index cf9a60333554..909e53e3b5bd 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -237,6 +237,7 @@ static struct map { { "CPU-M-SF", "cpum_sf" }, { "UPI LL", "uncore_upi" }, { "hisi_sccl,ddrc", "hisi_sccl,ddrc" }, + { "hisi_sccl,hha", "hisi_sccl,hha" }, {} };