Move alignment into event write callback
[lttng-modules.git] / src / lttng-context-vtid.c
index 4e22757725fb139181cdd78d97419f5db8a49e80..9f1a399a43504d602fd935e40e39a6abf70e5f28 100644 (file)
@@ -28,8 +28,8 @@ size_t vtid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_
 
 static
 void vtid_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 vtid;
 
@@ -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.023 seconds and 4 git commands to generate.