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 21:39:31 +0000 (17:39 -0400)
commit56b43721cde738dace9fc445bcf388e944686cbc
tree7445094168acf0525f862c5cacc7ba8639691db5
parenta2a545450763347fd1c1e5c089a296238e1cbc11
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.024371 seconds and 4 git commands to generate.