X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Ftypes.h;h=39591c6f2ca34dc07e57ea4e68abdc7b20e66d5f;hb=f3985ab106d89d8e764c1a8dd0c8bda09b755d10;hp=c336632f7e6eb34b93190ae5e4d71c5f1a12d994;hpb=c88c09f9909b46d098b677aa5fc8a1dc528580fd;p=babeltrace.git diff --git a/include/babeltrace/ctf/types.h b/include/babeltrace/ctf/types.h index c336632f..39591c6f 100644 --- a/include/babeltrace/ctf/types.h +++ b/include/babeltrace/ctf/types.h @@ -45,8 +45,8 @@ struct bt_stream_callbacks; struct packet_index_time { - uint64_t timestamp_begin; - uint64_t timestamp_end; + int64_t timestamp_begin; + int64_t timestamp_end; }; struct packet_index { @@ -58,6 +58,9 @@ struct packet_index { uint64_t events_discarded_len; /* length of the field, in bits */ struct packet_index_time ts_cycles; /* timestamp in cycles */ struct packet_index_time ts_real; /* realtime timestamp */ + /* CTF_INDEX 1.0 limit */ + uint64_t stream_instance_id; /* ID of the channel instance */ + uint64_t packet_seq_num; /* packet sequence number */ }; /* @@ -243,7 +246,7 @@ void ctf_pos_get_event(struct ctf_stream_pos *pos) } void ctf_print_timestamp(FILE *fp, struct ctf_stream_definition *stream, - uint64_t timestamp); + int64_t timestamp); int ctf_append_trace_metadata(struct bt_trace_descriptor *tdp, FILE *metadata_fp);