All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
Cc: dev@dpdk.org, "Wu, Jingjing" <jingjing.wu@intel.com>
Subject: Re: [PATCH v3] app/testpmd: print statistics periodically
Date: Thu, 06 Jul 2017 01:51:40 +0200	[thread overview]
Message-ID: <2035419.FSHShSjrGD@xps> (raw)
In-Reply-To: <E115CCD9D858EF4F90C690B0DCB4D8976CBC7CC8@IRSMSX108.ger.corp.intel.com>

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_period = stats_period * rte_get_timer_hz();
> > > +
> > > +			while (1) {
> > > +				cur_tsc = rte_rdtsc();
> > > +				timer_tsc += cur_tsc - prev_tsc;
> > 
> > Please forget (Intel) TSC wording and prefer the more generic
> > rte_get_timer_cycles() function.
> 
> Good point, will fix in the v4.

Waiting for v4.

  reply	other threads:[~2017-07-05 23:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-28 21:38 [PATCH] app/testpmd: print statistics periodically Pablo de Lara
2017-06-07  9:11 ` Wu, Jingjing
2017-06-07 13:13   ` De Lara Guarch, Pablo
2017-06-09  1:46 ` [PATCH v2] " Pablo de Lara
2017-06-15  1:48   ` [PATCH v3] " Pablo de Lara
2017-06-19  1:05     ` Wu, Jingjing
2017-06-19 21:22     ` Thomas Monjalon
2017-06-20  8:34       ` De Lara Guarch, Pablo
2017-07-05 23:51         ` Thomas Monjalon [this message]
2017-07-06  9:56           ` De Lara Guarch, Pablo
2017-07-06  1:52     ` [PATCH v4] " Pablo de Lara
2017-07-06  3:05       ` [PATCH v5] " Pablo de Lara
2017-07-06 14:20         ` Thomas Monjalon
2017-07-06 10:06       ` [PATCH v4] " Jerin Jacob
2017-07-06 10:43         ` De Lara Guarch, Pablo
2017-07-06 10:16       ` Thomas Monjalon
2017-07-06 10:19         ` De Lara Guarch, Pablo
2017-06-19  0:54   ` [PATCH v2] " Wu, Jingjing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2035419.FSHShSjrGD@xps \
    --to=thomas@monjalon.net \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=pablo.de.lara.guarch@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.