Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics periodically

2017-07-06 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Thursday, July 6, 2017 12:52 AM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics > pe

Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics periodically

2017-07-05 Thread Thomas Monjalon
20/06/2017 10:34, De Lara Guarch, Pablo: > > > + if (stats_period != 0) { > > > + uint64_t prev_tsc = 0, cur_tsc, timer_tsc = 0; > > > + uint64_t timer_period; > > > + > > > + /* Convert to number of cycles */ > > > + timer_per

Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics periodically

2017-06-20 Thread De Lara Guarch, Pablo
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Monday, June 19, 2017 10:22 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics > periodically > >

Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics periodically

2017-06-19 Thread Thomas Monjalon
15/06/2017 03:48, Pablo de Lara: > +print_stats(void) > +{ > + uint8_t i; > + const char clr[] = { 27, '[', '2', 'J', '\0' }; > + const char topLeft[] = { 27, '[', '1', ';', '1', 'H', '\0' }; Spotted a CamelCase ;) Is there a punishment planned in the contributor's guide? > +

Re: [dpdk-dev] [PATCH v3] app/testpmd: print statistics periodically

2017-06-18 Thread Wu, Jingjing
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Thursday, June 15, 2017 9:48 AM > To: Wu, Jingjing > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [PATCH v3] app/testpmd: print statistics periodically > > Add parameter to print port statistics periodically (disabled by