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 298D2A0540; Tue, 14 Jul 2020 23:51:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50F8F1C1F2; Tue, 14 Jul 2020 23:51:43 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 86C191C18E for ; Tue, 14 Jul 2020 23:51:41 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E157B101E; Tue, 14 Jul 2020 14:51:40 -0700 (PDT) Received: from localhost.localdomain (2p2660v4-1.austin.arm.com [10.118.12.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DB3153F66E; Tue, 14 Jul 2020 14:51:40 -0700 (PDT) From: Dharmik Thakkar To: Wenzhuo Lu , Beilei Xing , Bernard Iremonger , John McNamara , Marko Kovacevic Cc: dev@dpdk.org, nd@arm.com, Dharmik Thakkar Date: Tue, 14 Jul 2020 16:51:04 -0500 Message-Id: <20200714215108.22437-3-dharmik.thakkar@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200714215108.22437-1-dharmik.thakkar@arm.com> References: <20200520032023.2649-2-dharmik.thakkar@arm.com> <20200714215108.22437-1-dharmik.thakkar@arm.com> Subject: [dpdk-dev] [PATCH 2/6] doc: add record-core-cycles to testpmd funcs doc 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" Update documentation to include description of 'record-core-cycles' runtime configuration. Signed-off-by: Dharmik Thakkar Reviewed-by: Phil Yang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- doc/guides/testpmd_app_ug/run_app.rst | 6 ++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index d1e4ee3e7a46..2b8e0ad69157 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -489,3 +489,9 @@ The command line options are: The default value is 0x7:: ETH_MQ_RX_RSS_FLAG | ETH_MQ_RX_DCB_FLAG | ETH_MQ_RX_VMDQ_FLAG + +* ``--record-core-cycles`` + + Enable measurement of CPU cycles per packet. + + diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index f8cfb02e38ab..980bf3340763 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -710,6 +710,21 @@ Set the forwarding ports hexadecimal mask:: This is equivalent to the ``--portmask`` command-line option. +set record-core-cycles +~~~~~~~~~~~~~~~~~~~~~~ + +Set the recording of CPU cycles:: + + testpmd> set record-core-cycles (on|off) + +Where: + +* ``on`` enables measurement of CPU cycles per packet. + +* ``off`` disables measurement of CPU cycles per packet. + +This is equivalent to the ``--record-core-cycles command-line`` option. + set burst ~~~~~~~~~ -- 2.17.1