Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-veuid.c
index 965c3eecb3a4438f19e8a8d2b73a37b1b2f5446b..30ace857ca4424a0e207ead541250a23e5bd230b 100644 (file)
@@ -30,14 +30,13 @@ 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 lib_ring_buffer_ctx *ctx,
-                struct lttng_channel *chan)
+                struct lttng_kernel_ring_buffer_ctx *ctx,
+                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.023516 seconds and 4 git commands to generate.