[lttng-dev] lttng timestamp precision

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Jun 21 19:56:18 UTC 2017


Depending on the architecture, it can take between 80ns to 2us to write an
event. So it's very much possible that your configuration takes about
400ns to write an event. This has little to do with clock source precision,
but it is rather related to the runtime overhead of the tracer.

Thanks,

Mathieu

----- On Jun 20, 2017, at 1:05 PM, Tom Deneau tom.deneau at amd.com wrote:

> Is there a write-up on lttng timestamp precision?
> 
> I have noticed on a 4.10 kernel with a mix of kernel and usermode events
> that the minimum time between events on a single software thread seems to be
> about 400 ns.
> 
> I noticed on this same system that clock_getres(CLOCK_MONOTONIC) reports 1 ns
> resolution.
> 
> -- Tom Deneau
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list