X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-context-vsgid.c;h=e9b18b670319b618ec8d9da8de557325aa7f099d;hb=928a843e1f731fd83e17ff90af697eb39387d7f7;hp=f47f0d142216c59c77cd824f0d6c03d2b34b26d6;hpb=346cb5ee265fe5f92d4d67a078eab74aa19e7bbd;p=lttng-modules.git diff --git a/src/lttng-context-vsgid.c b/src/lttng-context-vsgid.c index f47f0d14..e9b18b67 100644 --- a/src/lttng-context-vsgid.c +++ b/src/lttng-context-vsgid.c @@ -30,14 +30,13 @@ size_t vsgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size static void vsgid_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) { gid_t vsgid; vsgid = lttng_current_vsgid(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(vsgid)); - chan->ops->event_write(ctx, &vsgid, sizeof(vsgid)); + chan->ops->event_write(ctx, &vsgid, sizeof(vsgid), lttng_alignof(vsgid)); } static @@ -51,7 +50,7 @@ void vsgid_get_value(void *priv, static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field( lttng_kernel_static_event_field("vsgid", lttng_kernel_static_type_integer_from_type(gid_t, __BYTE_ORDER, 10), - false, false, false), + false, false), vsgid_get_size, vsgid_record, vsgid_get_value,