Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-vsgid.c
index eb051f27a2763baa684a44112219370230fe4ddd..08ee829bc1b5e16e60f41fd75420c79eca18cdff 100644 (file)
@@ -31,13 +31,12 @@ 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 lttng_kernel_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                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
This page took 0.02345 seconds and 4 git commands to generate.