Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-sgid.c
index 23c594f0b73e7bad803aea1101f13c24cbab8d42..dde6f71326fb88d18d07c77487000fa11e665365 100644 (file)
@@ -31,13 +31,12 @@ size_t sgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_
 static
 void sgid_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 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.022906 seconds and 4 git commands to generate.