X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fmetadata.h;h=ce5f8b9e477d7053d77aad852c02dc392d0f4b44;hp=2cae4630eee22e14da47314798c3c09222f4c6a2;hb=fca049584ae1bcd9b0859924f982c6a0f6c7388f;hpb=50cb9c56c5e3a2a37b63537a1604e5c209d17cd7 diff --git a/include/babeltrace/ctf-ir/metadata.h b/include/babeltrace/ctf-ir/metadata.h index 2cae4630..ce5f8b9e 100644 --- a/include/babeltrace/ctf-ir/metadata.h +++ b/include/babeltrace/ctf-ir/metadata.h @@ -36,6 +36,7 @@ struct ctf_event; struct ctf_stream { struct ctf_stream_class *stream_class; uint64_t timestamp; /* Current timestamp, in ns */ + uint64_t prev_timestamp; uint64_t event_id; /* Current event ID */ int has_timestamp; uint64_t stream_id; @@ -47,6 +48,10 @@ struct ctf_stream { GPtrArray *events_by_id; /* Array of struct ctf_stream_event pointers indexed by id */ struct definition_scope *parent_def_scope; /* for initialization */ int stream_definitions_created; + + /* Event discarded information */ + uint32_t events_discarded; + }; struct ctf_stream_event { @@ -82,6 +87,7 @@ struct ctf_clock { uint64_t offset_s; /* Fine clock offset from Epoch, in (1/freq) units. */ uint64_t offset; + int absolute; enum { /* Fields populated mask */ CTF_CLOCK_name = (1U << 0), @@ -113,6 +119,7 @@ struct ctf_trace { GPtrArray *streams; /* Array of struct ctf_stream_class pointers */ struct ctf_stream *metadata; GHashTable *clocks; + struct trace_collection *collection; /* Container of this trace */ struct declaration_struct *packet_header_decl;