};
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
* 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);
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 */
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,
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,
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;
};
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,