Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-gid.c
index f00840794a6b590cd1c52ac4ace39c2b9c4ae65f..17f637d757d85d73c44078340c752b0d5c8a9160 100644 (file)
@@ -36,8 +36,7 @@ void gid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        gid_t gid;
 
        gid = lttng_current_gid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(gid));
-       chan->ops->event_write(ctx, &gid, sizeof(gid));
+       chan->ops->event_write(ctx, &gid, sizeof(gid), lttng_alignof(gid));
 }
 
 static
This page took 0.026516 seconds and 4 git commands to generate.