Implement ctf-metadata output plugin
[babeltrace.git] / include / babeltrace / ctf-ir / metadata.h
index 04e894512702fb110b7f900573c9524255d6f3a9..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 {
@@ -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.023393 seconds and 4 git commands to generate.