Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-vtid.c
index f42734630ac9182b173740f71b7a6ccfb96c230d..9f1a399a43504d602fd935e40e39a6abf70e5f28 100644 (file)
@@ -40,8 +40,7 @@ void vtid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
                vtid = 0;
        else
                vtid = task_pid_vnr(current);
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(vtid));
-       chan->ops->event_write(ctx, &vtid, sizeof(vtid));
+       chan->ops->event_write(ctx, &vtid, sizeof(vtid), lttng_alignof(vtid));
 }
 
 static
This page took 0.024006 seconds and 4 git commands to generate.