Rename struct channel to struct lttng_kernel_ring_buffer_channel
[lttng-modules.git] / include / ringbuffer / frontend_api.h
index 1444e60adc1350234e405e164f8b8662654386c6..08e2f5737cda74f66b6f36f761f6566af1e97ab7 100644 (file)
@@ -70,12 +70,12 @@ void lib_ring_buffer_put_cpu(const struct lib_ring_buffer_config *config)
  */
 static inline
 int lib_ring_buffer_try_reserve(const struct lib_ring_buffer_config *config,
-                               struct lib_ring_buffer_ctx *ctx,
+                               struct lttng_kernel_ring_buffer_ctx *ctx,
                                void *client_ctx,
                                unsigned long *o_begin, unsigned long *o_end,
                                unsigned long *o_old, size_t *before_hdr_pad)
 {
-       struct channel *chan = ctx->priv.chan;
+       struct lttng_kernel_ring_buffer_channel *chan = ctx->priv.chan;
        struct lib_ring_buffer *buf = ctx->priv.buf;
        *o_begin = v_read(config, &buf->offset);
        *o_old = *o_begin;
@@ -140,10 +140,10 @@ int lib_ring_buffer_try_reserve(const struct lib_ring_buffer_config *config,
 
 static inline
 int lib_ring_buffer_reserve(const struct lib_ring_buffer_config *config,
-                           struct lib_ring_buffer_ctx *ctx,
+                           struct lttng_kernel_ring_buffer_ctx *ctx,
                            void *client_ctx)
 {
-       struct channel *chan = ctx->priv.chan;
+       struct lttng_kernel_ring_buffer_channel *chan = ctx->priv.chan;
        struct lib_ring_buffer *buf;
        unsigned long o_begin, o_end, o_old;
        size_t before_hdr_pad = 0;
@@ -229,9 +229,9 @@ void lib_ring_buffer_switch(const struct lib_ring_buffer_config *config,
  */
 static inline
 void lib_ring_buffer_commit(const struct lib_ring_buffer_config *config,
-                           const struct lib_ring_buffer_ctx *ctx)
+                           const struct lttng_kernel_ring_buffer_ctx *ctx)
 {
-       struct channel *chan = ctx->priv.chan;
+       struct lttng_kernel_ring_buffer_channel *chan = ctx->priv.chan;
        struct lib_ring_buffer *buf = ctx->priv.buf;
        unsigned long offset_end = ctx->priv.buf_offset;
        unsigned long endidx = subbuf_index(offset_end - 1, chan);
@@ -301,7 +301,7 @@ void lib_ring_buffer_commit(const struct lib_ring_buffer_config *config,
  */
 static inline
 int lib_ring_buffer_try_discard_reserve(const struct lib_ring_buffer_config *config,
-                                       const struct lib_ring_buffer_ctx *ctx)
+                                       const struct lttng_kernel_ring_buffer_ctx *ctx)
 {
        struct lib_ring_buffer *buf = ctx->priv.buf;
        unsigned long end_offset = ctx->priv.pre_offset + ctx->priv.slot_size;
@@ -329,14 +329,14 @@ int lib_ring_buffer_try_discard_reserve(const struct lib_ring_buffer_config *con
 
 static inline
 void channel_record_disable(const struct lib_ring_buffer_config *config,
-                           struct channel *chan)
+                           struct lttng_kernel_ring_buffer_channel *chan)
 {
        atomic_inc(&chan->record_disabled);
 }
 
 static inline
 void channel_record_enable(const struct lib_ring_buffer_config *config,
-                          struct channel *chan)
+                          struct lttng_kernel_ring_buffer_channel *chan)
 {
        atomic_dec(&chan->record_disabled);
 }
This page took 0.023924 seconds and 4 git commands to generate.