Move metadata cache structure to internal header
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 May 2021 14:54:37 +0000 (10:54 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 May 2021 14:38:33 +0000 (10:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I99e77d8b6bc1b85dc324feecc81348aeab015030

include/lttng/events-internal.h
include/lttng/events.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
index 638fd516cffb424fb6e071933e78e589cfe05f54..7ed0b2013c35355aba6afb5533555ea35034814b 100644 (file)
@@ -642,18 +642,6 @@ struct lttng_event_notifier_group {
        size_t error_counter_len;
 };
 
-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 */
-};
-
 int lttng_probe_register(struct lttng_kernel_probe_desc *desc);
 void lttng_probe_unregister(struct lttng_kernel_probe_desc *desc);
 
This page took 0.027199 seconds and 4 git commands to generate.