X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-context-vegid.c;h=aa40c40fd1f929443fc614c5dfb46d54e4d6fbb8;hb=928a843e1f731fd83e17ff90af697eb39387d7f7;hp=3e43f6b0488eb4a8b70f9a89f1bc91a381fc0396;hpb=346cb5ee265fe5f92d4d67a078eab74aa19e7bbd;p=lttng-modules.git diff --git a/src/lttng-context-vegid.c b/src/lttng-context-vegid.c index 3e43f6b0..aa40c40f 100644 --- a/src/lttng-context-vegid.c +++ b/src/lttng-context-vegid.c @@ -30,14 +30,13 @@ size_t vegid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size static void vegid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, - struct lib_ring_buffer_ctx *ctx, - struct lttng_channel *chan) + struct lttng_kernel_ring_buffer_ctx *ctx, + struct lttng_kernel_channel_buffer *chan) { gid_t vegid; vegid = lttng_current_vegid(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(vegid)); - chan->ops->event_write(ctx, &vegid, sizeof(vegid)); + chan->ops->event_write(ctx, &vegid, sizeof(vegid), lttng_alignof(vegid)); } static @@ -51,7 +50,7 @@ void vegid_get_value(void *priv, static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( lttng_kernel_static_event_field("vegid", lttng_kernel_static_type_integer_from_type(gid_t, __BYTE_ORDER, 10), - false, false, false), + false, false), vegid_get_size, vegid_record, vegid_get_value,