Override clock fields in copied traces
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 14 Feb 2017 17:03:00 +0000 (12:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:39 +0000 (12:57 -0400)
commitb2f1f465086eb82ac6b1a57538b643fdced00ac5
treeaa1e434620ded7a67552d1d4d9cb0a1f031c72d5
parent91b7300484fbb379a7ec769fe29a09ea63dda018
Override clock fields in copied traces

Some tracers like LTTng use a compression scheme on the timestamp field
to avoid writing the full 64-bit timestamp at every event. When the
trace is complete, the reader has all the information to understand this
compression, but if a trace is filtered or truncated, there might be
some state information missing.

Since we don't know in advance if a compression scheme is used in a
trace, we now force the copied traces to have a full 64-bit timestamp.

The user of this library can decide whether or not to override the type
of the clock fields.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/libctfcopytrace/Makefile.am
plugins/libctfcopytrace/clock-fields.c [new file with mode: 0644]
plugins/libctfcopytrace/clock-fields.h [new file with mode: 0644]
plugins/libctfcopytrace/ctfcopytrace.c
plugins/libctfcopytrace/ctfcopytrace.h
plugins/writer/write.c
This page took 0.024507 seconds and 4 git commands to generate.