From fe21b9435361899060af5ec3b42f2778b4dfbcdd Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 27 Feb 2011 12:46:40 -0500 Subject: [PATCH] Add CTF metadata trace structures Signed-off-by: Mathieu Desnoyers --- include/babeltrace/ctf/metadata.h | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/include/babeltrace/ctf/metadata.h b/include/babeltrace/ctf/metadata.h index 622ed7b6..7923e65b 100644 --- a/include/babeltrace/ctf/metadata.h +++ b/include/babeltrace/ctf/metadata.h @@ -27,19 +27,34 @@ struct ctf_stream; struct ctf_event; struct ctf_trace { - struct declaration_scope *scope; + struct declaration_scope *scope; /* root scope */ + GArray *streams; /* Array of struct ctf_stream */ + + uint64_t major; + uint64_t minor; + uint8_t uuid[16]; + uint64_t word_size; }; struct ctf_stream { - struct declaration_scope *scope; + struct declaration_scope *scope; /* parent is trace scope */ GArray *events_by_id; /* Array of struct ctf_event indexed by id */ GHashTable *event_quark_to_id; /* GQuark to numeric id */ + + uint64_t stream_id; + struct declaration_struct *event_header; + struct declaration_struct *event_context; + struct declaration_struct *packet_context; }; struct ctf_event { - struct declaration_scope *scope; - GQuark qname; + struct declaration_scope *scope; /* parent is stream scope */ + GQuark name; + uint64_t id; /* Numeric identifier within the stream */ + uint64_t stream_id; + struct declaration_struct *context; + struct declaration_struct *fields; }; #endif /* _BABELTRACE_CTF_METADATA_H */ -- 2.34.1