Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-egid.c
index e1674fb820e05651cb9dba39ecf22a58315fcb61..1473688b812adf0b0b7fe84a89d3487dc8ad729c 100644 (file)
@@ -30,14 +30,13 @@ size_t egid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_
 
 static
 void egid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
-                struct lib_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_kernel_ring_buffer_ctx *ctx,
+                struct lttng_kernel_channel_buffer *chan)
 {
        gid_t egid;
 
        egid = lttng_current_egid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(egid));
-       chan->ops->event_write(ctx, &egid, sizeof(egid));
+       chan->ops->event_write(ctx, &egid, sizeof(egid), lttng_alignof(egid));
 }
 
 static
This page took 0.023767 seconds and 4 git commands to generate.