Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-cpu-id.c
index 1fa32ac256f21dd55bcaf0caff3d2f2ea3100cd0..30247c31d198fa26baada26a492e2badfd82ca32 100644 (file)
@@ -28,14 +28,13 @@ size_t cpu_id_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, siz
 
 static
 void cpu_id_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)
 {
        int cpu;
 
        cpu = ctx->priv.reserve_cpu;
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(cpu));
-       chan->ops->event_write(ctx, &cpu, sizeof(cpu));
+       chan->ops->event_write(ctx, &cpu, sizeof(cpu), lttng_alignof(cpu));
 }
 
 static
This page took 0.024369 seconds and 4 git commands to generate.