X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fprobes%2Flttng-kprobes.c;h=c4b089c64f7ce20176f4e6a05aae6e7e2f31263d;hb=12bb2edb6ed3e96d3299a979e49b828f2b17dcb2;hp=4e80f1ef62e3acf5ae61c949c8a5af3be7eb4a25;hpb=2b16f0c9dfdc1b1a593c5ed58fd08a89e18eccae;p=lttng-modules.git diff --git a/src/probes/lttng-kprobes.c b/src/probes/lttng-kprobes.c index 4e80f1ef..c4b089c6 100644 --- a/src/probes/lttng-kprobes.c +++ b/src/probes/lttng-kprobes.c @@ -54,11 +54,13 @@ int lttng_kprobes_event_notifier_handler_pre(struct kprobe *p, struct pt_regs *r { struct lttng_event_notifier *event_notifier = container_of(p, struct lttng_event_notifier, u.kprobe.kp); + struct lttng_kernel_notifier_ctx notif_ctx; if (unlikely(!READ_ONCE(event_notifier->enabled))) return 0; - event_notifier->send_notification(event_notifier); + notif_ctx.eval_capture = LTTNG_READ_ONCE(event_notifier->eval_capture); + event_notifier->send_notification(event_notifier, NULL, NULL, ¬if_ctx); return 0; } @@ -89,7 +91,7 @@ int lttng_create_kprobe_event(const char *name, struct lttng_event *event) goto error_field; } field->name = "ip"; - field->type.atype = atype_integer; + field->type.type = lttng_kernel_type_integer; field->type.u.integer.size = sizeof(unsigned long) * CHAR_BIT; field->type.u.integer.alignment = lttng_alignof(unsigned long) * CHAR_BIT; field->type.u.integer.signedness = lttng_is_signed_type(unsigned long); @@ -170,7 +172,7 @@ int _lttng_kprobes_register(const char *symbol_name, lttng_kp->kp.addr = (void *) (unsigned long) addr; /* - * Ensure the memory we just allocated don't event_notifier page faults. + * Ensure the memory we just allocated don't notify page faults. * Well.. kprobes itself puts the page fault handler on the blacklist, * but we can never be too careful. */