X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-vppid.c;h=55a84c2e7f3bdf6423df1cf696f09b571f59822c;hb=f5ffbd770ec2b9d1ac9b7059eb33a01432043bce;hp=5b438840d496e910c3df5abc6a1febe9ac49e857;hpb=a92e844e9e4cc9d5c4a7ec3d1c0738d375430446;p=lttng-modules.git diff --git a/src/lttng-context-vppid.c b/src/lttng-context-vppid.c index 5b438840..55a84c2e 100644 --- a/src/lttng-context-vppid.c +++ b/src/lttng-context-vppid.c @@ -29,8 +29,8 @@ size_t vppid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size static void vppid_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) { struct task_struct *parent; pid_t vppid; @@ -55,8 +55,7 @@ void vppid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, else vppid = task_tgid_vnr(parent); rcu_read_unlock(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(vppid)); - chan->ops->event_write(ctx, &vppid, sizeof(vppid)); + chan->ops->event_write(ctx, &vppid, sizeof(vppid), lttng_alignof(vppid)); } static