X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-vegid.c;h=a6306f3c6e1865064d8984add57eda810b2fb2ba;hb=f27f1026353ae61083b7a2221f912b0299095a04;hp=ca0555e3d099ab879cd298e037a56c1796b14a77;hpb=e7bc0ef6c86ae97886cf5f8b28854cf281d4962b;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-vegid.c b/liblttng-ust/lttng-context-vegid.c index ca0555e3..a6306f3c 100644 --- a/liblttng-ust/lttng-context-vegid.c +++ b/liblttng-ust/lttng-context-vegid.c @@ -8,6 +8,7 @@ */ #define _LGPL_SOURCE +#include #include #include #include @@ -65,7 +66,7 @@ size_t vegid_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; } @@ -78,8 +79,7 @@ void vegid_record(struct lttng_ust_ctx_field *field, gid_t vegid; vegid = get_vegid(); - lib_ring_buffer_align_ctx(ctx, lttng_alignof(vegid)); - chan->ops->event_write(ctx, &vegid, sizeof(vegid)); + chan->ops->event_write(ctx, &vegid, sizeof(vegid), lttng_ust_rb_alignof(vegid)); } static @@ -96,8 +96,8 @@ int lttng_add_vegid_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;