From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0084.outbound.protection.outlook.com [104.47.34.84]) by dpdk.org (Postfix) with ESMTP id 6100511D4 for ; Fri, 19 Aug 2016 14:52:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JXwlr/vF/P//jnIgg0Bfgdf/pZFMqah8bAgWnk+WSLw=; b=AP13jUSALJYr4mLcUcqZCskDsEF0TwPVLx8Y+eeE6JqbzN/MejyQOqTIH31/9iIt1w6YXXghWbHRzSJc8E/3myEmUsid6fsMOp/JvlhqYu7RqPkVsk/k78g7PbNN3ye1daPtCbmS8+dhJ4Qv/IMTuXU+Edx25w+tfkv9Gzyc4tQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.171.54.218) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Fri, 19 Aug 2016 12:52:33 +0000 Date: Fri, 19 Aug 2016 18:22:18 +0530 From: Jerin Jacob To: Jan Viktorin CC: Nipun Gupta , "dev@dpdk.org" , "thomas.monjalon@6wind.com" , "jianbo.liu@linaro.org" , Hemant Agrawal Message-ID: <20160819125217.GA7169@localhost.localdomain> References: <1471521090-21067-1-git-send-email-jerin.jacob@caviumnetworks.com> <20160819114611.GA5510@localhost.localdomain> <20160819142458.42dad72b@pcviktorin.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20160819142458.42dad72b@pcviktorin.fit.vutbr.cz> User-Agent: Mutt/1.6.2 (2016-07-01) X-Originating-IP: [122.171.54.218] X-ClientProxiedBy: MA1PR01CA0008.INDPRD01.PROD.OUTLOOK.COM (10.164.117.15) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-Office365-Filtering-Correlation-Id: 237cd3e5-4b52-4702-8ef4-08d3c82fb1be X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 2:LNVOOFUfR3H0gObVCThZbsBpx+fuXtlSGy98mNuMN5bKv1a8Ymj7aIPXdQCuqSLMku82X9wRYcoO3DkXnDGkhquwYYOgabr9T43NMAcO830Lfa+oFatxwPux+RJWnBff4douWHxxjoq9adLsUJ5uDofv6+T38lYMCuLi0hPKvuYLurhvR//1IPoe19bzDSQL; 3:ANm70nqVerC+7PRp+84uvdkI4m2/wI5NY8YA/24j0QoumpDjY5YNSXu0MpTHbumFKbQD+iLMQyOV68oClam11DKBJZMfE8qP7sgTQCA0awrw/jvxWnb9M0EHRAM7WaNM; 25:MNmkMjNNVLkvGpxCq/OjcJ2KZyTM3qFsOfUqMoh3RP1JywuJYYCsyRJiczI3ajT41zdIogR6fVDCfSNP7PuTaY/GilEHtpGqcmOw/Nczg801a6IEM0/ogeZlIAR/alGQAfQUGpzg+fIK7svo9qCwJEe2YpGgLijQ+hH8p+X01DXQnT16hsu+72CcQvj0OVVuMEt5OvZTICMFWb06FXQ9w3jjslKAdaM+TbCrtjFsRUv+mi8kWZ0GPmaQFgDcomoW9j30LqXxX3ry8FU+Z/iyVnjL59O6Kjv8eRobt6qZki2DPi/2jhLo9czNKz8OBCEj0StlOucpfuZUfX2miRAUjXLlXm38qdec52AdkzUEQOKypTJd7iRCTJhKWJ9x4kRsUT6+hKoMclZnLhECfqz68TohmdhD3ZpaFAosQOd7xVg= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 31:LAk4KDwBpWrr1YK4p4Q0IL9tATOx7tUf4Th0k4AonGGxiKEv82tSKK0Q6WAFYZirVGMDS4y3U4VkLGkoFcyL3DluAVsmfZXUSIWrO8x40f0itXOv4HqkzErU72Nefy0FOpuQ2DfEsHrrctOekG1mwdMYOL66PZpyWXfNjA0jrpZSuwrJGWrK4n1IsDvjdh0GAtsjYQaRrvU0kkq61Zg5FrOAeB5MzXfHL35Z1UXSp7g=; 20:L5l/ls/H9/D+Y2i0S1cYlSptjrIxkx9fmPzYqsW2bNvXAV8geeA88Zq0j4d1m6L2m37FmtSibV3TO8cobLdHoXF+vTXjPl3wzP4NX/HmYdi7p9Fppns1VVBInLLIr1YF6jv74FtFWrdNpBkfKwJioJg2K0tuDUY9FCtkZlHUdjpI0rajbmy2WFav61lR7nfPeChYmlMtPGrYB6uaYHFumqOjerurq3csWYY6AzzDJ5rNaPgBuWgGSqd3uJ0eKjbWiYDDjMBE7vW6kcK83Mmm+XTRIS4aaBqDUZy/lEYUDlmTZXZT7rvLqrHOf57G9hANH86vkqwZ+27vSkT4ElBBZoM/apgX8ZxEjtGYRnNbefDBNlR8ViexQYHAGVA5N7JOG8JgTVZKDJUGv3mVRKC762ZqYJVNteSDN0NouYetWwWpnECisXTF/0lv64IpcIZqRjqyiKqCfnZ3aaPJukf+zExeKL9/lA2LCMhjqJEwHA6NkR/dl0tlMBov/icLt345tpKntMX+x72wDoFRf+3UKKQHPwPzUir/TBc38DTj9f5S+PO7DVWsWNq/ArIOapDW5/XQo60pL+j7VssS5aXML3+86IEW5XBs2pB81fwbhcE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 4:yZTyrTsn4QxDYTQxsUYU2Z85SZRhNFpiWyiWVDQ0N8Mg7aW3ljMyOOHaZlKuHCQ7bdtdJvceABB9nhGWAuU3BwwUSXhwMY2oCYqMqVsUTnn0/2iz4Uh6NL4Nm6Db6vAOyoi9k3aZOOAqm4u1C82BKAIzESEraU5zjaL/T9aYLNFj/y9HfD+HpeYsBTotEWfq5bKzeUtdp+e9YT/3YR7WgQyas8mEcD/LMx83nqOrhryQFdAMnAW5P8X5rxWkEvuOIHDT6HpjxBGi/N3tcWa/KQuA2qzfaax9wZtqAyI7hGjO208WC+aChRhioaC+PeEG8/HhpXwy9ZBPw8BpHLah1nlVMM48iDHdX3X4JwTPBwijRVryRm+LPUPZ2NmoUSjrqsW/mmYCZzJ7iR3FCyMUUg== X-Forefront-PRVS: 0039C6E5C5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(24454002)(252514010)(189002)(61506002)(110136002)(106356001)(19580395003)(77096005)(4001350100001)(50466002)(15974865002)(189998001)(97736004)(586003)(7846002)(2950100001)(92566002)(81166006)(8666005)(23726003)(7736002)(46406003)(33656002)(97756001)(3846002)(6116002)(68736007)(19580405001)(2906002)(66066001)(105586002)(93886004)(4326007)(81156014)(1076002)(83506001)(76176999)(54356999)(50986999)(47776003)(8676002)(101416001)(9686002)(305945005)(42186005)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1713; 23:w+nH9HGYx6PbvIEIVvAUbeW1Jmkhuhus80xDyOX?= =?us-ascii?Q?KL01SCrKFWt0zrPWdP1VuZfs5xbDIL6q9suufml9GtblrOYutP1lsTH/KtLe?= =?us-ascii?Q?KF2pwp0bWaJ/nIDUxb0Te07A+AJ1IUForwYUSYfnDfNzlOpEHrytKfIaYIkn?= =?us-ascii?Q?80Vd6UqX7jP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fkavoIIPv+FBt4lAn+40gWUiNipxyHup56Sz3rV5o8QwvxSQGQrDkh4OMA2HYPFzc/Wi77UJTRXGEgvRYg9rPmEZI0akZ0wbOUBCUqBQdHoZGX4C7 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2016 12:52:33.4002 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: Re: [dpdk-dev] [PATCH] eal/armv8: high-resolution cycle counter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 12:52:40 -0000 On Fri, Aug 19, 2016 at 02:24:58PM +0200, Jan Viktorin wrote: > On Fri, 19 Aug 2016 17:16:12 +0530 > Jerin Jacob wrote: > > > I've got a private kernel driver enabling and disabling (hopefully) properly > this for ARMv7. If we'd like to merge it, I'd like to have a single module > or at least single module with 2 implementations... > > I can post it if it would be helpful. I don't think we can use this in production as this may alter PMU state used by 'perf' etc.I think let it be a debug interface for armv7 and armv8 and disable it by default. > > Regards > Jan > > > > > > > > > > + * > > > > + */ > > > > +static inline uint64_t > > > > +rte_rdtsc(void) > > > > +{ > > > > + uint64_t tsc; > > > > + > > > > + asm volatile("mrs %0, pmccntr_el0" : "=r"(tsc)); > > > > + return tsc; > > > > +} > > > > +#endif > > > > > > > > static inline uint64_t > > > > rte_rdtsc_precise(void) > > > > -- > > > > 2.5.5 > > > > > > Do you also plan to support performance monitor event counters? > > > > No. This patch was inspired by armv7 PMU scheme and its part of DPDK. > > The sole reason to add this support to catch any performance regression > > through app/test application.Other than that, I think cntvct_el0 based > > existing scheme is good enough for all the use cases. > > > > > > > > Regards, > > > Nipun > > > > > > > -- > Jan Viktorin E-mail: Viktorin@RehiveTech.com > System Architect Web: www.RehiveTech.com > RehiveTech > Brno, Czech Republic