static
void ppid_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)
{
pid_t ppid;
rcu_read_lock();
ppid = task_tgid_nr(current->real_parent);
rcu_read_unlock();
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(ppid));
- chan->ops->event_write(ctx, &ppid, sizeof(ppid));
+ chan->ops->event_write(ctx, &ppid, sizeof(ppid), lttng_alignof(ppid));
}
static