X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-vsgid.c;h=08ee829bc1b5e16e60f41fd75420c79eca18cdff;hb=6a338ba4d659df6744bf8489f2248fc2021fbc43;hp=f47f0d142216c59c77cd824f0d6c03d2b34b26d6;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-vsgid.c b/src/lttng-context-vsgid.c index f47f0d14..08ee829b 100644 --- a/src/lttng-context-vsgid.c +++ b/src/lttng-context-vsgid.c @@ -30,14 +30,13 @@ size_t vsgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size static void vsgid_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 vsgid; vsgid = lttng_current_vsgid(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(vsgid)); - chan->ops->event_write(ctx, &vsgid, sizeof(vsgid)); + chan->ops->event_write(ctx, &vsgid, sizeof(vsgid), lttng_alignof(vsgid)); } static