X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ring-buffer-client.h;h=cac61343acc8723f714d0e794bbe6439bcf5716c;hb=fd17d7cecd427479c035cd99cb2b2fb622bb3a38;hp=80e0b95a36b5ad08616d01e1a2a0fa63f206ba04;hpb=cbbc1cdaf2ac58b06b951129548d5d01c4c1f014;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index 80e0b95a..cac61343 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -172,7 +172,7 @@ size_t record_header_size(const struct lttng_ust_lib_ring_buffer_config *config, struct lttng_client_ctx *client_ctx) { struct lttng_channel *lttng_chan = channel_get_private(chan); - struct lttng_event *event = ctx->priv; + struct lttng_ust_event_recorder *event_recorder = ctx->priv; struct lttng_stack_ctx *lttng_ctx = ctx->priv2; size_t orig_offset = offset; size_t padding; @@ -222,7 +222,7 @@ size_t record_header_size(const struct lttng_ust_lib_ring_buffer_config *config, /* Pre 2.8 probe ABI. */ offset += ctx_get_aligned_size(offset, lttng_chan->ctx, client_ctx->packet_context_len); - offset += ctx_get_aligned_size(offset, event->ctx, + offset += ctx_get_aligned_size(offset, event_recorder->ctx, client_ctx->event_context_len); } *pre_header_padding = padding; @@ -252,7 +252,7 @@ void lttng_write_event_header(const struct lttng_ust_lib_ring_buffer_config *con uint32_t event_id) { struct lttng_channel *lttng_chan = channel_get_private(ctx->chan); - struct lttng_event *event = ctx->priv; + struct lttng_ust_event_recorder *event_recorder = ctx->priv; struct lttng_stack_ctx *lttng_ctx = ctx->priv2; if (caa_unlikely(ctx->rflags)) @@ -295,7 +295,7 @@ void lttng_write_event_header(const struct lttng_ust_lib_ring_buffer_config *con } else { /* Pre 2.8 probe ABI. */ ctx_record(ctx, lttng_chan, lttng_chan->ctx, APP_CTX_DISABLED); - ctx_record(ctx, lttng_chan, event->ctx, APP_CTX_DISABLED); + ctx_record(ctx, lttng_chan, event_recorder->ctx, APP_CTX_DISABLED); } lib_ring_buffer_align_ctx(ctx, ctx->largest_align); @@ -311,7 +311,7 @@ void lttng_write_event_header_slow(const struct lttng_ust_lib_ring_buffer_config uint32_t event_id) { struct lttng_channel *lttng_chan = channel_get_private(ctx->chan); - struct lttng_event *event = ctx->priv; + struct lttng_ust_event_recorder *event_recorder = ctx->priv; struct lttng_stack_ctx *lttng_ctx = ctx->priv2; switch (lttng_chan->header_type) { @@ -376,7 +376,7 @@ void lttng_write_event_header_slow(const struct lttng_ust_lib_ring_buffer_config } else { /* Pre 2.8 probe ABI. */ ctx_record(ctx, lttng_chan, lttng_chan->ctx, APP_CTX_DISABLED); - ctx_record(ctx, lttng_chan, event->ctx, APP_CTX_DISABLED); + ctx_record(ctx, lttng_chan, event_recorder->ctx, APP_CTX_DISABLED); } lib_ring_buffer_align_ctx(ctx, ctx->largest_align); } @@ -706,7 +706,7 @@ int lttng_event_reserve(struct lttng_ust_lib_ring_buffer_ctx *ctx, uint32_t event_id) { struct lttng_channel *lttng_chan = channel_get_private(ctx->chan); - struct lttng_event *event = ctx->priv; + struct lttng_ust_event_recorder *event_recorder = ctx->priv; struct lttng_stack_ctx *lttng_ctx = ctx->priv2; struct lttng_client_ctx client_ctx; int ret, cpu; @@ -723,7 +723,7 @@ int lttng_event_reserve(struct lttng_ust_lib_ring_buffer_ctx *ctx, /* Pre 2.8 probe ABI. */ ctx_get_struct_size(lttng_chan->ctx, &client_ctx.packet_context_len, APP_CTX_DISABLED); - ctx_get_struct_size(event->ctx, &client_ctx.event_context_len, + ctx_get_struct_size(event_recorder->ctx, &client_ctx.event_context_len, APP_CTX_DISABLED); }