-static
-int lttng_uprobes_event_notifier_handler_pre(struct uprobe_consumer *uc, struct pt_regs *regs)
-{
- struct lttng_uprobe_handler *uprobe_handler =
- container_of(uc, struct lttng_uprobe_handler, up_consumer);
- struct lttng_kernel_event_notifier *event_notifier = uprobe_handler->u.event_notifier;
- struct lttng_kernel_notification_ctx notif_ctx;
-
- if (unlikely(!READ_ONCE(event_notifier->parent.enabled)))
- return 0;
-
- notif_ctx.eval_capture = LTTNG_READ_ONCE(event_notifier->eval_capture);
- event_notifier->notification_send(event_notifier, NULL, NULL, ¬if_ctx);
- return 0;
-}