From: Mathieu Desnoyers Date: Tue, 23 Mar 2021 19:53:39 +0000 (-0400) Subject: Rename struct lttng_ust_channel_ops to struct lttng_ust_channel_buffer_ops X-Git-Tag: v2.13.0-rc1~206 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=14b6f89117234871ef9f750c4d282975397e30b7;p=lttng-ust.git Rename struct lttng_ust_channel_ops to struct lttng_ust_channel_buffer_ops Likewise for private structure. This namespacing will allow smoother integration of upcoming counter feature in the public API. Signed-off-by: Mathieu Desnoyers Change-Id: Idc68f43febbb7e6ad2ed02615ddaee6a3e729b09 --- diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 8568d4bd..ca3d1981 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -428,7 +428,7 @@ struct lttng_ust_event_notifier { }; struct lttng_ust_lib_ring_buffer_channel; -struct lttng_ust_channel_ops_private; +struct lttng_ust_channel_buffer_ops_private; /* * IMPORTANT: this structure is part of the ABI between the probe and @@ -439,10 +439,10 @@ struct lttng_ust_channel_ops_private; * structure. It should be queried before using additional fields added * at the end of the structure. */ -struct lttng_ust_channel_ops { +struct lttng_ust_channel_buffer_ops { uint32_t struct_size; - struct lttng_ust_channel_ops_private *priv; /* Private channel ops interface */ + struct lttng_ust_channel_buffer_ops_private *priv; /* Private channel buffer ops interface */ int (*event_reserve)(struct lttng_ust_lib_ring_buffer_ctx *ctx, uint32_t event_id); @@ -503,7 +503,7 @@ struct lttng_ust_channel_buffer { struct lttng_ust_channel_common *parent; /* Inheritance by aggregation. */ struct lttng_ust_channel_buffer_private *priv; /* Private channel buffer interface */ - struct lttng_ust_channel_ops *ops; + struct lttng_ust_channel_buffer_ops *ops; struct lttng_ust_lib_ring_buffer_channel *chan; /* Channel buffers */ struct lttng_ust_shm_handle *handle; /* shared-memory handle */ diff --git a/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index 32b812d5..84457f0a 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -819,8 +819,8 @@ int lttng_flush_buffer(struct lttng_ust_lib_ring_buffer_channel *chan, static struct lttng_transport lttng_relay_transport = { .name = "relay-" RING_BUFFER_MODE_TEMPLATE_STRING "-mmap", .ops = { - .struct_size = sizeof(struct lttng_ust_channel_ops), - .priv = __LTTNG_COMPOUND_LITERAL(struct lttng_ust_channel_ops_private, { + .struct_size = sizeof(struct lttng_ust_channel_buffer_ops), + .priv = __LTTNG_COMPOUND_LITERAL(struct lttng_ust_channel_buffer_ops_private, { .pub = <tng_relay_transport.ops, .channel_create = _channel_create, .channel_destroy = lttng_channel_destroy, diff --git a/liblttng-ust/lttng-ring-buffer-metadata-client.h b/liblttng-ust/lttng-ring-buffer-metadata-client.h index 8a594397..40213e80 100644 --- a/liblttng-ust/lttng-ring-buffer-metadata-client.h +++ b/liblttng-ust/lttng-ring-buffer-metadata-client.h @@ -328,9 +328,9 @@ int lttng_flush_buffer(struct lttng_ust_lib_ring_buffer_channel *chan, static struct lttng_transport lttng_relay_transport = { .name = "relay-" RING_BUFFER_MODE_TEMPLATE_STRING "-mmap", .ops = { - .struct_size = sizeof(struct lttng_ust_channel_ops), + .struct_size = sizeof(struct lttng_ust_channel_buffer_ops), - .priv = __LTTNG_COMPOUND_LITERAL(struct lttng_ust_channel_ops_private, { + .priv = __LTTNG_COMPOUND_LITERAL(struct lttng_ust_channel_buffer_ops_private, { .pub = <tng_relay_transport.ops, .channel_create = _channel_create, .channel_destroy = lttng_channel_destroy, diff --git a/liblttng-ust/ust-events-internal.h b/liblttng-ust/ust-events-internal.h index f116c2e1..d0facc1e 100644 --- a/liblttng-ust/ust-events-internal.h +++ b/liblttng-ust/ust-events-internal.h @@ -251,7 +251,7 @@ struct lttng_event_notifier_group { struct lttng_transport { char *name; struct cds_list_head node; - struct lttng_ust_channel_ops ops; + struct lttng_ust_channel_buffer_ops ops; const struct lttng_ust_lib_ring_buffer_config *client_config; }; @@ -347,8 +347,8 @@ struct lttng_enum { struct lttng_ust_shm_handle; -struct lttng_ust_channel_ops_private { - struct lttng_ust_channel_ops *pub; /* Public channels ops interface */ +struct lttng_ust_channel_buffer_ops_private { + struct lttng_ust_channel_buffer_ops *pub; /* Public channel buffer ops interface */ struct lttng_ust_channel_buffer *(*channel_create)(const char *name, void *buf_addr,