From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 853A12BBB for ; Wed, 7 Jun 2017 11:11:39 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2017 02:11:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,310,1493708400"; d="scan'208";a="1179350781" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 07 Jun 2017 02:11:38 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Jun 2017 02:11:38 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Jun 2017 02:11:38 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.197]) with mapi id 14.03.0319.002; Wed, 7 Jun 2017 17:11:36 +0800 From: "Wu, Jingjing" To: "De Lara Guarch, Pablo" CC: "dev@dpdk.org" Thread-Topic: [PATCH] app/testpmd: print statistics periodically Thread-Index: AQHS1/rDF9gstw3m2Eiuir2XsCdzAqIZIMlg Date: Wed, 7 Jun 2017 09:11:36 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810D9CBDA@SHSMSX103.ccr.corp.intel.com> References: <1496007534-182470-1-git-send-email-pablo.de.lara.guarch@intel.com> In-Reply-To: <1496007534-182470-1-git-send-email-pablo.de.lara.guarch@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/testpmd: print statistics periodically 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: , X-List-Received-Date: Wed, 07 Jun 2017 09:11:41 -0000 > -----Original Message----- > From: De Lara Guarch, Pablo > Sent: Monday, May 29, 2017 5:39 AM > To: Wu, Jingjing > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [PATCH] app/testpmd: print statistics periodically >=20 > Add parameter to print port statistics periodically > (disabled by default), if interactive mode is not enabled. >=20 > This is useful to allow the user to see port statistics > without having to get into the internal command line. >=20 > Signed-off-by: Pablo de Lara > --- > app/test-pmd/parameters.c | 15 ++++++++++++- > app/test-pmd/testpmd.c | 40 > ++++++++++++++++++++++++++++++++++- > app/test-pmd/testpmd.h | 1 + > doc/guides/testpmd_app_ug/run_app.rst | 5 +++++ > 4 files changed, 59 insertions(+), 2 deletions(-) >=20 > diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c > index fbe6284..a758b25 100644 > --- a/app/test-pmd/parameters.c > +++ b/app/test-pmd/parameters.c > @@ -89,6 +89,7 @@ usage(char* progname) > "[--cmdline-file=3DFILENAME] " > #endif > "[--help|-h] | [--auto-start|-a] | [" > + "-T PERIOD: statistics will be shown every PERIOD seconds (only = if interactive is How about change it following format? "[--help|-h] | [--auto-start|-a] | [ -T PERIOD] | [" "-T PERIOD: statistics will be shown every PERIOD seconds (only if interact= ive is "--coremask=3DCOREMASK --portmask=3DPORTMASK --numa " Add line after printf(" --help: ...... printf("-T PERIOD: statistics will be shown every PERIOD seconds (only if i= nteractive is disabled)\n");