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>
Thu, 23 Nov 2017 14:53:30 +0000 (09:53 -0500)
commit9f1bc15727fb033821f6c7499459d50da8af4653
treef6b5245ac0dea3918f30a07465703a3709b49193
parentcb3373fec88c4c63645163bcc32f5af3c922c8b9
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.024879 seconds and 4 git commands to generate.