From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7A6A6A0C45; Sun, 11 Jul 2021 09:59:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F57F4068C; Sun, 11 Jul 2021 09:59:26 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id EB2BD40040 for ; Sun, 11 Jul 2021 09:59:24 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16B7sSQU001604; Sun, 11 Jul 2021 00:59:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Iun840dYMg2FSmHAvAvxU2tFhTbacrvWxYHtwJLipmg=; b=ZtHOLuqi/mIaTGvSf38+JtjCrxKhgE7GWDhFww/LYChDo87c1QOL4wD70LXbOutgYtOt Mo8OOPjXjf+8HzMqtOxKuS4R6XS5TcO91ljc6/H+LLvakthUsdfm7VNuPva1q4oQhReG mBR3hmIfxDYVhHyOQXtueJMymjGbJepmmWNvQeLDdrL/BmA8TtKeji5e+xkB3YhoKAYg ZOICHVv8rQVgYSc08o6zvVbj75B9m89fH6vytq9aXD3YMu64ogLyZ0joBdKiJnRlGIE4 jbfMa2XlOpm3XjGXsI45050t1htFjqERYEESJThTZOLylzYGlHLTAhgC6umnh/HGDVE9 gA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 39qb2r20b2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 11 Jul 2021 00:59:19 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 11 Jul 2021 00:59:17 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Sun, 11 Jul 2021 00:59:17 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id 9DDE43F70AD; Sun, 11 Jul 2021 00:59:16 -0700 (PDT) From: To: CC: , , , Jerin Jacob Date: Sun, 11 Jul 2021 13:28:21 +0530 Message-ID: <20210711075821.3022587-1-jerinj@marvell.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: kKZ6buEAJxZJoPQ0hATB-KnZ3HCBluVf X-Proofpoint-GUID: kKZ6buEAJxZJoPQ0hATB-KnZ3HCBluVf X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-11_04:2021-07-09, 2021-07-11 signatures=0 Subject: [dpdk-dev] [PATCH] doc: enhance arm64 profiling documentation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" From: Jerin Jacob Documented the role of RTE_ARM_EAL_RDTSC_USE_PMU to enable PMU based rte_rdtsc(). Signed-off-by: Jerin Jacob --- doc/guides/prog_guide/profile_app.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/guides/prog_guide/profile_app.rst b/doc/guides/prog_guide/profile_app.rst index 52f85bb9e0..bd6700ef85 100644 --- a/doc/guides/prog_guide/profile_app.rst +++ b/doc/guides/prog_guide/profile_app.rst @@ -94,7 +94,16 @@ an ARMv8 machine. make sudo insmod pmu_el0_cycle_counter.ko -Please refer to :doc:`../linux_gsg/build_dpdk` for details on compiling DPDK with meson. +Please refer to :doc:`../linux_gsg/build_dpdk` for generic details on compiling DPDK with meson. + +In order to enable ``PMU`` based ``rte_rdtsc()``, user needs to configure the +build with ``-Dc_args='-DRTE_ARM_EAL_RDTSC_USE_PMU'``. + +Example: + +.. code-block:: console + + meson --cross config/arm/arm64_armv8_linux_gcc -Dc_args='-DRTE_ARM_EAL_RDTSC_USE_PMU' build .. warning:: -- 2.32.0