Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbdHPHLv (ORCPT ); Wed, 16 Aug 2017 03:11:51 -0400 Received: from mail-bn3nam01on0080.outbound.protection.outlook.com ([104.47.33.80]:61769 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751702AbdHPHLe (ORCPT ); Wed, 16 Aug 2017 03:11:34 -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, Robert.Richter@cavium.com, gpkulkarni@gmail.com Subject: [PATCH v5 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events Date: Wed, 16 Aug 2017 12:40:48 +0530 Message-Id: <20170816071048.26087-5-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170816071048.26087-1-ganapatrao.kulkarni@cavium.com> References: <20170816071048.26087-1-ganapatrao.kulkarni@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0112.INDPRD01.PROD.OUTLOOK.COM (10.174.208.28) To CO2PR07MB2567.namprd07.prod.outlook.com (10.166.201.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78aad883-dfb4-430d-8937-08d4e476061d 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: 1;CO2PR07MB2567;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WvRVvRdBifHh5mJMRfLlzg+KI/yimE9Z8Tof0pjs8nzpefJV4rh2RtqLsyipoxp6s5nyegd86G8FAwOFeTw8z3je5oi1kMdQ+AWAbeDWK0iXY51Cp+VOffLn0i5LQC3yEqIi6lGHRHI+N7J0dGnlzU+YaKpML7VHTH0+jmh7S1HhyJh66PLiiLrId/fLRVOR/xuBxxxMjxVkHC1xBZws6w50QLLijSNHL/XalMkRlvtTkrCzBoei5kClWe84dqVskAek9jSonCky39ZJsFGm3CYpFo9EreUCIdKNVOocxWqKeG9fUg4szRBRD0F4S4oKAYbSK77OA;4:ZEOm5249PEudJuhSerrNsJ+h1pasIoM+TuVORyu2Of+huTOz/RGQAT/r4eiwEi/9gTcZsVLai7go7gEyeTj2EvZ3Hvkp46SlNDMW7RXyrCOOsMRL+EN4xPPcy9MHFObDmHM9Q6+WDSgnfA/4/rEgJiY+SxbwUlzay9YDKF1O5DtoG6YbgIRB4GRFUw0TMTHbHo3wSVPN2lfCWLJi3jQJvNhTOl2vTxDJxdwmAPX2bEmfJ4G1J1/JrU6Ff4YP1blL 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)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(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: 0401647B7F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(199003)(189002)(86362001)(36756003)(50986999)(76176999)(5003940100001)(7350300001)(106356001)(105586002)(69596002)(33646002)(97736004)(53416004)(47776003)(72206003)(478600001)(42186005)(25786009)(66066001)(101416001)(6512007)(189998001)(110136004)(4326008)(53936002)(5009440100003)(50466002)(6486002)(50226002)(2906002)(1076002)(6506006)(48376002)(68736007)(6116002)(6666003)(3846002)(81166006)(2950100002)(81156014)(7416002)(5660300001)(8676002)(305945005)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2567;H:mypc.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX: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:id9Lht5XP3O21zX6HwAU6q8KWUTzMldzeaSkUphMn?= =?us-ascii?Q?Rb56TyGuFWYxzCWx92HuS7oyJgiaZcWKnfklLzt+89UcZwHs6FxM/wnKK9Qk?= =?us-ascii?Q?f7EA3PP7sp1rlxmUYD5/AsaBSpLoaiWxERFeXn71GGzfSOtB/RvgyCsYWGO8?= =?us-ascii?Q?blQb8sAM0JVlG5KJ8tm382Z3gDlxn4v0GZNngkSlLnCvzZpoPzpfy1yfgq/W?= =?us-ascii?Q?DcVvEPutYJrbHP+s+iRRl0hc9iRofKquftwttoXspCyv5J8xendYjIFDShNY?= =?us-ascii?Q?PxuWcuDgjbXmLAd/uhhj/+mw5MHBiA66tnuGfXlcOl15I4bAEguC1TAHU6k0?= =?us-ascii?Q?desE0g5aIPUdIzoZKFPX1TyvPlfpBV+Dp9mV98ekmfNr1rw4DVhvIVVPra55?= =?us-ascii?Q?0pth41EyID+y49QJ6FAFM2u6+6c7DriWmDFm45KPWKe/jiC8L+KTluZAVWwl?= =?us-ascii?Q?Od3UjP9XoJ/M0iaLFxdbftXqh82dqet0uiM0QNDDdq1nRUrhlHddwurh6cpH?= =?us-ascii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/V2fjsbjeO0IriQlgpZk6B51Bh7xAfylUaBTbV1/WmykqNF6w+ARzdBt7caX9bOT7Yz8umZoT7eue804RSbvsMXg9n5eCVs8U93HJI20+vkdqafOZ5xQXQHbR2CUsxCGtAb0aAJPsStYTG7j95z/VQ==;5:cJmnXH073hiZUiFGYb5+HamTiuzMOnWDQb3Y+CPJjnHmBjXVWHA0MjPZoTgG2JUC4hv8b/pxKCHvdew6az9+AmcT7unxMqdLG3ghl4tJikJxXMF7+c7XuJ9n7XNPMRo6IzG33efzRo9MQJdXf02N5w==;24:QuMwY6HFY/Qv3UembAElLD67pa/vG8rO8UgBb2VfNchvIQPjhjVip/T6CHUIM04bIvwao3gHwG3o7M7SS5PyFXIvSLjCeTqBLPpvgd02vaY=;7:XSCw5VN5IQrb6rA2L8J1w0zR2ZQgeyIC4GZcMhKfbiJOFBhfbKg2AHHWjUVrjZQmeQTq0TFH0pwU7QyK9qI69SeCOqCHwfEptJSA2TuBgqW72H5zW3HVd3dsdfjueDkWBb45CImE4Rw4NKL1X/GOfyx4Y+cnTe8qIkCelKD37t91nu3lov91U+ws2S9B+DU5adJ1OAzIKf4czyqAMsKCkJ1qGLtpZCzMKh+KpkckRzw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2017 07:11:28.5651 (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