struct lttng_kernel_event_common_private *event_priv =
container_of(p, struct lttng_kernel_event_common_private, u.kprobe.kp);
struct lttng_kernel_event_common *event = event_priv->pub;
- struct lttng_probe_ctx lttng_probe_ctx = {
+ struct lttng_kernel_probe_ctx lttng_probe_ctx = {
.event = event,
.interruptible = !lttng_regs_irqs_disabled(regs),
};
struct lib_ring_buffer_ctx ctx;
int ret;
- lib_ring_buffer_ctx_init(&ctx, chan->chan, sizeof(data),
- lttng_alignof(data), -1, <tng_probe_ctx);
- ret = chan->ops->event_reserve(&ctx, event_recorder->priv->id);
+ lib_ring_buffer_ctx_init(&ctx, event_recorder, sizeof(data),
+ lttng_alignof(data), <tng_probe_ctx);
+ ret = chan->ops->event_reserve(&ctx);
if (ret < 0)
return 0;
lib_ring_buffer_align_ctx(&ctx, lttng_alignof(data));