Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-vegid.c
index 9abd29b8e85ecf4c70d48c7b139ad028cace7d75..6aee7cbcd00f048b3939111b6453dbd0d7e46024 100644 (file)
@@ -36,8 +36,7 @@ void vegid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        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
This page took 0.022893 seconds and 4 git commands to generate.