ir: do not try to create initial packet/event fields when opt. FT is NULL
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 2 Jun 2017 18:11:49 +0000 (14:11 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 21:02:58 +0000 (17:02 -0400)
commitbe514b0cc5125839619739b796190951ba45bb22
treee4ee1fff9df4a8f858f3d98c6b4d0421ce4368df
parent0ac862b485e8c287c1f9b560b357790ae63d110d
ir: do not try to create initial packet/event fields when opt. FT is NULL

If a trace has not packet header field type, then when creating a
packet, do not attempt to create the initial packet header field without
checking that the field type is NULL because this is a violation of
preconditions. The main side effect here is a WARN-level log message
even if the situation is normal.

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