*/
#define _LGPL_SOURCE
+#include <limits.h>
#include <stddef.h>
#include <sys/types.h>
#include <unistd.h>
{
size_t size = 0;
- size += lib_ring_buffer_align(offset, lttng_alignof(void *));
+ size += lttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb_alignof(void *));
size += sizeof(void *);
return size;
}
void *ip;
ip = ctx->ip;
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(ip));
- chan->ops->event_write(ctx, &ip, sizeof(ip));
+ chan->ops->event_write(ctx, &ip, sizeof(ip), lttng_ust_rb_alignof(ip));
}
int lttng_add_ip_to_ctx(struct lttng_ust_ctx **ctx)
int ret;
type = lttng_ust_create_type_integer(sizeof(void *) * CHAR_BIT,
- lttng_alignof(void *) * CHAR_BIT,
+ lttng_ust_rb_alignof(void *) * CHAR_BIT,
lttng_ust_is_signed_type(void *),
BYTE_ORDER, 16);
if (!type)