X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-ring-buffer-event-notifier-client.h;h=a1c8cb323187b75ba2c3c8def9457786630d9f6e;hb=0fe45627bdbdb4e81c042bc9b784e4b47abfa4b6;hp=b5e91c550c812d538528c9fe17e428dc02836bfd;hpb=236233f79b01cd3d9f7717650a46bda8c0d7ab85;p=lttng-modules.git diff --git a/src/lttng-ring-buffer-event-notifier-client.h b/src/lttng-ring-buffer-event-notifier-client.h index b5e91c55..a1c8cb32 100644 --- a/src/lttng-ring-buffer-event-notifier-client.h +++ b/src/lttng-ring-buffer-event-notifier-client.h @@ -301,15 +301,19 @@ void lttng_write_event_notifier_header(const struct lib_ring_buffer_config *conf } static -int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx, uint32_t event_id) +int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx) { + struct channel *chan = ctx->client_priv; int ret; + memset(&ctx->priv, 0, sizeof(ctx->priv)); + ctx->priv.chan = chan; + ret = lib_ring_buffer_reserve(&client_config, ctx, NULL); if (ret) return ret; lib_ring_buffer_backend_get_pages(&client_config, ctx, - &ctx->backend_pages); + &ctx->priv.backend_pages); lttng_write_event_notifier_header(&client_config, ctx); return 0;