Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-interruptible.c
index 971b8b0347b7c28b5c85123b2f6f0a2fa3deb31f..48ff7efe2cde3b3c400e529e105ddfafdd3d58df 100644 (file)
@@ -33,14 +33,13 @@ size_t interruptible_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_c
 
 static
 void interruptible_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)
 {
        struct lttng_kernel_probe_ctx *lttng_probe_ctx = ctx->probe_ctx;
        int8_t interruptible = lttng_probe_ctx->interruptible;
 
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(interruptible));
-       chan->ops->event_write(ctx, &interruptible, sizeof(interruptible));
+       chan->ops->event_write(ctx, &interruptible, sizeof(interruptible), lttng_alignof(interruptible));
 }
 
 static
This page took 0.024407 seconds and 4 git commands to generate.