Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-vsgid.c
index 09c5c139af1756c569148ca16ea12d29b2aac20c..08ee829bc1b5e16e60f41fd75420c79eca18cdff 100644 (file)
@@ -36,8 +36,7 @@ void vsgid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        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.022783 seconds and 4 git commands to generate.