From: Mathieu Desnoyers Date: Mon, 3 May 2021 15:31:55 +0000 (-0400) Subject: Move struct lttng_metadata_stream to private header X-Git-Tag: v2.13.0-rc2~43 X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=9a4deef1779de32664c26ee6daa1db5e6c2a9767 Move struct lttng_metadata_stream to private header Signed-off-by: Mathieu Desnoyers Change-Id: Ieae3b2c4c2ffe50360a33db1056734d04668af82 --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index 097f5e97..084be4c1 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -243,6 +243,19 @@ struct lttng_metadata_cache { uint64_t version; /* Current version of the metadata */ }; +struct lttng_metadata_stream { + void *priv; /* Ring buffer private data */ + struct lttng_metadata_cache *metadata_cache; + unsigned int metadata_in; /* Bytes read from the cache */ + unsigned int metadata_out; /* Bytes consumed from stream */ + int finalized; /* Has channel been finalized */ + wait_queue_head_t read_wait; /* Reader buffer-level wait queue */ + struct list_head list; /* Stream list */ + struct lttng_transport *transport; + uint64_t version; /* Current version of the metadata cache */ + bool coherent; /* Stream in a coherent state */ +}; + struct lttng_kernel_channel_buffer_ops_private { struct lttng_kernel_channel_buffer_ops *pub; /* Public channel buffer ops interface */ diff --git a/include/lttng/events.h b/include/lttng/events.h index 16dc08d8..811833f3 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -435,19 +435,6 @@ struct lttng_channel { tstate:1; /* Transient enable state */ }; -struct lttng_metadata_stream { - void *priv; /* Ring buffer private data */ - struct lttng_metadata_cache *metadata_cache; - unsigned int metadata_in; /* Bytes read from the cache */ - unsigned int metadata_out; /* Bytes consumed from stream */ - int finalized; /* Has channel been finalized */ - wait_queue_head_t read_wait; /* Reader buffer-level wait queue */ - struct list_head list; /* Stream list */ - struct lttng_transport *transport; - uint64_t version; /* Current version of the metadata cache */ - bool coherent; /* Stream in a coherent state */ -}; - #define LTTNG_DYNAMIC_LEN_STACK_SIZE 128 struct lttng_dynamic_len_stack {