Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164518AbdD1Ezp (ORCPT ); Fri, 28 Apr 2017 00:55:45 -0400 Received: from mail-by2nam01on0084.outbound.protection.outlook.com ([104.47.34.84]:24800 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1423837AbdD1Eye (ORCPT ); Fri, 28 Apr 2017 00:54:34 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=cavium.com; 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, gpkulkarni@gmail.com Subject: [PATCH v2 4/4] perf vendor events arm64: Add implementation defined pmu core events of ThunderX2 Date: Fri, 28 Apr 2017 10:23:47 +0530 Message-Id: <1493355227-31492-5-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1493355227-31492-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1493355227-31492-1-git-send-email-ganapatrao.kulkarni@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0068.INDPRD01.PROD.OUTLOOK.COM (10.164.116.168) To BN3PR0701MB1686.namprd07.prod.outlook.com (10.163.39.152) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d67f0f6e-6661-45bb-0471-08d48df2a7d2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BN3PR0701MB1686; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1686;3:81Xhink7bv0H9Wk7h9Yz3+oHCyx/ZuJaHdeJUhe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Nlg2oqhWdS2D9saKnB+yy+1jLy794T01JabVjaxLHOvGIsqtU1oF1Ko3+GaGIgD4ZgIMHhsIFTizYcIXGHQzTKF2+/TUMoroDp8nmyAO+Eb47NoutNIjK2J6IIDWpo11Uwn9hYo49+i380/pJFGg2sHHN9DWrKxzb7MzQFcYiS87OIWn8B9rEkub/koG9eD+rGCQ3xAR36fAhVfIcnk96F0zfENOYmee1ElEA62MFrWGrCi+NSBI3zNq2tt8Pf11bkLJ7S93TmScqVZ2tTdLRMP3K3H7p0hjGD64l9UA3ctj8uNEqk+xmaYK2nJdHqRo+f1fZEaa1StjcXlnuIA4vQL5O6YRsDvr3/iP+dWgeLHDdr4LbkKJH9r2UhGe+wQgBaDyP7nvzbykuWGx+WFpsxZ5dhjueFKV7yjQTdv3s2Xlss+tC6z5fRJLOFZ9ijPJJtGR/b/pnpyXgwxJMtoqTfpc3sTYe0JZ/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(6072148);SRVR:BN3PR0701MB1686;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1686; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1686;4:WW9lBobOYJPv9950Fg1wSXOAoYLyZ4G394W8Le/Z6cMNXvPQZGCGSsggEtxwRWVqHGiJEuAoHCpvYI0l8bIflhU9pKCwHkWVFEykuxwkzBtIPnqnSNGbyBrqOBCFSYZKChy9A7Q3QQfeSZNE6tfSOZ5YsD5tuSasQIUCkOOykNjA4v0YrJIXC6TvMBnQUhifC03fa8Ck3vP3NoNs+qr/vJM+DfD/hUzWOZ0qV9xY+OggBnRLTwsL1D9MjMyVaS1CMLVhTPIWIw5RRVzDUAT06HMXTg6MZir9xFTQJBCybW0pn3OH0juuq/KtHXev5dVKxJFvGEKkssNYRzuwUSDAzcIxV41FHd0ivDcr+RA4JDOMiZPKpPr6keuyMkjXDBzeO4C9fYG8emFtLO8/mgTUufjMFBdHx+IBqpincZHun6Lke9/8OUD7W14YTVvBOSprRoiXLYcsjeO4DnAHMqaSWl+sUc8+JiiNqGfvgzN2Q2RU7NUpW4sAvSNP5Rl5N5hcyiBjNr1mfmVwHK6Sre5dFPk/a5EAq1oVSqVrZkqdYhKF2p9S4xsafDJKpbdvnQj95PaFGptQWQIophZmySQTzYpH95O3bMRwlwPFZrRWLcYrFXMNWyC5UB8j3yGwt3Bzj7sjqMyCFZqVpjhuLQvLsfp34YgIeS8NOg2EOWc+kLTKQoXDNrT7c6Xgn4QlhteNPtrzhSBghdHKLgmNZRBUKsZfdy5WY/DzhEFXlL6XiyNbXFHvPvG9thSxLjya9Hu9sgpC7vWAFZTArbYmWuqr9A== X-Forefront-PRVS: 029174C036 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39840400002)(39400400002)(39450400003)(39410400002)(50466002)(3846002)(86362001)(6486002)(36756003)(5009440100003)(48376002)(6512007)(4720700003)(7416002)(6116002)(5660300001)(50986999)(2950100002)(6506006)(53416004)(25786009)(42186005)(5003940100001)(38730400002)(110136004)(50226002)(305945005)(6666003)(7736002)(33646002)(4326008)(8676002)(66066001)(47776003)(189998001)(2906002)(53936002)(81166006)(76176999);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0701MB1686;H:mypc.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0701MB1686;23:2Y4qtRNKPS14gEkRZY7XfAbj+eXptGG8XnzRDCh?= =?us-ascii?Q?6hk/TB6hyHwwmwNKWseIhYqZy2JKTV0TQAdw8LZJORIfehOaBNOYjJZ6udHE?= =?us-ascii?Q?cC7JX2umBJOI1WJmm46z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-ascii?Q?xi0LRA8Ocht6JtoabHodFR7CDTLnHI/fudiFkYmSfU59o9q8rnC8CqrpHdh0?= =?us-ascii?Q?EWuJKptI=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1686;6:7tcn2xYq9gLKaZOLEr3etqt4C2QL4eWIOLCsGGnatjmoFmKHKfrwpEPPzRjM8DR9c/k5SkoaDOTUPnWRNj4e5PbW5gm7uNkxutoFSfi4s4NOnBZ0RGONw/Ycv9dwWsjmjzunx2AGkEg2qK+hP+GC6jv5Z08RxIzr5D7xlSO/HLgKO7GJNYAMmDNXOmHiQQfvBRG6hv7EnOZBt9HBMK9wVFY1nIBtc/EOpDd7NwcQD0B50YHfAG6RjAkdyWRROra/bgGfib7i5IS76ppHsg6HV2DGa/Gh7K0UpcIzzSPlF9ygYMREzz87K4bijqav1v3bNgEZVfYQxBxgt/GQrzY3YDSrzaHA55D4MwdyYSe29O7cr+EgijUrMAWSwrp//6i7p/96dRqb2vINdQeqTfKAfm8VfJDPQHTj6yBnKcmPBKS0oebm8octh6N34aJaTayYtlbRMXSjTM8qUmHfJX6lr3iWnv7fT61GYW8CYj9DLwxrdzwQObol42z7UxxNKI7KC6AvBge4CTHyAZ3pafUpjw==;5:Dx6UNULcDaLu7GtZRFbxP6quIHnIDcCbS6SKTHYCfYcKs8Fm5nNbVHFZ9uDlYSOWVVuIu6L0sEvkmvR5td4IUxG5BjjRyHkw2lRYyc0ZC3/1sV/JVMVWxXoDsMr9AcAp/mNDit3fYLcvrzuFuNX9zA==;24:Btoirh/ljWYsQpuOUnmH5sS1T32s63dhtyaaZ+r6ga8DS6T3YsRJ42c4M/oydFwbSYA/hEEMa1k36o1XCX8y5PaJGZD2me2HxT/MEoxhFnI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1686;7:7KqWJpx79jQApzIf7wvUM4LjvXeDYsd7Lopb7nUV6wzjJagldZmGPwT+pHvBym0W9xQnIQBAKnXLVBYpAtv6q6sqt2NuEPGIxefZPWpkay6ag/8YkD1kyAVFz+Hpxs+cFHBKJOtkeQUBQxYbDSeDbwJl/xziusLkHyL/v4t6bsONUyUVlDifr6WiJNaADJMF77DADG3hFLa8BgHvGKpS3WW+LgJiBip0zRFCJGKX1ZIYz8zdlX6p/fT6Z+fxpe/9itdEB1NsqF+2lwO/rV3dWhq3qC0N0gzQZ+ZLNdg+h7o3OEgIOKMLeA5Be3P8WxkMPg8GclxgMX05ecN5H7QqLg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2017 04:54:26.3554 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1686 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3564 Lines: 100 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 | 14 +++++ .../arm64/thunderx2/implementation-defined.json | 62 ++++++++++++++++++++++ 2 files changed, 76 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..bc9f798 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv @@ -0,0 +1,14 @@ +# Format: +# MIDR,Version,JSON/file/pathname,Type +# +# where +# MIDR Processor version +# 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 +0x00000000420f5161,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..cdb03db --- /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_access_read", + "BriefDescription": "l1d cache access, read", + }, + { + "PublicDescription": "Attributable Level 1 data cache access, write ", + "EventCode": "0x41", + "EventName": "l1d_cache_access_write", + "BriefDescription": "l1d cache access, write", + }, + { + "PublicDescription": "Attributable Level 1 data cache refill, read", + "EventCode": "0x42", + "EventName": "l1d_cache_refill_read", + "BriefDescription": "l1d cache refill, read", + }, + { + "PublicDescription": "Attributable Level 1 data cache refill, write", + "EventCode": "0x43", + "EventName": "l1d_cache_refill_write", + "BriefDescription": "l1d refill, write", + }, + { + "PublicDescription": "Attributable Level 1 data TLB refill, read", + "EventCode": "0x4C", + "EventName": "l1d_tlb_refill_read", + "BriefDescription": "l1d tlb refill, read", + }, + { + "PublicDescription": "Attributable Level 1 data TLB refill, write", + "EventCode": "0x4D", + "EventName": "l1d_tlb_refill_write", + "BriefDescription": "l1d tlb refill, write", + }, + { + "PublicDescription": "Attributable Level 1 data or unified TLB access, read", + "EventCode": "0x4E", + "EventName": "l1d_tlb_read", + "BriefDescription": "l1d tlb, read", + }, + { + "PublicDescription": "Attributable Level 1 data or unified TLB access, write", + "EventCode": "0x4F", + "EventName": "l1d_tlb_write", + "BriefDescription": "l1d tlb, write", + }, + { + "PublicDescription": "Bus access, read", + "EventCode": "0x60", + "EventName": "bus_access_read", + "BriefDescription": "Bus access, read", + }, + { + "PublicDescription": "Bus access, write", + "EventCode": "0x61", + "EventName": "bus_access_write", + "BriefDescription": "Bus access, write", + } +] -- 1.8.1.4