Implement ctf-metadata output plugin
[babeltrace.git] / include / babeltrace / ctf-ir / metadata.h
index b209993d984979f90bbc870b0602b3d2c998cd45..eb37c2df3b4b0dc3a1ce5381e12e7579c7d40d5b 100644 (file)
@@ -66,6 +66,7 @@ struct ctf_stream_definition {
        uint64_t prev_real_timestamp_end;       /* End-of-last-packet timestamp in ns */
        uint64_t prev_cycles_timestamp;         /* Start-of-last-packet timestamp in cycles */
        uint64_t prev_cycles_timestamp_end;     /* End-of-last-packet timestamp in cycles */
+       char path[PATH_MAX];                    /* Path to stream. '\0' for mmap traces */
 };
 
 struct ctf_event_definition {
@@ -174,7 +175,7 @@ struct ctf_tracer_env {
 };
 
 struct ctf_trace {
-       struct trace_descriptor parent;
+       struct bt_trace_descriptor parent;
        /* root scope */
        struct declaration_scope *root_declaration_scope;
 
@@ -183,6 +184,8 @@ struct ctf_trace {
        struct definition_scope *definition_scope;
        GPtrArray *streams;                     /* Array of struct ctf_stream_declaration pointers */
        struct ctf_stream_definition *metadata;
+       char *metadata_string;
+       int metadata_packetized;
        GHashTable *clocks;
        GHashTable *callsites;
        struct ctf_clock *single_clock;         /* currently supports only one clock */
@@ -210,7 +213,7 @@ struct ctf_trace {
        int dirfd;
        int flags;              /* open flags */
 
-       /* Heap of streams, ordered to always get the lowest timestam */
+       /* Heap of streams, ordered to always get the lowest timestamp */
        struct ptr_heap *stream_heap;
        char path[PATH_MAX];
 
This page took 0.026003 seconds and 4 git commands to generate.