static
void cgroup_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
- struct lib_ring_buffer_ctx *ctx,
- struct lttng_channel *chan)
+ struct lttng_kernel_ring_buffer_ctx *ctx,
+ struct lttng_kernel_channel_buffer *chan)
{
unsigned int cgroup_ns_inum = 0;
if (current->nsproxy)
cgroup_ns_inum = current->nsproxy->cgroup_ns->lttng_ns_inum;
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(cgroup_ns_inum));
- chan->ops->event_write(ctx, &cgroup_ns_inum, sizeof(cgroup_ns_inum));
+ chan->ops->event_write(ctx, &cgroup_ns_inum, sizeof(cgroup_ns_inum), lttng_alignof(cgroup_ns_inum));
}
static