X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-vtid.c;h=9f1a399a43504d602fd935e40e39a6abf70e5f28;hb=77fcffefa34f8de5c4988eea035883a65c6befbc;hp=4e22757725fb139181cdd78d97419f5db8a49e80;hpb=346cb5ee265fe5f92d4d67a078eab74aa19e7bbd;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