From patchwork Fri Jun 28 14:35:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 168092 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3782344ilk; Fri, 28 Jun 2019 07:37:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqGc8ANh7AFU3eiCNAgEzhZ4k5P5d6/KhYsZLIB+fhT7qmtJVvs2ptDz25b5bvWFMlsqz4 X-Received: by 2002:a63:5a0a:: with SMTP id o10mr9864898pgb.282.1561732655668; Fri, 28 Jun 2019 07:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561732655; cv=none; d=google.com; s=arc-20160816; b=iY0J6wanaGtZ5dKYM4TPf0jSrvjYfOCjZpA8wupvMRru2GyewxmkC2ZucXj5QBfz1R HH1HXCWur97/XUJ5Xcna58R33odzU+DOfSc5PQZduVgLJ54/S+EUCDUb8+pKH5uRbgAF a2EFttfMCdxuE2tOjg0pU4uEUw9GvwGJULX3nt7OFhWWPB+SkvqLZ7bGCU7KHHEUR2Jp iajHZnB50GOHg2OiN3WuwiEM+CVqW2s2sZ7eKTGrUNVF1B6LykJjIVw/lJsZNCPoaYhh ffIxD/Z7kFHkbF29+RhIGIb8NCOmvwN/dyoIudbLgMAtBwJJqPyLozxBuG56Dz3819HO PXQA== 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=qBTi/NbeZw/a6LYSKl+ZsYkhjRm9ggdYfb7/9d4XIuk=; b=u4PcWkuo37wXIQgiWafkvx0qjm1IC6GyYmHUt1U0BnAEyiR2ZDwJExkWEUDiZ4hOER xt4H0AwKYv3TTuspK6awsGaPg2ChJPPvRbYPJ7xQN3y4FGQi9Bwpri/APRk07witO/Q4 f9fIgZ2NXb/3UhBH5dBD0VLmaFLPR9Op9nA34mp6FW5BvyhHWV4Pu2QloJ52kmhLmbXx 2+qVU3prBqoblXZ4yvOCFDz/ntaO+WkGB18aMcZCXHmZR8A7+52d38lgtjxNVisM+vVr +C+7gQDSB5rdeY2svJoTuu2EFC0XxjeUqooDHY0hF7CojoihlGQU3YvsMzB7iVZopkE1 F2VQ== 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 18si1162998pgq.310.2019.06.28.07.37.35; Fri, 28 Jun 2019 07:37:35 -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 S1726917AbfF1Ohe (ORCPT + 30 others); Fri, 28 Jun 2019 10:37:34 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57366 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726884AbfF1Ohc (ORCPT ); Fri, 28 Jun 2019 10:37:32 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5DC775EF2A6AC9C31FA2; Fri, 28 Jun 2019 22:37:27 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Fri, 28 Jun 2019 22:37:21 +0800 From: John Garry To: , , , , , , , , , , , , CC: , , , , , John Garry Subject: [PATCH v3 3/4] perf jevents: Add support for Hisi hip08 HHA PMU aliasing Date: Fri, 28 Jun 2019 22:35:51 +0800 Message-ID: <1561732552-143038-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1561732552-143038-1-git-send-email-john.garry@huawei.com> References: <1561732552-143038-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..447d3064de90 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json @@ -0,0 +1,51 @@ +[ + { + "EventCode": "0x00", + "EventName": "uncore_hisi_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_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_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_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_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_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_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" }, {} };