X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=src%2Fprobes%2Flttng-uprobes.c;h=0240aaca5d34762630a22fd64d705ed0855928e8;hp=2507f43418c1cae6fcd1f75a10b7eb9c0ca84ae5;hb=8a57ec025ffbe56153748fd69b60118862707182;hpb=e2d5dbc7d09c7aa4f7c391fcdd4dfc95ba1ed326 diff --git a/src/probes/lttng-uprobes.c b/src/probes/lttng-uprobes.c index 2507f434..0240aaca 100644 --- a/src/probes/lttng-uprobes.c +++ b/src/probes/lttng-uprobes.c @@ -29,7 +29,7 @@ int lttng_uprobes_event_handler_pre(struct uprobe_consumer *uc, struct pt_regs * struct lttng_uprobe_handler *uprobe_handler = container_of(uc, struct lttng_uprobe_handler, up_consumer); struct lttng_kernel_event_common *event = uprobe_handler->event; - struct lttng_probe_ctx lttng_probe_ctx = { + struct lttng_kernel_probe_ctx lttng_probe_ctx = { .event = event, .interruptible = !lttng_regs_irqs_disabled(regs), }; @@ -65,13 +65,13 @@ int lttng_uprobes_event_handler_pre(struct uprobe_consumer *uc, struct pt_regs * struct lttng_kernel_event_recorder *event_recorder = container_of(event, struct lttng_kernel_event_recorder, parent); struct lttng_channel *chan = event_recorder->chan; - struct lib_ring_buffer_ctx ctx; + struct lttng_kernel_ring_buffer_ctx ctx; int ret; - lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx, - sizeof(payload), lttng_alignof(payload), -1); + lib_ring_buffer_ctx_init(&ctx, event_recorder, + sizeof(payload), lttng_alignof(payload), <tng_probe_ctx); - ret = chan->ops->event_reserve(&ctx, event_recorder->priv->id); + ret = chan->ops->event_reserve(&ctx); if (ret < 0) return 0;