From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9F5EA00C5; Thu, 7 May 2020 07:17:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B1171D98A; Thu, 7 May 2020 07:17:27 +0200 (CEST) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 2DE361D985 for ; Thu, 7 May 2020 07:17:26 +0200 (CEST) Received: by mail-io1-f65.google.com with SMTP id i19so2481012ioh.12 for ; Wed, 06 May 2020 22:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9hdiG3bh7V26et7N+wTYqLLx8nqyeoR3ftaqRed40Ts=; b=aecoHFEFCG60muIPdzxs6EXjxx9Y0tNGHrBUrQZxaIC5SBzEfzTNu+w/oWu/FmJeIM moFTBLiJTZHaBqruJPgrncbIfaBXxIBzC0+8UgskoEt6Dyb1iKtE5K77KHvYJOibiiGu IjkKlLSAQ26kkey4lmeRIPHKWMqNywKoSC+d5+bon/H0EMegzoZUrpIFJLf9aG4Cq4qg bXjmVjkXkXQps8fB4POXm72FJwXh8sUqfMD+HhW0eXmyCmaQVVG8RdzLAUdb2WTMQMvJ LwrCj9TPKuZdHa+OanbcALl9UdNipns3DHstwUI21wQeCG9OWSgLj89Qsks1wiZa3u2u 866Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9hdiG3bh7V26et7N+wTYqLLx8nqyeoR3ftaqRed40Ts=; b=iPj1j+mukujcSZBg8YdLPrvfoMtXJ6XznnZ+U52zzBVR6WBWfi+nX9Q0KNDKvwWuY8 eX9/FcS7xUOqz7Mfr3KTRPHZMe+srIfbX+c0VWX1iZ4Vxp/B7yVk05+95xYP06bACVo0 kmMLvdfh6vn7biimKz470WGu5GgFBGirZn+yu43crdXIzFzCHfKpBAQamsyZtJRqBJ4S Jk92HejsfgPfOmMI3kDjnb8xqHs6s8unia6y9rv8i9JvPXpxlRy9XqeTVW4/GEGb8Yme y1aaeFB0a2J3tdQbbhrCDBnmkbbk5Evz2JNiLLD/gCyUT97MDgt+en/Hw08Jt7lgiIvo C5ZQ== X-Gm-Message-State: AGi0PuYJw/5vhTEWO3vU7TcGKiNVGapuXb5vx9fpzFIIcudy5EkJSNrr Bk3Cpe020arYWvgIsa2Abd7cKPRhdqYkAMIRxGM= X-Google-Smtp-Source: APiQypIoFfBqcI2wOjioiniEe1Z6rjngDNt4WT+lrv86GvnbUO2Pdf04kLHIL5OpqT7LkB7SjjxqLumPEI+J06aY7J8= X-Received: by 2002:a02:9a0d:: with SMTP id b13mr11867375jal.60.1588828645368; Wed, 06 May 2020 22:17:25 -0700 (PDT) MIME-Version: 1.0 References: <20200506215847.7628-1-dharmik.thakkar@arm.com> <20200506215847.7628-5-dharmik.thakkar@arm.com> In-Reply-To: <20200506215847.7628-5-dharmik.thakkar@arm.com> From: Jerin Jacob Date: Thu, 7 May 2020 10:47:09 +0530 Message-ID: To: Dharmik Thakkar Cc: John McNamara , Marko Kovacevic , dpdk-dev , nd Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 5/5] doc: add aarch64 generic counter section X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, May 7, 2020 at 3:29 AM Dharmik Thakkar wrote: > > Add a separate section for low-resolution generic counter > for ARM64 profiling methods. > > Signed-off-by: Dharmik Thakkar > Reviewed-by: Honnappa Nagarahalli > Reviewed-by: Phil Yang Acked-by: Jerin Jacob > --- > doc/guides/prog_guide/profile_app.rst | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/doc/guides/prog_guide/profile_app.rst b/doc/guides/prog_guide/profile_app.rst > index a36ebef4db99..e5d0e9079e11 100644 > --- a/doc/guides/prog_guide/profile_app.rst > +++ b/doc/guides/prog_guide/profile_app.rst > @@ -57,11 +57,16 @@ For more derails refer to the > `ARM64 specific PMU events enumeration `_. > > > -High-resolution cycle counter > -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > +Low-resolution generic counter > +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > The default ``cntvct_el0`` based ``rte_rdtsc()`` provides a portable means to > -get a wall clock counter in user space. Typically it runs at <= 100MHz. > +get a wall clock counter in user space. Typically it runs at a lower clock frequency than the CPU clock frequency. > +Cycles counted using this method should be scaled to CPU clock frequency. > + > + > +High-resolution cycle counter > +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > The alternative method to enable ``rte_rdtsc()`` for a high resolution wall > clock counter is through the ARMv8 PMU subsystem. The PMU cycle counter runs > -- > 2.20.1 >