Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-pid.c
index b43503e682d2f29760a86d94425bf862621dafb9..5bcbe00c57e6dbc4ae15cb3681070955823551af 100644 (file)
@@ -28,14 +28,13 @@ size_t pid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t
 
 static
 void pid_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)
 {
        pid_t pid;
 
        pid = task_tgid_nr(current);
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(pid));
-       chan->ops->event_write(ctx, &pid, sizeof(pid));
+       chan->ops->event_write(ctx, &pid, sizeof(pid), lttng_alignof(pid));
 }
 
 static
This page took 0.024594 seconds and 4 git commands to generate.