Fix: Stream classes' id field is always serialized
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Jun 2017 19:16:45 +0000 (15:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Jun 2017 19:16:45 +0000 (15:16 -0400)
commit6a5c98a5326dccd11d1c8300c5977666b15a7b75
treeeee46467deb5015d5b89eb3bf0b2cccc5fe4b1f5
parent1c1d572f5cf7eb9a5eab0feaef8b745c45b6dad0
Fix: Stream classes' id field is always serialized

A stream class' "id" must not be expressed in the trace metadata
if the trace's packet header does not contain a stream_id field.
Otherwise, the reader will try to ensure the packets' stream_id
corresponds to the stream class' id and will fail to do so.

The fix is to omit the serialization of the stream class' id
field entirely if the stream_id field is not found within the
trace's packet header.

It remains unclear whether or not a stream class has an actual
"id" in this case, or if some "unspecified" id state should
be implemented.

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