Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752697AbdH2Mrw (ORCPT ); Tue, 29 Aug 2017 08:47:52 -0400 Received: from mail-by2nam01on0065.outbound.protection.outlook.com ([104.47.34.65]:62784 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751917AbdH2Mrt (ORCPT ); Tue, 29 Aug 2017 08:47:49 -0400 Date: Tue, 29 Aug 2017 14:47:30 +0200 From: Robert Richter To: Zhangshaokun Cc: Ganapatrao Kulkarni , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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, Jonathan.Cameron@huawei.com, gklkml16@gmail.com Subject: Re: [PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events Message-ID: <20170829124730.GH17961@rric.localdomain> References: <20170824120349.2323-1-ganapatrao.kulkarni@cavium.com> <20170824120349.2323-5-ganapatrao.kulkarni@cavium.com> <43dcc107-263a-5429-73d4-a5290c6610d6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43dcc107-263a-5429-73d4-a5290c6610d6@hisilicon.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [77.180.198.110] X-ClientProxiedBy: HE1PR09CA0086.eurprd09.prod.outlook.com (10.174.50.158) To BY2PR07MB2342.namprd07.prod.outlook.com (10.166.114.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4123763-f087-4695-9353-08d4eedc2637 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:BY2PR07MB2342; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2342;3:+IxKDJ750h0uaG546+wu+HaYqj7eZsTsHtRTwpxwL8vh5wzWgYDDMlTKBVSSlpZGrrD1+VnG59GtEs0noiAOJbrlY9hCtu1psrkO5EqCmcOW2iPyM35ARdSjjmdrnpJrb1o9CLbDDQ5PW7fwensdeO6/L6HZYpkgjxZUJt8oGXB61edNfTQxDB3eghl936nFqKQag0txnVVko7j8xA0J/omj3mx1GEOMwMdgZnAvqOwaLyR5jDC0u7OVdd6BJhbC;25:kWND9x3WiMoqKLCAmKdh4270LaONZUworTf4wg0HGbCtY+b3S7dOvTQrKqZqAdqLZVVOj2oCd3GjLfJxh3TF1gvrunWaBfIlox898f6JkzuRNZ9+bgCQAximqVyUJZNlJJQZDePPSdfiKw1Dg2GO39mHHxtjehfBnon0BYPmoDFC2ur0bvjQCuEG8o4c1W3L4/K0uo12XsifjUBfWnjCQKcZD5Bc09ivHHrXf+jOLDZOdujdkA8oeaGgXoVuWUUpdpFbhx+mVYe6EQHboYQBT51CSUKhV2fJs0GCfe5g9WKwP9pkWez13r1WISR8GDMBzXVCfIxu7dpAryx5h+fFmw==;31:aF6NiFBjyqduapX27R0+0Ylx47CFlRBkruP6Hj1Wdh7c1u7nEXUNsAt5QIpqJQlfIbUzMP0PgP1uMPXS3T1MrOx2RCUxmqbG8RKvOIlffchij8tQgNZhbd7Ui4C8LDvBRFg2V//x5cyYUP3czDB8L3roQfilJZzUsZLFdcm30fYOPSZUrVLV0MTWVaUW/NStrz4PZsWqu/UQgNL/rc8I0Jkn5DlFTTADDfdf4zRxVaE= X-MS-TrafficTypeDiagnostic: BY2PR07MB2342: X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2342;20:CcUo0zLN63kCnJd9Uo2l6YuAj5BKqU855Coqn1TkEpRWlPI0uS8sYeztYjpy3eZcC8cezXuEk0lFC9+xCFVRJaVKheJhn6Qb9VeV7etzAnolWsu56S2u05I33i+UNAmQHEi1qTB3yWC/7eR+1WvTX3xLC3YI8b1Zwbeq5cCi3AYRl7tetAUIMexHz6Um/ZXaiNMOhz2vEt3tCKoNChTWNZaOeHENGMXYyJBXSrm3QtpvkNWBOdA56jpFgHTpWajLOkknM2M0Rdbl8N5CmF4XjUMbEh6/sIgxr03aDfcJ6cnbPLGuR0/BWC346fekrdiD61MMJGO2pc00ZoLkIKPhVRfQ+4JoCvJJRPNF66sx+IiK2/ABaHSGnq1gRuInVYy1iNEdbk1B0fjZ9OKzIkTeIwjdW8x95Fch4tfOhL48UE7+J05vFaLemKH2z/5pia2o3PDbWj7BHUiG17UwxyHFEAyJtbNCfTzZlW3Vh+9AZXgPaKdi8VJ4f2h3I28kRoGv;4:gvxwcvOfkRixeSqxCi+tGiLrKKPhpobt6CSKsVqY/qJHsDaWK0ciJzL47owky9x0sq+7rMCy3s8jq7njEVXEpolEwAUwBSEvURZ+RAtPU6ZKr8aQs1mKedHzvBFOnyjHmTlDvebts1Vt1WO2mQZf+nOtjRPphnWPcZe2PNxPPMkbG1UZSgWO7IqB7MDKRMkZRD7MGDkpqDCdglRSFoAeXc69oTsuDZ/hMJ+YGMQU53p5DNlu2JYJfDjy3kXHvU/3 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)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR07MB2342;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR07MB2342; X-Forefront-PRVS: 0414DF926F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(24454002)(199003)(189002)(76176999)(53546010)(1076002)(23726003)(97736004)(101416001)(54356999)(3846002)(189998001)(50466002)(50986999)(6116002)(4001350100001)(33656002)(478600001)(72206003)(47776003)(66066001)(305945005)(106356001)(42186005)(105586002)(7416002)(5660300001)(7736002)(81166006)(81156014)(9686003)(83506001)(25786009)(7350300001)(6246003)(8676002)(68736007)(55016002)(229853002)(86362001)(6506006)(110136004)(2950100002)(53936002)(2906002)(6666003)(6916009)(4326008)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB2342;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB2342;23:1CzMh6DMriFLfGxStpq4HMKr0Q4/QsyOzjCbTUQn/?= =?us-ascii?Q?4R+lkCVCtjQLTQHuhFSqzJs2/3g8/PnztvKqm8ejkuiTvv1oHYrhPw8mdZSb?= =?us-ascii?Q?0ueeixWcMi/y+ecI+UboNRYTzQZldRl9xf8TPd8IXkBEMFxuX+Gk8ClNPI8f?= =?us-ascii?Q?djJg7x2NM1+3AdHR4l5j3Ql20gPQXcgFDmdz/sbn019UtbPPAGs5jYr5XH5f?= =?us-ascii?Q?X7R7ScufzmXfETz1oyDmcWwXltjWD27F8QOXvbleoxankCkFOajA8vm0YAX1?= =?us-ascii?Q?laMA/gOsGSLIQ0dJFZDIjsUCrJaZpg3bzJXV6iZX2L7BSfvL1vJha0so4t06?= =?us-ascii?Q?WgtAf7cKST5t3OT5YIBnL9cSQipTMkOrqpAY5kipoi0Jt+2sA4Oz6DgGT6Yu?= =?us-ascii?Q?1bLozrKy0VDqvy4cKdUhNOfSKMc2z+U4091akDkJelEwWzUlokpSQ7fC8j/U?= =?us-ascii?Q?r2pOQP7Binq2vEkXLePfe75XZ04t5OwWSYQTjdwr66XRAjTULKzScfqp5LBx?= =?us-ascii?Q?bomZqP/w83OM/kr37INc6bW5Ym1efe3mV3G8dbpTHTEG60n/Y2RZOzrsvfqy?= =?us-ascii?Q?YwMwsEXSv4hTFjoYcg9rndXuSBRWJ2pnI36Ex+Jk7/seyo+K01xGlnZyEN37?= =?us-ascii?Q?JfbQzvozODsnku2+AS5z+9picBpJuZa0M8O4s5UIs4PAZboTyVQs1aHsKidr?= =?us-ascii?Q?TqSx54rxAp7/lMlut/crstgQLoo31oUcN+Nb3LhxkaJuwVP3htzbCU2Z2s1m?= =?us-ascii?Q?wOegyBjATxsPjIRFUmX24EPRErBxD3QFYnMf248fAnYD2HpCQrvuDEKZBaG9?= =?us-ascii?Q?roT6zmLtFfHQFlEspmsqNDFa7eN9A2Wuwv206fG+ehy581Tyf/JVU7BpaVQz?= =?us-ascii?Q?NIN4IsmPO5Nv511OutmktgAA+FmqtFzL6NiGAa5pMTiotfqyMGci0wiTi5/8?= =?us-ascii?Q?u8u/XqfGXr0Ih7j9E1ttwyHzemK2s9uuqgFMDE33Mp37S2aQw+eygem4jF9G?= =?us-ascii?Q?qlPbJLE/rAIBJbWgnGxXMPcIJE86lM5M0hU3EHhnI+jKhiarKs3V6naMYfUJ?= =?us-ascii?Q?yeIono+6Z1PBp9Us6o2+Eh32jntcE87uI+04q8+80DsvOX52A7jlc3Xe3l48?= =?us-ascii?Q?SAtHBBoz64Lng+TOoMVvaBWLqX/6GQ7qv/4GikZr6OH6OvOnEL7ZYp6N4DlV?= =?us-ascii?Q?9NFJZqzl9AeyvfatlMZGoNY1G20GF9p6pUIzsHknevZw1XwO3CN0uor5RUau?= =?us-ascii?Q?TCFwf/wE7vyon0wlL0=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2342;6:UUcC5x8U4Fo+eeZ2Qv6YoQz90tUTmiYCTNt4+Ofj2cDAHfrlVr5my0ndxL/bkP/y1Xnosm5YsE584LVukQLYvmE9YQ21RkRZBckcJITLfNNnSi1qgvxVN0lDGeKIYPbhaOtofpAmlLIUSwnau5+Vu3+12UJEz6CJ5xlnVeW3Uv4/kX7ZebiNfh52u/lF6lOMyap0Bq2256rfcedjdYKKitBiGgyqyxCww0weqcrpXFZEZTHEbIg8+cuzblsHuChsT1i7/ltRdRD+5Ob3KLw0jNyeBLJ4qG4CLzEfhYmxPYwrDcginSpH7ZNGY/FQcwA6aZ33JXtYESBJXVT8iP+81Q==;5:GnkUNYnHmX3LWPd6G90kQ4FBtCKUr3V1Cd+QnqedDijCRQyCrXoT2AtkKQG6Hj8srdugEUolrugXcMsjoMyNIDBxHoqNKOPvjR/AKshfEmvNr7RwghFIiwqetXENmqdW7CHhmcw9cMc9Mok0MrFYsQ==;24:B8UHzr1hBz7Z4fB0WWohf7I4Tu84SxJEc5dy7GtMpNZdj6E7ewS4w8qzmcJrIIfmVDFrZaByodgAMmv619hHTTUePgUkCLSleybZDwrqJXk=;7:1Xp7zUJHUdRU2aub/JFzNtyv072K8UKqeOA0GdRDg//4yKfg+f/oPkk6IuqsaYJNXnjAEHViaTO1edIFNzEHgmMFBQ/W4cOOeWqFq9O1XM2x37TYRUU3cFaN8mp5C29+DsEcV2MP5ZLMpGX6f2mTm/XL3gxvO4vf9azt8xeioKswX9s2dPT6nodtD9AnNfYo1NCu13NUTSRajhP85E2ntgNu/HjDKH6/CKPFqHZQ5Qc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2017 12:47:42.8098 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2342 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1024 Lines: 27 Shaokun, On 29.08.17 17:26:00, Zhangshaokun wrote: > On 2017/8/24 20:03, Ganapatrao Kulkarni wrote: > > 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 > > > > I saw you also used thunderx2 in tools/perf/pmu-events/arch/arm64/, how about John's suggestion > that would use vendor sub-folder? > Of course, appreciate maintainer's comments. this would just add another level of subdirectories. I rather would prefer to have a per platform dir comparable to what is listed in arch/arm64/Kconfig.platforms This is the same as Ganapat has implemented it. -Robert