Move metadata cache structure to internal header
[lttng-modules.git] / include / lttng / events-internal.h
index 128484a8ec312672615a2665527596326ba97d20..f0d0b0dabd30c3eb02014fd2ec4036e9e78e424f 100644 (file)
@@ -231,6 +231,18 @@ struct lttng_kernel_ctx {
        size_t largest_align;   /* in bytes */
 };
 
+struct lttng_metadata_cache {
+       char *data;                     /* Metadata cache */
+       unsigned int cache_alloc;       /* Metadata allocated size (bytes) */
+       unsigned int metadata_written;  /* Number of bytes written in metadata cache */
+       atomic_t producing;             /* Metadata being produced (incomplete) */
+       struct kref refcount;           /* Metadata cache usage */
+       struct list_head metadata_stream;       /* Metadata stream list */
+       uuid_le uuid;                   /* Trace session unique ID (copy) */
+       struct mutex lock;              /* Produce/consume lock */
+       uint64_t version;               /* Current version of the metadata */
+};
+
 extern struct lttng_kernel_ctx *lttng_static_ctx;
 
 static inline
This page took 0.022963 seconds and 4 git commands to generate.