sync babeltrace headers
[lttngtop.git] / lib / babeltrace / ctf / types.h
index 338dad167ec976248c23a65c16b93973b9f44518..67b24ee4aa940cf3185bff55c57c2a127b2f2904 100644 (file)
 
 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 */
 
@@ -238,5 +242,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);
+int ctf_append_trace_metadata(struct bt_trace_descriptor *tdp,
+                       FILE *metadata_fp);
 
 #endif /* _BABELTRACE_CTF_TYPES_H */
This page took 0.022843 seconds and 4 git commands to generate.