From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so1.wedos.net (wes1-so1-b.wedos.net [46.28.106.43]) by dpdk.org (Postfix) with ESMTP id 279A32B9E for ; Tue, 4 Oct 2016 14:48:09 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so1.wedos.net (Postfix) with ESMTPSA id 3spJc84w5Nz7BV; Tue, 4 Oct 2016 14:48:08 +0200 (CEST) Date: Tue, 4 Oct 2016 14:45:26 +0200 From: Jan Viktorin To: Thomas Monjalon Cc: Jerin Jacob , dev@dpdk.org, jianbo.liu@linaro.org Message-ID: <20161004144526.2bcb3fa6@pcviktorin.fit.vutbr.cz> In-Reply-To: <1570506.0gxVEm9dQ5@xps13> References: <1475577630-14318-1-git-send-email-jerin.jacob@caviumnetworks.com> <1570506.0gxVEm9dQ5@xps13> Organization: RehiveTech MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] doc: arm64: document DPDK application profiling methods 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: Tue, 04 Oct 2016 12:48:09 -0000 On Tue, 04 Oct 2016 14:40:47 +0200 Thomas Monjalon wrote: > Thanks for providing a patch so quickly :) > > 2016-10-04 16:10, Jerin Jacob: > > +The PMU based scheme useful for high accuracy performance profiling. > > A verb is missing. > > > +Find below the example steps to configure the PMU based cycle counter on an > > +armv8 machine. > > + > > +.. code-block:: console > > + > > + git clone https://github.com/jerinjacobk/armv8_pmu_cycle_counter_el0 > > + cd armv8_pmu_cycle_counter_el0 > > + make > > + sudo insmod pmu_el0_cycle_counter.ko > > + cd $DPDK_DIR > > + make config T=arm64-armv8a-linuxapp-gcc > > + echo "CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU=y" >> build/.config > > + make > > What about the ARM 32 code that Jan is using? Hi, I didn't have time for this yet. The basic description is here: lib/librte_eal/common/include/arch/arm/rte_cycles_32.h In the Linux Kernel, it is used here: arch/arm/kernel/perf_event_v7.c (see registers c12, c13 and c14) Regards Jan > > > +.. warning:: > > + > > + This method can not be used in production systems as this may alter PMU > > + state used by standard Linux user space tool like perf. > > More details please? > -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic