From patchwork Wed Jul 3 03:27:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 168385 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp264323ilk; Tue, 2 Jul 2019 20:28:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC++LKs1HmurAWiByzq2mE4ys1U52u26pRpysQfcX1MAvjT9qVfFj2NXKRvJKXgyAGz43k X-Received: by 2002:a17:902:124:: with SMTP id 33mr40271614plb.145.1562124527231; Tue, 02 Jul 2019 20:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562124527; cv=none; d=google.com; s=arc-20160816; b=S9kBZsGsAOs5M40RJ2RWD/SUMK7GFU/9VO0qBYBIhBAuhRigsEw7zPeV+f2a1rmpoo unLd4f9Y+PSZ5Xpytn4/jDawLAIeloeTD+FGQGAL8dU6K69fLXQ7DYFfdvHDqZ+ngjtN pGdCULtQa7ukiESYQ0aHfQRmdITfx3VJZcV6+k09XtBa7Ks+unmCTUUOJAPvvnPTub4v LgFSykOnDrdret4aFHQ6R50cNb2wKlD6mfl//44QpbIiCrN6jiEIpj7pAT8wH7T7KMpY W531x7Nz7LdAviJQSZEIBqqIAsvB/Hate35ivhPYS3iHIM/eoSx8PtAai3rHdfYCepyB SFQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C1sjge0NiqjBYc3uOByNW1FO57V593jq0SvertOKBlg=; b=FeplHY6CsIQJQM4eGGnCqjRaQoGsbqEl7Rd4lvLF7BntsI44KvZTJkp+YWrMFdESIb kh9qHgiM6U9MrhyQj45rTgMa1bMgJraFZnRw5Ddmnyc+BLEKgMhAOPOYT9jRc7neFh/y yoC7XCm3VrizlG9ZKZ9+7XNR/Jbf+tUQ23VjuX3C7g00o5X+EwnxMpCanQFahLjuksg9 AxcTD9PXxF4kpiFpv87ItD3B5Cimtf0xDlJbUoJrTQVzQDrafcF/V633Up1jimyMnxSO jRzaVDn6HvrYHUn4SN3Y4B7RDucncIYTG4SFa22J07a9s0rODc47LU2xt7Zsd/2p//66 EoNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hTsdmzk5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si827089pgj.213.2019.07.02.20.28.46; Tue, 02 Jul 2019 20:28:47 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hTsdmzk5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727491AbfGCD2p (ORCPT + 30 others); Tue, 2 Jul 2019 23:28:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:56826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbfGCD2n (ORCPT ); Tue, 2 Jul 2019 23:28:43 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.35.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3CDA721871; Wed, 3 Jul 2019 03:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562124522; bh=tZLkWUbJxdjBzLDOtb7oGoyrSTWXiNWz3O80bNiycRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hTsdmzk5NspOexFltziqEamAPWDZDN2LAfDqpWbGFBKPrU2+kB79VjiYejv4NFSJD YOoIr+WqsBrFjbj0kAQc9omDgu+xAgRmGnFx0JxeqtMSS+YU3tbQA5KRlznr9c6azE SVW4p/9km/6M7F6dZHkwHLhOvtkZ7FJaztul/TV4= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, John Garry , Alexander Shishkin , Andi Kleen , Ben Hutchings , Hendrik Brueckner , Kan Liang , Mark Rutland , Mathieu Poirier , Peter Zijlstra , Shaokun Zhang , Thomas Richter , Will Deacon , linux-arm-kernel@lists.infradead.org, linuxarm@huawei.com, Arnaldo Carvalho de Melo Subject: [PATCH 11/18] perf jevents: Add support for Hisi hip08 HHA PMU aliasing Date: Wed, 3 Jul 2019 00:27:39 -0300 Message-Id: <20190703032746.21692-12-acme@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190703032746.21692-1-acme@kernel.org> References: <20190703032746.21692-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Garry 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 Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ben Hutchings Cc: Hendrik Brueckner Cc: Kan Liang Cc: Mark Rutland Cc: Mathieu Poirier Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Shaokun Zhang Cc: Thomas Richter Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: linuxarm@huawei.com Link: http://lkml.kernel.org/r/1561732552-143038-4-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- .../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.20.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 d5997741f1d8..3c95affd85a4 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" }, {} };