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