unsigned long *o_begin, unsigned long *o_end,
unsigned long *o_old, size_t *before_hdr_pad)
{
- struct channel *chan = ctx->chan;
+ struct lttng_ust_lib_ring_buffer_channel *chan = ctx->chan;
struct lttng_ust_lib_ring_buffer *buf = ctx->buf;
*o_begin = v_read(config, &buf->offset);
*o_old = *o_begin;
struct lttng_ust_lib_ring_buffer_ctx *ctx,
void *client_ctx)
{
- struct channel *chan = ctx->chan;
+ struct lttng_ust_lib_ring_buffer_channel *chan = ctx->chan;
struct lttng_ust_shm_handle *handle = ctx->handle;
struct lttng_ust_lib_ring_buffer *buf;
unsigned long o_begin, o_end, o_old;
void lib_ring_buffer_commit(const struct lttng_ust_lib_ring_buffer_config *config,
const struct lttng_ust_lib_ring_buffer_ctx *ctx)
{
- struct channel *chan = ctx->chan;
+ struct lttng_ust_lib_ring_buffer_channel *chan = ctx->chan;
struct lttng_ust_shm_handle *handle = ctx->handle;
struct lttng_ust_lib_ring_buffer *buf = ctx->buf;
unsigned long offset_end = ctx->buf_offset;
static inline
void channel_record_disable(const struct lttng_ust_lib_ring_buffer_config *config,
- struct channel *chan)
+ struct lttng_ust_lib_ring_buffer_channel *chan)
{
uatomic_inc(&chan->record_disabled);
}
static inline
void channel_record_enable(const struct lttng_ust_lib_ring_buffer_config *config,
- struct channel *chan)
+ struct lttng_ust_lib_ring_buffer_channel *chan)
{
uatomic_dec(&chan->record_disabled);
}