Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-euid.c
index 855e2552ddca3a60126e30df42ce4c7ef1ab2c42..7d344b1fea69799aa03fc6e23e92f24560203548 100644 (file)
@@ -30,14 +30,13 @@ size_t euid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_
 
 static
 void euid_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 euid;
 
        euid = lttng_current_euid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(euid));
-       chan->ops->event_write(ctx, &euid, sizeof(euid));
+       chan->ops->event_write(ctx, &euid, sizeof(euid), lttng_alignof(euid));
 }
 
 static
This page took 0.023775 seconds and 4 git commands to generate.