Handle negative time and offset from Epoch
[babeltrace.git] / include / babeltrace / ctf / types.h
index c336632f7e6eb34b93190ae5e4d71c5f1a12d994..39591c6f2ca34dc07e57ea4e68abdc7b20e66d5f 100644 (file)
@@ -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);
 
This page took 0.023031 seconds and 4 git commands to generate.