uint64_t timestamp; /* Current timestamp, in ns */
uint64_t event_id; /* Current event ID */
int has_timestamp;
uint64_t stream_id;
uint64_t timestamp; /* Current timestamp, in ns */
uint64_t event_id; /* Current event ID */
int has_timestamp;
uint64_t stream_id;
struct definition_struct *trace_packet_header;
struct definition_struct *stream_packet_context;
struct definition_struct *stream_event_header;
struct definition_struct *stream_event_context;
struct definition_struct *trace_packet_header;
struct definition_struct *stream_packet_context;
struct definition_struct *stream_event_header;
struct definition_struct *stream_event_context;
struct definition_scope *parent_def_scope; /* for initialization */
int stream_definitions_created;
struct ctf_clock *current_clock;
/* Event discarded information */
struct definition_scope *parent_def_scope; /* for initialization */
int stream_definitions_created;
struct ctf_clock *current_clock;
/* Event discarded information */
- uint32_t events_discarded;
- uint64_t prev_timestamp; /* Last event */
- uint64_t prev_timestamp_end; /* End-of-packet timestamp */
+ uint64_t events_discarded;
+ uint64_t prev_timestamp; /* Start-of-last-packet timestamp */
+ uint64_t prev_timestamp_end; /* End-of-last-packet timestamp */
struct declaration_scope *declaration_scope;
/* innermost definition scope. to be used as parent of stream. */
struct definition_scope *definition_scope;
struct declaration_scope *declaration_scope;
/* innermost definition scope. to be used as parent of stream. */
struct definition_scope *definition_scope;
- GPtrArray *streams; /* Array of struct ctf_stream_class pointers */
- struct ctf_stream *metadata;
+ GPtrArray *streams; /* Array of struct ctf_stream_declaration pointers */
+ struct ctf_stream_definition *metadata;
GHashTable *clocks;
struct ctf_clock *single_clock; /* currently supports only one clock */
struct trace_collection *collection; /* Container of this trace */
GHashTable *clocks;
struct ctf_clock *single_clock; /* currently supports only one clock */
struct trace_collection *collection; /* Container of this trace */
/* Heap of streams, ordered to always get the lowest timestam */
struct ptr_heap *stream_heap;
char path[PATH_MAX];
/* Heap of streams, ordered to always get the lowest timestam */
struct ptr_heap *stream_heap;
char path[PATH_MAX];
struct ctf_trace *trace;
/* parent is lexical scope conaining the stream scope */
struct declaration_scope *declaration_scope;
/* innermost definition scope. to be used as parent of event. */
struct definition_scope *definition_scope;
struct ctf_trace *trace;
/* parent is lexical scope conaining the stream scope */
struct declaration_scope *declaration_scope;
/* innermost definition scope. to be used as parent of event. */
struct definition_scope *definition_scope;
GHashTable *event_quark_to_id; /* GQuark to numeric id */
struct declaration_struct *packet_context_decl;
GHashTable *event_quark_to_id; /* GQuark to numeric id */
struct declaration_struct *packet_context_decl;