Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbdHXMFG (ORCPT ); Thu, 24 Aug 2017 08:05:06 -0400 Received: from mail-by2nam03on0058.outbound.protection.outlook.com ([104.47.42.58]:24569 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752650AbdHXMEy (ORCPT ); Thu, 24 Aug 2017 08:04:54 -0400 From: Ganapatrao Kulkarni To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Will.Deacon@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com, acme@kernel.org, alexander.shishkin@linux.intel.com, peterz@infradead.org, mingo@redhat.com, jnair@caviumnetworks.com, zhangshaokun@hisilicon.com, Jonathan.Cameron@huawei.com, Robert.Richter@cavium.com, gklkml16@gmail.com Subject: [PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events Date: Thu, 24 Aug 2017 17:33:49 +0530 Message-Id: <20170824120349.2323-5-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170824120349.2323-1-ganapatrao.kulkarni@cavium.com> References: <20170824120349.2323-1-ganapatrao.kulkarni@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (10.174.208.11) To CO2PR07MB2567.namprd07.prod.outlook.com (10.166.201.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d236de6-67e4-492a-2884-08d4eae853ba X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CO2PR07MB2567; X-Microsoft-Exchange-Diagnostics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7v9pRKWBJDRmLYn4oK5GWQEK5WXWOzxJhJAOKfdORWkfGcCU6MYn8HILFa3ot/cM8tqRZ94zFzFFhscU84HHHYGCy+kYbmzVPlIDfZFDu9+C+DLlaUwL/d9NX2cdBdBqIOsdOwrsPM7AkxwE73OgWfXZxIyfssA65o1wIQfsHiv8GGB6PodRJeqksD0JNaMeoTVfmcIAjKI7Wb5YEcHiRL48tax5SI9sUQdm+hg6VfAWSQJn4jyg1LO2cgLkj36G3TwRDtpkI5Au6caE5urtvAOxrIFDqhWp2jQgjAb8lt8UsXie42SLiUdcQnq7MIbbHF+4DRRihiPVdmSjGqnqAM6A6HszY8OzsRkvzMWohmRty;4:6dtNp9o1J1cDZNb99d1DBQCm8DDiWnIMLLLLHtGO9I/uZdJ4WvX0kpLV8ccvNWUhIai+dvwv8k/kE01/4GQmpEs4VELzqBwNuJgApjEAoJH7biR6gNpACiF7D/KcVV33GzjciOVhkXDSteGCXkcLyCwCz1uk/dl6/+fzxfDtvkUv53h1GPz/hkigEvhFrw6JXOxlZ1fORaXXj0/xoYcWg+7Zfamt/OPV7K3yn5oOkPuEXp87nOE3/ha7vTH7sEuC X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6041248)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR07MB2567;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR07MB2567; X-Forefront-PRVS: 04097B7F7F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6009001)(189002)(199003)(97736004)(25786009)(105586002)(42186005)(189998001)(110136004)(2950100002)(6512007)(106356001)(2906002)(68736007)(4326008)(33646002)(53936002)(5660300001)(6116002)(3846002)(6506006)(50986999)(47776003)(48376002)(7350300001)(5003940100001)(86362001)(7736002)(305945005)(50226002)(66066001)(8676002)(72206003)(81166006)(1076002)(7416002)(81156014)(50466002)(36756003)(101416001)(6486002)(5009440100003)(76176999)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2567;H:mypc.cavium.com.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ganapatrao.Kulkarni@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2567;23:kgqW3i3dWQysZ6Um9FkLW8nIPmktMfiThcgf+nPx1?= =?us-ascii?Q?8xJriKcpzL/yvZmvAwZUVEQgvFeVc5DkOpT9cTi2kFe+QpT4VDBzJE1GWul8?= =?us-ascii?Q?X6OdkRhGBPu10Uch2sXcdS+WYQ3pEXr2cebc6koTVGv15b5IGd1Dcae4iT02?= =?us-ascii?Q?72GcSdZ5gcVKuHdHxGPdf2XSpMwKJzy6i3xOQLpd6KPiJnN3Fn/7Ffc9cPuS?= =?us-ascii?Q?bG2FaH9GG+xB/r+VRX1Wu11MscyQdnev1qRwEpSglHmnGPQnXnx0wvgVE96t?= =?us-ascii?Q?++iqeScNNQfli0ah/pzG+o2i8+9y1xfAZj0t8h7UfVTBWsJWvOtFCw/gx/K/?= =?us-ascii?Q?b4fEnSHbmJmLDgT2AMBmDqbzTzrrQkmOGf4KO8Pky4ET1jQOIce/FJqtnjDW?= =?us-ascii?Q?0J1cIxUT/GSPJMgZrHwlXKdCFVe8Xf4TVeDtvQYK9TDjQ7iIcvx7DcuOktrq?= =?us-ascii?Q?bwFJmO4xgProlno/m2o8e61BUvMvDvH4Unf71zMp2Uy5fxtYK9qb2Fa4fTmb?= =?us-ascii?Q?PSFfK2OCl4erUsgrHq5Hn4wg6I8gN6+xm8wK16DenuC6auSIRfevV9a3q581?= =?us-ascii?Q?HYCcSxloQf5DOwzXZ2RKHYsDPpbBkgAgdu+CamhITWtBs1FMB3YPqW0oErNa?= =?us-ascii?Q?N1PEMpydXXNPY/yVD+BXKAqXYxxH4bFzWat4R2CuZjoz32UYvuL9yGx/0oiG?= =?us-ascii?Q?SK1B3sxMBY7434Wd1wZsThGTRso93ttB6zSnUS9q8biG3WoLetaivMd9EWxV?= =?us-ascii?Q?5ThcV9prKq4MXg1WblwFJpZMGRQnN6F87WzaCFyQfjkC//moftCsU5xBjlIc?= =?us-ascii?Q?8BSCD2j75vnxkSJbahYJFJhbIcCUHTj63ma7kUhp1zWcm0YFVCKUPQD1MizT?= =?us-ascii?Q?kpLogzK6DSOi54UcSiih8aBL7Ga5E+OvCRxgUzv4kpsE93S5h2m1Nv6wX+al?= =?us-ascii?Q?9GjfIZoGQGq1yjNDSw6XVU7UY9Xj8jVaqn18lgwtBCnR+yaXcj0kOvZSPwwo?= =?us-ascii?Q?nS1UGwG17vgRClYvep0eHjQBSIFnULT9hOIynBNSy+WnhmynwqVqwpy7w29/?= =?us-ascii?Q?V/lH8UesBBORNOToXKhBu6lBs1WAWMUTCTCAnUtEa6BBVmQ4ysTwenCu8End?= =?us-ascii?Q?edj298lR5xvcEb5W8TE4ivwIXMfb1Mh?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2567;6:T/ygY8v0K85DQ2EAKSHb7o+Oj/+PjZf6E8Eg3QyW/3qc+8Uw0wTs5HVC1P8MUD/KHEl3z2gfh0vb3ECJe0uFXVRpTepZ6R+4DEzHSTzirY6YYCuBak+o4DWBza49oT9easO/MKABwVZz8wWQTyT625zfejdyxoq/iCvbgA7nLTaxjxD3b/OUZA/7HD1LSwHMpyspK8cbWKu7NtMhknYmmLzETgHuKAKfwYmRNvuhj3eksbDjR/hFWA0uIQP/92HFmkZIBDcOTX5qyXhulR+V8x839arfovxqMgP9kPwjnS3FciSwIE+SvFbgp1iOq8di8882lvAN9h2Ky9TLr5itFg==;5:n+sRUpsFv6dlLqwgKuC6d4WtigCXMS2lWFnT6lGekjuxiALMafALm7MkvOwggaLvrhULWJkb78PeaFmIVUURExEEGfpDHQAQXzhIWMIOEdtwm7er9pN8JgFBfSbe/M7B0xajh7W7CUMbYCLAEqt2L92aRRWx/yOOwtPEG7ZksjU=;24:EKty3ra7antdaUuTdGAqE29XyIMHaujh8Z2wK12adBeTMvYWgzZyIQzeQJZ4L2d8NjVq/9vUd1niQLdxzaZuUsyGZWfanw/QPT26gWCkceU=;7:Z72FtSnYNgejqebNoHnhQY6sOulBfQAW1R2TSWkhb0RR1QMooUlRCRooLHgjo/1mNJ+u9ZTehJXJS8XndKf+hJpOnWuu7Y1Rp98/8FMBKoZZ8GmJM17aOgf1vuiMpoBVtDMO8aZLxmkiwb7uLfZzzH5CwLMtNqo9/DPznexFzWBoMZuwIgsEVXjuQbN4S+eRWUsRnMfBG6BFUpgHDDuGDjOoP4THUSsvvEHO6L2RAfw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 12:04:48.2072 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2567 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3552 Lines: 101 This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++++++ .../arm64/thunderx2/implementation-defined.json | 62 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/mapfile.csv create mode 100644 tools/perf/pmu-events/arch/arm64/thunderx2/implementation-defined.json diff --git a/tools/perf/pmu-events/arch/arm64/mapfile.csv b/tools/perf/pmu-events/arch/arm64/mapfile.csv new file mode 100644 index 0000000..7167086 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv @@ -0,0 +1,15 @@ +# Format: +# MIDR,Version,JSON/file/pathname,Type +# +# where +# MIDR Processor version +# Variant[23:20] and Revision [3:0] should be zero. +# Version could be used to track version of of JSON file +# but currently unused. +# JSON/file/pathname is the path to JSON file, relative +# to tools/perf/pmu-events/arch/arm64/. +# Type is core, uncore etc +# +# +#Family-model,Version,Filename,EventType +0x00000000420f5160,v1,thunderx2,core diff --git a/tools/perf/pmu-events/arch/arm64/thunderx2/implementation-defined.json b/tools/perf/pmu-events/arch/arm64/thunderx2/implementation-defined.json new file mode 100644 index 0000000..2db45c4 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/thunderx2/implementation-defined.json @@ -0,0 +1,62 @@ +[ + { + "PublicDescription": "Attributable Level 1 data cache access, read", + "EventCode": "0x40", + "EventName": "l1d_cache_rd", + "BriefDescription": "L1D cache read", + }, + { + "PublicDescription": "Attributable Level 1 data cache access, write ", + "EventCode": "0x41", + "EventName": "l1d_cache_wr", + "BriefDescription": "L1D cache write", + }, + { + "PublicDescription": "Attributable Level 1 data cache refill, read", + "EventCode": "0x42", + "EventName": "l1d_cache_refill_rd", + "BriefDescription": "L1D cache refill read", + }, + { + "PublicDescription": "Attributable Level 1 data cache refill, write", + "EventCode": "0x43", + "EventName": "l1d_cache_refill_wr", + "BriefDescription": "L1D refill write", + }, + { + "PublicDescription": "Attributable Level 1 data TLB refill, read", + "EventCode": "0x4C", + "EventName": "l1d_tlb_refill_rd", + "BriefDescription": "L1D tlb refill read", + }, + { + "PublicDescription": "Attributable Level 1 data TLB refill, write", + "EventCode": "0x4D", + "EventName": "l1d_tlb_refill_wr", + "BriefDescription": "L1D tlb refill write", + }, + { + "PublicDescription": "Attributable Level 1 data or unified TLB access, read", + "EventCode": "0x4E", + "EventName": "l1d_tlb_rd", + "BriefDescription": "L1D tlb read", + }, + { + "PublicDescription": "Attributable Level 1 data or unified TLB access, write", + "EventCode": "0x4F", + "EventName": "l1d_tlb_wr", + "BriefDescription": "L1D tlb write", + }, + { + "PublicDescription": "Bus access read", + "EventCode": "0x60", + "EventName": "bus_access_rd", + "BriefDescription": "Bus access read", + }, + { + "PublicDescription": "Bus access write", + "EventCode": "0x61", + "EventName": "bus_access_wr", + "BriefDescription": "Bus access write", + } +] -- 2.9.4