static LIST_HEAD(lazy_probe_init);
/*
- * lazy_nesting counter ensures we don't trigger lazy probe registration
+ * lazy_nesting counter ensures we don't event_notifier lazy probe registration
* fixup while we are performing the fixup. It is protected by the
* sessions lock.
*/
}
ret = lttng_fix_pending_events();
WARN_ON_ONCE(ret);
+ ret = lttng_fix_pending_event_notifiers();
+ WARN_ON_ONCE(ret);
lazy_nesting--;
}
* the probe immediately, since we cannot delay event
* registration because they are needed ASAP.
*/
- if (lttng_session_active())
+ if (lttng_session_active() || lttng_event_notifier_active())
fixup_lazy_probes();
end:
lttng_unlock_sessions();