X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-vegid.c;h=6aee7cbcd00f048b3939111b6453dbd0d7e46024;hb=f5ffbd770ec2b9d1ac9b7059eb33a01432043bce;hp=3e43f6b0488eb4a8b70f9a89f1bc91a381fc0396;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-vegid.c b/src/lttng-context-vegid.c index 3e43f6b0..6aee7cbc 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