X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-ring-buffer-client.h;h=9ac2cfe9d348d057e7b30199cb1072766c69bd8d;hb=cefd899fc3de0c29491332929cec445e0d459760;hp=ff404368edc6fac5ae6b48fddf0658f53a9bd842;hpb=c7d9db61d9c4861b6f344af8f1471a42e00739a8;p=lttng-modules.git diff --git a/src/lttng-ring-buffer-client.h b/src/lttng-ring-buffer-client.h index ff404368..9ac2cfe9 100644 --- a/src/lttng-ring-buffer-client.h +++ b/src/lttng-ring-buffer-client.h @@ -13,6 +13,7 @@ #include /* for wrapper_vmalloc_sync_mappings() */ #include #include +#include #include #include @@ -604,17 +605,18 @@ void lttng_buffer_read_close(struct lib_ring_buffer *buf) } 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 lttng_kernel_event_recorder *event_recorder = ctx->client_priv; struct lttng_channel *lttng_chan = event_recorder->chan; struct lttng_client_ctx client_ctx; int ret, cpu; + uint32_t event_id; cpu = lib_ring_buffer_get_cpu(&client_config); if (unlikely(cpu < 0)) return -EPERM; + event_id = event_recorder->priv->id; memset(&ctx->priv, 0, sizeof(ctx->priv)); ctx->priv.chan = lttng_chan->chan; ctx->priv.reserve_cpu = cpu;