X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-context-vtid.c;h=9f1a399a43504d602fd935e40e39a6abf70e5f28;hb=533556cd250e8e2b9d8f513fd6af0d3b1917cd78;hp=ba597efc8834638304300adcd1984c66006435eb;hpb=ea2d95e474476e28aca898d29f7564db4e4eb283;p=lttng-modules.git diff --git a/src/lttng-context-vtid.c b/src/lttng-context-vtid.c index ba597efc..9f1a399a 100644 --- a/src/lttng-context-vtid.c +++ b/src/lttng-context-vtid.c @@ -17,7 +17,7 @@ #include static -size_t vtid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset) +size_t vtid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset) { size_t size = 0; @@ -27,9 +27,9 @@ size_t vtid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offse } static -void vtid_record(void *priv, struct lttng_probe_ctx *probe_ctx, - struct lib_ring_buffer_ctx *ctx, - struct lttng_channel *chan) +void vtid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, + struct lttng_kernel_ring_buffer_ctx *ctx, + struct lttng_kernel_channel_buffer *chan) { pid_t vtid; @@ -40,13 +40,12 @@ void vtid_record(void *priv, struct lttng_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 void vtid_get_value(void *priv, - struct lttng_probe_ctx *lttng_probe_ctx, + struct lttng_kernel_probe_ctx *lttng_probe_ctx, struct lttng_ctx_value *value) { pid_t vtid;