bt_object_init(packet, bt_ctf_packet_destroy);
packet->stream = bt_get(stream);
packet->header = bt_ctf_field_create(trace->packet_header_type);
bt_object_init(packet, bt_ctf_packet_destroy);
packet->stream = bt_get(stream);
packet->header = bt_ctf_field_create(trace->packet_header_type);