Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-preemptible.c
index 548e79f43cf7a9a36d6cb25de6eb154c5c5acba3..11c15792933d612ed40e1bbf6dd68d9ae6469ac9 100644 (file)
@@ -46,8 +46,7 @@ void preemptible_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        WARN_ON_ONCE(pc < LTTNG_PREEMPT_DISABLE_NESTING);
        if (pc == LTTNG_PREEMPT_DISABLE_NESTING)
                preemptible = 1;
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(preemptible));
-       chan->ops->event_write(ctx, &preemptible, sizeof(preemptible));
+       chan->ops->event_write(ctx, &preemptible, sizeof(preemptible), lttng_alignof(preemptible));
 }
 
 static
This page took 0.023132 seconds and 4 git commands to generate.