From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/armv8: high-resolution cycle counter Date: Tue, 04 Oct 2016 10:42:49 +0200 Message-ID: <5251875.5YmvKy6xFj@xps13> References: <1471521090-21067-1-git-send-email-jerin.jacob@caviumnetworks.com> <20160819142458.42dad72b@pcviktorin.fit.vutbr.cz> <20160819125217.GA7169@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Nipun Gupta , dev@dpdk.org, "jianbo.liu@linaro.org" , Hemant Agrawal To: Jerin Jacob , Jan Viktorin Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id B73261518 for ; Tue, 4 Oct 2016 10:42:55 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id b201so130062578wmb.0 for ; Tue, 04 Oct 2016 01:42:55 -0700 (PDT) In-Reply-To: <20160819125217.GA7169@localhost.localdomain> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-08-19 18:22, Jerin Jacob: > 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. Please could you document the use of PMU for debug and how it alters usage of kernel counters? A patch in doc/guides/prog_guide/profile_app.rst would be welcome. Ideally, it would be a lot better to have a sysfs entry to enable PMU counter with an upstream kernel.