Fix: bt_packet_context_field_create(): remove "frozen" SC precondition
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 3 Jul 2019 01:26:25 +0000 (21:26 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 3 Jul 2019 04:38:40 +0000 (00:38 -0400)
commitcf53c3fe71b8ffce46131ce67444253a6875c337
tree12df8316a299799932470cfb34b9b7e04a2c63c2
parent73051d4685cce1b2dc8550c60b9a13d11a561a7e
Fix: bt_packet_context_field_create(): remove "frozen" SC precondition

In bt_packet_context_field_create(), it is not a precondition that the
stream class be frozen. It used to mean that the stream class was
previously added to a trace class, but this is always the case now that
you pass the trace class to bt_stream_class_create().

bt_packet_context_field_create() freezes the stream class on success.
This shows that you can call bt_packet_context_field_create() with a
fresh, hot stream class, and then it becomes frozen.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I7487a516344d8b666e17d1c5e1a7dcefd1fd182e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1591
Tested-by: jenkins <jenkins@lttng.org>
src/lib/trace-ir/packet-context-field.c
This page took 0.025046 seconds and 4 git commands to generate.