#include <stddef.h>
#include <sys/types.h>
#include <unistd.h>
+#include <limits.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-config.h>
#include "../libringbuffer/getcpu.h"
+#include <lttng/ringbuffer-context.h>
#include "context-internal.h"
{
size_t size = 0;
- size += lib_ring_buffer_align(offset, lttng_alignof(int));
+ size += lttng_ust_lib_ring_buffer_align(offset, lttng_alignof(int));
size += sizeof(int);
return size;
}
static
void cpu_id_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)
{
int cpu;
cpu = lttng_ust_get_cpu();
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(cpu));
+ lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_alignof(cpu));
chan->ops->event_write(ctx, &cpu, sizeof(cpu));
}
type = lttng_ust_create_type_integer(sizeof(int) * CHAR_BIT,
lttng_alignof(int) * CHAR_BIT,
- lttng_is_signed_type(int),
+ lttng_ust_is_signed_type(int),
BYTE_ORDER, 10);
if (!type)
return -ENOMEM;