cleanup: function attribute 'destructor'
[lttng-ust.git] / liblttng-ust / lttng-context-veuid.c
index 5099d202eb1752db158cc7edc44813cfc6bb950e..d5ef5199498ba28c6914d606d18fb816cd50b445 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <limits.h>
 #include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -65,7 +66,7 @@ size_t veuid_get_size(struct lttng_ust_ctx_field *field, size_t offset)
 {
        size_t size = 0;
 
-       size += lib_ring_buffer_align(offset, lttng_alignof(uid_t));
+       size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(uid_t));
        size += sizeof(uid_t);
        return size;
 }
@@ -78,8 +79,7 @@ void veuid_record(struct lttng_ust_ctx_field *field,
        uid_t veuid;
 
        veuid = get_veuid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(veuid));
-       chan->ops->event_write(ctx, &veuid, sizeof(veuid));
+       chan->ops->event_write(ctx, &veuid, sizeof(veuid), lttng_ust_rb_alignof(veuid));
 }
 
 static
@@ -96,7 +96,7 @@ int lttng_add_veuid_to_ctx(struct lttng_ust_ctx **ctx)
        int ret;
 
        type = lttng_ust_create_type_integer(sizeof(uid_t) * CHAR_BIT,
-                       lttng_alignof(uid_t) * CHAR_BIT,
+                       lttng_ust_rb_alignof(uid_t) * CHAR_BIT,
                        lttng_ust_is_signed_type(uid_t),
                        BYTE_ORDER, 10);
        if (!type)
This page took 0.023969 seconds and 4 git commands to generate.