Fix: stream.c: autopopulate timestamp fields even when not mapped to CC
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 9 Nov 2017 17:35:27 +0000 (12:35 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Dec 2017 15:51:27 +0000 (10:51 -0500)
commitf881c154cc09018ce82b53fbbd1963b1777b9bfd
treee08f533e1879abed23ea194862f35c23e101af5f
parent22b7fc0d94b994016c3014545a68ccf84c2747fa
Fix: stream.c: autopopulate timestamp fields even when not mapped to CC

To remain backward compatible with Babeltrace 1's CTF writer,
automatically set the event header `timestamp` fields (when appending
the event) and packet context `timestamp_begin` and `timestamp_end`
fields (on stream flush) when the stream's class has a registered CTF
writer clock, even if the field's types are not mapped to a clock class.

If the field is mapped to a clock class, then it is automatically set
when this mapped clock class is the same as the stream's class's clock's
class.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/stream.c
This page took 0.02742 seconds and 4 git commands to generate.