Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-time-ns.c
index 72f0f1c46b182b3e2fc2d1f2c15762dbdd7a869c..fe29e20645a59f093a678da17797e9224ab836e9 100644 (file)
@@ -50,8 +50,7 @@ void time_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        if (current->nsproxy)
                time_ns_inum = current->nsproxy->time_ns->lttng_ns_inum;
 
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(time_ns_inum));
-       chan->ops->event_write(ctx, &time_ns_inum, sizeof(time_ns_inum));
+       chan->ops->event_write(ctx, &time_ns_inum, sizeof(time_ns_inum), lttng_alignof(time_ns_inum));
 }
 
 static
This page took 0.023023 seconds and 4 git commands to generate.