Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: compudj@krystal.dyndns.org (Mathieu Desnoyers)
Subject: [ltt-dev] gettimeofday vs clock_gettime
Date: Fri, 21 May 2010 08:19:45 -0400	[thread overview]
Message-ID: <20100521121945.GB27410@Krystal> (raw)
In-Reply-To: <Pine.GSO.4.58.1005210904080.4590@dexter.ludd.ltu.se>

* Nils Carlson (nils.carlson at ludd.ltu.se) wrote:
> Is there any reason UST uses gettimeofday and not clock_gettime with the
> monotonic clock?

Given that clock_gettime is available as a vDSO too, I see no reason not
to use it instead of gettimeofday. It's clearly closer to the intent.

Eventually, we'd like to create a TRACE_CLOCK version of clock_gettime
that would return the same time base as LTTng.

Thanks,

Mathieu

> 
> I'm guessing this has been asked before, but the mailing list doesn't
> really lend itself to searching and there is no FAQ as far as I can tell.
> 
> /Nils
> 
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




  reply	other threads:[~2010-05-21 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21  7:26 Nils Carlson
2010-05-21 12:19 ` Mathieu Desnoyers [this message]
2010-05-21 15:52 ` Pierre-Marc Fournier

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=20100521121945.GB27410@Krystal \
    --to=compudj@krystal.dyndns.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox