Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-pid.c
index 5bf9dfd147f4f643cf429bb37bc64560747971d4..5bcbe00c57e6dbc4ae15cb3681070955823551af 100644 (file)
@@ -34,8 +34,7 @@ void pid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        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.023609 seconds and 4 git commands to generate.