Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949AbdDDHhq (ORCPT ); Tue, 4 Apr 2017 03:37:46 -0400 Received: from mail-sn1nam01on0087.outbound.protection.outlook.com ([104.47.32.87]:20356 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752845AbdDDHhZ (ORCPT ); Tue, 4 Apr 2017 03:37:25 -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 3/3] perf tool, arm64, thunderx2: Add implementation defined events for ThunderX2 Date: Tue, 4 Apr 2017 13:06:43 +0530 Message-Id: <1491291403-29893-4-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1491291403-29893-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1491291403-29893-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: BMXPR01CA0020.INDPRD01.PROD.OUTLOOK.COM (10.174.214.158) To BY1PR0701MB1690.namprd07.prod.outlook.com (10.162.110.28) X-MS-Office365-Filtering-Correlation-Id: ca2c60ef-b89a-4c1b-38f4-08d47b2d6f2c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY1PR0701MB1690; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1690;3:R76xPcB41hc/seECDhv4/3SOBOV4Ei5AGaM7tsKDPLbWvrjJ7APh0h4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DQnco7Vi7j/UB5SNQGET7cwKtqc9ZsVNlGVsaDO2cGVHeZOJ0nevzgGxXJHfhSJV6UvXF86PkqIe2h7xyMU3iliIRTFCg2jAA6b8zpp3BpSrsCubo1bT5YCdCGyLXVh1YIf1X3i5AZx9s9eEd5GfCi2668gFSb54qWSWy+LOgwfsbFROtZcuCv057Ee8NeRZ+prKZTLnNaVWuKDQX+97qL+Wf++BDBOGKp/nddHkgNJT1/Xd+HcsdroPc0GR2/PzMSC7MALQajy5hK3GuoeEgIZs2SwKBu0noDqXg21wBVUAhwnNYSjcKRcpNtG8akcnvdq+8GBfT+6F/Vdiy0RGclWTP7mmlmhQRIXV7sl1E5J+NWv5aS3AizImysXnbuo6ZG4faKGqORx+p/yb2ESTRzZKcDw3DSpaVLHaJMl/cWixk7235xBqxxbcKFbr+ILe5d8dFElYECF4ka3HSDWM7BPf7PJaX4ATuz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:BY1PR0701MB1690;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1690; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1690;4:iEBjc0sWMlMKFcz6cknbq7SwW6HuC9SeMTSR+ub7w/Pa21AG8yTWbNGrrMxYPT1BujpVNRmWfG8nsFfdIfYZzNc66tcNMBdMU1UNYtcMhJcWLdlayD2mAXNu3QFuoaBajl/SWeuDY2C4Fxk2l8JHvN6T0IxWMGLP4Qc1t8+8BeRPMUNeIWxzHV92qe28gjLqB3JaoB7Ktr9OMN6R8wi6Kc+yGQiTwqb0YZkZOfdDq8bpgGsXT6kSGEa3aDDxftKwjrsI/AqG4T611EE6cNZSBEirLhgBsej4XBZ7mhA6VYueb+1c3FmyB0bHlBLwsf8yn4R7tfg4zC+YsGlUgvQfvWtR+mVa3MOGSAV13ShdfBxFFSNiYlyQ/JgJ1LLM/BWMcpTqdK/QPEDtmD5I4W/iMRW0/xa4ynH+L+rQYSDBizTk1ci6HhCBd37Xx6q23MNXaS6lfVN9wbNCtbFh2junMASagtv4/7q/EfQDAgxTQOzudoNpOEiwFpBPP6L69lL79o707BnE7+/oyXFDlBpNpqWnq1PBkM+yl8H1681Wb0UPHOjhK2XVVar96HT/c92t1HLenfjOTOR9XmuJ0xexoLGQzwlp3OV5dgQ9Kep6XTlUwxuCOC2PYLcVwNc/KZdrNeW/UZlDiCEJsu6b3EGMvwHfkI5hZ60VOdxDr3vvNfbc15kpC+OZnidB3H39LWglIi+lucXqnjmNk5N14lU95g== X-Forefront-PRVS: 0267E514F9 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(50226002)(2906002)(3846002)(8676002)(4326008)(42186005)(5003940100001)(2950100002)(36756003)(6116002)(25786009)(6666003)(4720700003)(86362001)(5660300001)(81166006)(53936002)(6486002)(6506006)(305945005)(66066001)(7736002)(47776003)(5009440100003)(189998001)(53416004)(33646002)(38730400002)(50986999)(76176999)(110136004)(6512007)(50466002)(48376002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1690;H:mypc.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1690;23:t0pNpVn5Py6p8OkU0GGDC5/jOlNOXSb2tCcNcY/?= =?us-ascii?Q?m00X/X7Uxd4Cogl+JCqpMHR81WXjU6oTgr2U+gW6Nt/qn9noeiQD7c7FSJJL?= =?us-ascii?Q?vat6ioUyozemHKgG2wL+Y5MtkS4JZdmuS5zxhwhS753fwtHMFvaKJqHGUrF2?= =?us-ascii?Q?p2WqmS6l+KwAk9OVeDEHOBR6TdX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q?rKPAOoxw=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1690;6:39CvP5+bimesIVEnAtuakfWfwHenkvlaTuJZdMeOnIRdE2k2RlWuAyhUblwlB/Enn9jMr7WNYONqN3oy7b4G+JMfiyIdF50kmmh+fMgs3OepUd/8/Y9E4ExvY8rlQT+yMO2+RZx/k31HbDo1bdQAi8mt1DP2w99WOVdjbj1txIjG16BqQBnTukuK/9mjGz4HuZHlISQLKzwGsfXSQ4cGm2qM702zKA4HHQfGoHKARWyaJmCXZ0HuOE+1SwCzUldz1AbEjFXzekJTxI/k8TU+QHmiVePUz0rWBcXo7Ux0g4QGv1WrkwzIFLi/vdl6UnlgHwtihMN82kk0c8s1/I2vI4kyHeU49eJflTAuiI9RMNT4oOL/Id4I1cOG5x57IPhDVOHsGf2Lc6Bisjb9VX+qQQ==;5:MT9eYR3f7XOt9UPj1jkeRb6/iwX9PnCnb7A7DM6bW016gtZN2/EvnH647AaW/13WXSUw604DdFe4auXzsOVgA2MqxezXxKzjGxjRxPE/CZG1+uEeF9zok3jDc/+wo0Tp5GkCoNgEwGgLpCsI6EsRKg==;24:URljLSHOGq4FXUmngMzOlSrfaTNEmRTZUEOXzL0hhE571eS3NqIH854ylA7LklvGwfZfZCYjf3GA5HTqXU/2bEEmrBXjT9Co4Uev+05Df10= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1690;7:u24JHjqj6jTcpBlmN0oHCoadNXW4HArgb47YRJip2s2R5RNSDZb7hl+ow2rzN/3bQrajDW7eLbIq+zIYGzMcDQoyaTvaZyQgImstzEEUscyP8FDEkYMcZUX+rsP5PG4mSaC2yjlMlqUCxKPWPvb99UyTaAf8DdGHZq3oRdaOavAPCrohqbhBMSmhDBbpyvqPtvghO+iUDMQHIpBpTHoC9KKleZ2tLd1/zXOTQ3zIwPaGd78qzBXIFa94O5zZiEBoWlWkrqRkNLbNkbUd3rMDdtsIeTH7eG0og4oHXj2XiQ/gstI7uxEz6RSY/tqG5j1/LaD+HSkYW0jue3qDxMgsmQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 07:37:19.7045 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1690 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3502 Lines: 98 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 | 2 + .../arm64/thunderx2/implementation-defined.json | 72 ++++++++++++++++++++++ 2 files changed, 74 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..ba30e43 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv @@ -0,0 +1,2 @@ +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..360e084 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/thunderx2/implementation-defined.json @@ -0,0 +1,72 @@ +[ + { + "PublicDescription": "Attributable Level 1 data cache access, read", + "EventCode": "0x40", + "EventName": "l1d_cache_access_read", + "BriefDescription": "l1d cache access, read", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data cache access, write ", + "EventCode": "0x41", + "EventName": "l1d_cache_access_write", + "BriefDescription": "l1d cache access, write", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data cache refill, read", + "EventCode": "0x42", + "EventName": "l1d_cache_refill_read", + "BriefDescription": "l1d cache refill, read", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data cache refill, write", + "EventCode": "0x43", + "EventName": "l1d_cache_refill_write", + "BriefDescription": "l1d refill, write", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data TLB refill, read", + "EventCode": "0x4C", + "EventName": "l1d_tlb_refill_read", + "BriefDescription": "l1d tlb refill, read", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data TLB refill, write", + "EventCode": "0x4D", + "EventName": "l1d_tlb_refill_write", + "BriefDescription": "l1d tlb refill, write", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data or unified TLB access, read", + "EventCode": "0x4E", + "EventName": "l1d_tlb_read", + "BriefDescription": "l1d tlb, read", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Attributable Level 1 data or unified TLB access, write", + "EventCode": "0x4F", + "EventName": "l1d_tlb_write", + "BriefDescription": "l1d tlb, write", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Bus access, read", + "EventCode": "0x60", + "EventName": "bus_access_read", + "BriefDescription": "Bus access, read", + "CPU" :"armv8_pmuv3_0" + }, + { + "PublicDescription": "Bus access, write", + "EventCode": "0x61", + "EventName": "bus_access_write", + "BriefDescription": "Bus access, write", + "CPU" :"armv8_pmuv3_0" + } +] -- 1.8.1.4