Implement event notifier send notification
[lttng-modules.git] / src / lttng-events.c
index 092cbb887a97899e4a6fd4be4c50ede12c65d97d..df834298a0dc24a624208da9eed020d66c1fc472 100644 (file)
@@ -37,6 +37,7 @@
 #include <lttng/kernel-version.h>
 #include <lttng/events.h>
 #include <lttng/tracer.h>
+#include <lttng/event-notifier-notification.h>
 #include <lttng/abi-old.h>
 #include <lttng/endian.h>
 #include <lttng/string-utils.h>
@@ -333,6 +334,8 @@ void lttng_event_notifier_group_destroy(
                WARN_ON(ret);
        }
 
+       irq_work_sync(&event_notifier_group->wakeup_pending);
+
        list_for_each_entry_safe(event_notifier_enabler, tmp_event_notifier_enabler,
                        &event_notifier_group->enablers_head, node)
                lttng_event_notifier_enabler_destroy(event_notifier_enabler);
@@ -1020,11 +1023,13 @@ struct lttng_event_notifier *_lttng_event_notifier_create(
                ret = -ENOMEM;
                goto cache_error;
        }
+
        event_notifier->group = event_notifier_group;
        event_notifier->user_token = token;
        event_notifier->filter = filter;
        event_notifier->instrumentation = itype;
        event_notifier->evtype = LTTNG_TYPE_EVENT;
+       event_notifier->send_notification = lttng_event_notifier_notification_send;
        INIT_LIST_HEAD(&event_notifier->bytecode_runtime_head);
        INIT_LIST_HEAD(&event_notifier->enablers_ref_head);
 
This page took 0.028545 seconds and 4 git commands to generate.