From patchwork Mon Jun 10 09:59:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 166300 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp826355ilk; Mon, 10 Jun 2019 03:01:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNDnNgVPjUGO2uzbAAWk/6nDoS92g4ydMP1tjKDX8G3BklP+91r483V08zKKBjzZhBk2yi X-Received: by 2002:a62:63c6:: with SMTP id x189mr61779974pfb.31.1560160889411; Mon, 10 Jun 2019 03:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560160889; cv=none; d=google.com; s=arc-20160816; b=F/jnt7fqzUrCN5NztP6pMP6CCTcMuQOJpKHn7GYbuGGAqLHFofpmJ9RqFItqS//Mim rLKZRiZa2pcJrTIH69mmfASIIty+ayfXdzuHH348lDTs8Hl7g+vwbfLBfER1cZnhWRum OgSIz+v/wt2Eu/Ky411mI4ZInhHmv2Yv1co3+i5y+sgcZrHVQW46FYYIYZvo2GEMMVxz +00pJHx5v7OLeBpghCudRRhz/jx4zhVSVwhnEVVfjI+aiJFopHDnX8/ODAYbkAH8ykO/ pxQQSSDATqkhkuGxYeBWJAJ+GynYK+3GhFr/CqyuwBnM3zPpXFjsMcDU2z69lyB5M/eP rw3A== 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=xGdNcNi1uBYyCywN1HGoLzcZ9c/Wd7lJ8JoRJySnJCE=; b=AWKFgJQOUXBSQnzQD6yUSdcArb5dsJ7ajWACpqFszfjbDPrnNXDA4wF9P66gcropry 3tcQeqEK23l4p0Z1J4WL/x2aTpvASTwokb/9IWOQuFcBjqMuEKBJT6mMb5UGsxM4qFT3 +FEV6CRPj3bpJdO7Uzb/nAy51jkoxaVdY3esL5+p6K6u7pY0OFmWl71UoPeYb27Ok1ds We2SIPsFfq8AHkzKlI8aUE6ZEcMPloetEM1wZFmuWp6WFr1HB8WsITDv4+A5sQdtG6OR fiwcY1vyXZuX0e7+ZRk2FvorCqxzkHr+Mdm7U2VfHM1414/6KOhKuPzAO1SY+KfI0fZ3 VOgQ== 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 k13si8830729pll.64.2019.06.10.03.01.28; Mon, 10 Jun 2019 03:01:29 -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 S2389209AbfFJKBY (ORCPT + 30 others); Mon, 10 Jun 2019 06:01:24 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56684 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389020AbfFJKBQ (ORCPT ); Mon, 10 Jun 2019 06:01:16 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7A1D1DF86D7B64D91357; 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 5/5] perf jevents: Add support for Hisi hip08 L3C PMU aliasing Date: Mon, 10 Jun 2019 17:59:32 +0800 Message-ID: <1560160772-210844-6-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 L3C PMU event aliasing. The kernel driver is in drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c Signed-off-by: John Garry --- .../arm64/hisilicon/hip08/uncore-l3c.json | 37 +++++++++++++++++++ tools/perf/pmu-events/jevents.c | 1 + 2 files changed, 38 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json -- 2.17.1 diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json new file mode 100644 index 000000000000..5bdc1a533d5e --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json @@ -0,0 +1,37 @@ +[ + { + "EventCode": "0x00", + "EventName": "uncore_hisi_sccl_l3c.rd_cpipe", + "BriefDescription": "Total read accesses", + "PublicDescription": "Total read accesses", + "Unit": "hisi_sccl,l3c", + }, + { + "EventCode": "0x01", + "EventName": "uncore_hisi_sccl_l3c.wr_cpipe", + "BriefDescription": "Total write accesses", + "PublicDescription": "Total write accesses", + "Unit": "hisi_sccl,l3c", + }, + { + "EventCode": "0x02", + "EventName": "uncore_hisi_sccl_l3c.rd_hit_cpipe", + "BriefDescription": "Total read hits", + "PublicDescription": "Total read hits", + "Unit": "hisi_sccl,l3c", + }, + { + "EventCode": "0x03", + "EventName": "uncore_hisi_sccl_l3c.wr_hit_cpipe", + "BriefDescription": "Total write hits", + "PublicDescription": "Total write hits", + "Unit": "hisi_sccl,l3c", + }, + { + "EventCode": "0x04", + "EventName": "uncore_hisi_sccl_l3c.victim_num", + "BriefDescription": "l3c precharge commands", + "PublicDescription": "l3c precharge commands", + "Unit": "hisi_sccl,l3c", + }, +] diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index 909e53e3b5bd..7d241efd03de 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -238,6 +238,7 @@ static struct map { { "UPI LL", "uncore_upi" }, { "hisi_sccl,ddrc", "hisi_sccl,ddrc" }, { "hisi_sccl,hha", "hisi_sccl,hha" }, + { "hisi_sccl,l3c", "hisi_sccl,l3c" }, {} };