Closed DonAurelio closed 1 year ago
Agree, I guess we need to add it only if we have a packet_context_field_class
on the model. I think it's the only tine we use packet
. We do not yet support anything bt_create_packet
and so fort. So just call it inside this if https://github.com/TApplencourt/metababel/blob/ac0487b0ebe54a4ba5a8a66e5eabe0bf12bd0860/lib/metababel/bt2_trace_class_generator.rb#L183
I am generating a source to create dummy HIP messages. After solving some minor issues I came up with the following error:
In short
Stream class does not support packets...
. This came out now since it is the first time we are using the package_context_field in the model.Seems this is happening because we are not calling bt_stream_class_set_supports_packets() once the stream class is created.
Possible solution:
We should call this function before the line below. https://github.com/TApplencourt/metababel/blob/ac0487b0ebe54a4ba5a8a66e5eabe0bf12bd0860/lib/metababel/bt2_trace_class_generator.rb#L171