X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=lib%2Fbabeltrace%2Fctf%2Ftypes.h;h=f268e13aa7fd412984332c143b111db208b86844;hp=338dad167ec976248c23a65c16b93973b9f44518;hb=3bac1a1f2f88bc39f1f2eb09efe508f4c59d4428;hpb=09e7f98e84338afb3f6959a19df84ec4b4c1c012 diff --git a/lib/babeltrace/ctf/types.h b/lib/babeltrace/ctf/types.h index 338dad1..f268e13 100644 --- a/lib/babeltrace/ctf/types.h +++ b/lib/babeltrace/ctf/types.h @@ -44,15 +44,20 @@ struct bt_stream_callbacks; +struct packet_index_time { + uint64_t timestamp_begin; + uint64_t timestamp_end; +}; + struct packet_index { off_t offset; /* offset of the packet in the file, in bytes */ int64_t data_offset; /* offset of data within the packet, in bits */ uint64_t packet_size; /* packet size, in bits */ uint64_t content_size; /* content size, in bits */ - uint64_t timestamp_begin; - uint64_t timestamp_end; uint64_t events_discarded; 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 */ }; /* @@ -62,8 +67,7 @@ struct ctf_stream_pos { struct bt_stream_pos parent; int fd; /* backing file fd. -1 if unset. */ FILE *index_fp; /* backing index file fp. NULL if unset. */ - GArray *packet_cycles_index; /* contains struct packet_index in cycles */ - GArray *packet_real_index; /* contains struct packet_index in ns */ + GArray *packet_index; /* contains struct packet_index */ int prot; /* mmap protection */ int flags; /* mmap flags */