visitor-generate-ir.c: automatically map specific fields to trace's clock class
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 14 Jun 2017 16:34:00 +0000 (12:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 14 Jun 2017 22:09:41 +0000 (18:09 -0400)
commit4adc5a41399d7a7099d40e55662282108dde13a7
treedc13ec99d38813359190df8af297b6d857f63927
parent53ac34280b8e354671b94046b4cb39a643931926
visitor-generate-ir.c: automatically map specific fields to trace's clock class

In non-strict mode (default), automatically map packet context field
type's `timestamp_begin` and `timestamp_end` fields, as well as
event header field type's `timestamp` and `ts` fields, when the
following conditions are all true:

* The decoder is in non-strict mode.
* The field type is an integer field type.
* The integer field type is not mapped to a clock class.
* The trace contains only one clock class at this point.

This attempts to fix semantics errors committed by some known tracers
(very old versions of LTTng and old versions of CTF writer).

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