All of lore.kernel.org
 help / color / mirror / Atom feed
* Timestamps in kernel tracing with LTTng
@ 2012-11-14  9:41 Vince Do
  0 siblings, 0 replies; 2+ messages in thread
From: Vince Do @ 2012-11-14  9:41 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 383 bytes --]

Hello,

I was wondering if you can give me more information on how LTTng the
timestamps are taken for a kernel trace, I have read in this article
(Combined Tracing of the Kernel and Applications with LTTng at Linux
Symposium 2009) that TSC and the command rdtsc are used, but the article is
old (2009) and I would like to know if there are been any changes.

Regards,



Vincenzo Do

[-- Attachment #1.2: Type: text/html, Size: 489 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Timestamps in kernel tracing with LTTng
       [not found] <CACXZPnwjnCYPXkxpx6vO2y_jnP42=hNFn1Arwi1NJWkr_kZy3A@mail.gmail.com>
@ 2012-11-14 15:21 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2012-11-14 15:21 UTC (permalink / raw)
  To: Vince Do; +Cc: lttng-dev

* Vince Do (blackhole37@gmail.com) wrote:
> Hello,
> 
> I was wondering if you can give me more information on how LTTng the
> timestamps are taken for a kernel trace, I have read in this article
> (Combined Tracing of the Kernel and Applications with LTTng at Linux
> Symposium 2009) that TSC and the command rdtsc are used, but the article is
> old (2009) and I would like to know if there are been any changes.

lttng uses the Linux kernel CLOCK_MONOTONIC clock, read through
clock_gettime() in user-space, and from ktime_get() in the kernel.

On x86 systems where TSC are synchronized and constant, it uses rdtsc,
scales that value to nanoseconds, and adds an offset. The fall-back is
usually the HPET timer on x86.

Thanks,

Mathieu

> 
> Regards,
> 
> 
> 
> Vincenzo Do

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


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

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

end of thread, other threads:[~2012-11-14 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-14  9:41 Timestamps in kernel tracing with LTTng Vince Do
     [not found] <CACXZPnwjnCYPXkxpx6vO2y_jnP42=hNFn1Arwi1NJWkr_kZy3A@mail.gmail.com>
2012-11-14 15:21 ` Mathieu Desnoyers

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.