X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-vsgid.c;h=d2ac2a709c98db889ac7be85a376a72c4c4ceb23;hb=c53279a3e7796da67c5ad8d5e5657bf03def2dcb;hp=f49d7f79e2ab792aea90fab7dc804b8bdab0014f;hpb=0466ac28c41336fd6d373cc8b0b26ef132225b9f;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-vsgid.c b/liblttng-ust/lttng-context-vsgid.c index f49d7f79..d2ac2a70 100644 --- a/liblttng-ust/lttng-context-vsgid.c +++ b/liblttng-ust/lttng-context-vsgid.c @@ -8,6 +8,7 @@ */ #define _LGPL_SOURCE +#include #include #include #include @@ -69,7 +70,7 @@ size_t vsgid_get_size(struct lttng_ust_ctx_field *field, size_t offset) { size_t size = 0; - size += lib_ring_buffer_align(offset, lttng_alignof(gid_t)); + size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(gid_t)); size += sizeof(gid_t); return size; } @@ -77,13 +78,12 @@ size_t vsgid_get_size(struct lttng_ust_ctx_field *field, size_t offset) static void vsgid_record(struct lttng_ust_ctx_field *field, struct lttng_ust_lib_ring_buffer_ctx *ctx, - struct lttng_channel *chan) + struct lttng_ust_channel_buffer *chan) { gid_t vsgid; vsgid = get_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_ust_rb_alignof(vsgid)); } static @@ -100,8 +100,8 @@ int lttng_add_vsgid_to_ctx(struct lttng_ust_ctx **ctx) int ret; type = lttng_ust_create_type_integer(sizeof(gid_t) * CHAR_BIT, - lttng_alignof(gid_t) * CHAR_BIT, - lttng_is_signed_type(gid_t), + lttng_ust_rb_alignof(gid_t) * CHAR_BIT, + lttng_ust_is_signed_type(gid_t), BYTE_ORDER, 10); if (!type) return -ENOMEM;