Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] gettimeofday vs clock_gettime
@ 2010-05-21  7:26 Nils Carlson
  2010-05-21 12:19 ` Mathieu Desnoyers
  2010-05-21 15:52 ` Pierre-Marc Fournier
  0 siblings, 2 replies; 3+ messages in thread
From: Nils Carlson @ 2010-05-21  7:26 UTC (permalink / raw)


Is there any reason UST uses gettimeofday and not clock_gettime with the
monotonic clock?

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






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ltt-dev] gettimeofday vs clock_gettime
  2010-05-21  7:26 [ltt-dev] gettimeofday vs clock_gettime Nils Carlson
@ 2010-05-21 12:19 ` Mathieu Desnoyers
  2010-05-21 15:52 ` Pierre-Marc Fournier
  1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Desnoyers @ 2010-05-21 12:19 UTC (permalink / raw)


* 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ltt-dev] gettimeofday vs clock_gettime
  2010-05-21  7:26 [ltt-dev] gettimeofday vs clock_gettime Nils Carlson
  2010-05-21 12:19 ` Mathieu Desnoyers
@ 2010-05-21 15:52 ` Pierre-Marc Fournier
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre-Marc Fournier @ 2010-05-21 15:52 UTC (permalink / raw)


Nils Carlson wrote:
> Is there any reason UST uses gettimeofday and not clock_gettime with the
> monotonic clock?

The only reason is braindeadness. ;-) Can you provide a patch to fix this?

pmf




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-21 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21  7:26 [ltt-dev] gettimeofday vs clock_gettime Nils Carlson
2010-05-21 12:19 ` Mathieu Desnoyers
2010-05-21 15:52 ` Pierre-Marc Fournier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox