From 8a20497ff97f1d3252c753f33c809ac6333589c8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 3 May 2021 10:54:37 -0400 Subject: [PATCH] Move metadata cache structure to internal header Signed-off-by: Mathieu Desnoyers Change-Id: I99e77d8b6bc1b85dc324feecc81348aeab015030 --- include/lttng/events-internal.h | 12 ++++++++++++ include/lttng/events.h | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index 128484a8..f0d0b0da 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -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 diff --git a/include/lttng/events.h b/include/lttng/events.h index 638fd516..7ed0b201 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -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); -- 2.34.1