*/
#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(pid_t));
+ size += lttng_ust_lib_ring_buffer_align(offset, lttng_alignof(pid_t));
size += sizeof(pid_t);
return size;
}
static
void vpid_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)
{
pid_t vpid = wrapper_getvpid();
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(vpid));
+ lttng_ust_lib_ring_buffer_align_ctx(ctx, lttng_alignof(vpid));
chan->ops->event_write(ctx, &vpid, sizeof(vpid));
}
type = lttng_ust_create_type_integer(sizeof(pid_t) * CHAR_BIT,
lttng_alignof(pid_t) * CHAR_BIT,
- lttng_is_signed_type(pid_t),
+ lttng_ust_is_signed_type(pid_t),
BYTE_ORDER, 10);
if (!type)
return -ENOMEM;