X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-vtid.c;h=9f1a399a43504d602fd935e40e39a6abf70e5f28;hb=f5ffbd770ec2b9d1ac9b7059eb33a01432043bce;hp=4e22757725fb139181cdd78d97419f5db8a49e80;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-vtid.c b/src/lttng-context-vtid.c index 4e227577..9f1a399a 100644 --- a/src/lttng-context-vtid.c +++ b/src/lttng-context-vtid.c @@ -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