From: Mathieu Desnoyers Date: Mon, 3 May 2021 14:54:37 +0000 (-0400) Subject: Move metadata cache structure to internal header X-Git-Tag: v2.13.0-rc2~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a8605b844d55fbc00d9b60eee804c9b08fdb9be7;p=lttng-modules.git Move metadata cache structure to internal header Signed-off-by: Mathieu Desnoyers Change-Id: I99e77d8b6bc1b85dc324feecc81348aeab015030 --- 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);