Get rid of clock-raw and use real clock
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 3 Aug 2012 18:55:00 +0000 (14:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 3 Aug 2012 18:55:00 +0000 (14:55 -0400)
commit03798a93f959f6c694fe98f5647481947607c604
tree1408482c7c89277938b84b7c3d2ff660a0912192
parent1f7b01c261b8bd6c2640c0776f0a69865dff0ad8
Get rid of clock-raw and use real clock

The clock-raw does not make much sense except internally, using this
clock for seeks and with the public API is more complicated than
necessary.

This patch replaces the clock-raw by a clock-cycles (does not scale the
timestamp with the frequency) and make sure all the calls that
manipulate timestamps use the timestamp in nanoseconds with the offset
applied.
That way the user of the API don't need to bother with the "raw"
timestamp which won't be convenient when dealing with multiple traces
taken in different timezones.

Traces output before and after this patch are exactly the same
and multiple API calls have been tested with real timestamps and
everything seems to work fine.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
19 files changed:
converter/babeltrace.c
formats/ctf-text/ctf-text.c
formats/ctf/ctf.c
formats/ctf/events-private.h
formats/ctf/events.c
include/Makefile.am
include/babeltrace/babeltrace-internal.h
include/babeltrace/ctf-ir/metadata.h
include/babeltrace/ctf-text/types.h
include/babeltrace/ctf/events.h
include/babeltrace/ctf/types.h
include/babeltrace/format.h
include/babeltrace/iterator.h
include/babeltrace/trace-handle-internal.h
include/babeltrace/trace-handle.h
lib/context.c
lib/iterator.c
lib/trace-collection.c
lib/trace-handle.c
This page took 0.026219 seconds and 4 git commands to generate.