*/
#define _LGPL_SOURCE
+#include <limits.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-config.h>
+#include <lttng/ringbuffer-context.h>
#include "context-internal.h"
#include "creds.h"
{
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;
}
static
void vegid_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 vegid;
vegid = get_vegid();
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(vegid));
+ lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_ust_rb_alignof(vegid));
chan->ops->event_write(ctx, &vegid, sizeof(vegid));
}
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;