Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-veuid.c
index 775c078b429ac7d50881772bd4b4ea76a2ff227f..30ace857ca4424a0e207ead541250a23e5bd230b 100644 (file)
@@ -31,13 +31,12 @@ size_t veuid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size
 static
 void veuid_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)
 {
        uid_t veuid;
 
        veuid = lttng_current_veuid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(veuid));
-       chan->ops->event_write(ctx, &veuid, sizeof(veuid));
+       chan->ops->event_write(ctx, &veuid, sizeof(veuid), lttng_alignof(veuid));
 }
 
 static
This page took 0.02311 seconds and 4 git commands to generate.