__attribute__((visibility("hidden")));
/*
- * Attach exclusion list to `struct lttng_event_enabler` and all
+ * Attach exclusion list to `struct lttng_event_enabler_common` and all
* events related to this enabler.
*/
-int lttng_event_enabler_attach_exclusion(struct lttng_event_enabler_session_common *enabler,
+int lttng_event_enabler_attach_exclusion(struct lttng_event_enabler_common *enabler,
struct lttng_ust_excluder_node **excluder)
__attribute__((visibility("hidden")));
struct lttng_ust_bytecode_node **bytecode)
__attribute__((visibility("hidden")));
-/*
- * Attach exclusion list to `struct lttng_event_notifier_enabler` and all
- * event notifiers related to this enabler.
- */
-int lttng_event_notifier_enabler_attach_exclusion(
- struct lttng_event_notifier_enabler *event_notifier_enabler,
- struct lttng_ust_excluder_node **excluder)
- __attribute__((visibility("hidden")));
-
void lttng_free_event_filter_runtime(struct lttng_ust_event_common *event)
__attribute__((visibility("hidden")));
return 0;
}
-static
-void _lttng_enabler_attach_exclusion(struct lttng_event_enabler_common *enabler,
+int lttng_event_enabler_attach_exclusion(struct lttng_event_enabler_common *event_enabler,
struct lttng_ust_excluder_node **excluder)
{
- (*excluder)->enabler = enabler;
- cds_list_add_tail(&(*excluder)->node, &enabler->excluder_head);
+ (*excluder)->enabler = event_enabler;
+ cds_list_add_tail(&(*excluder)->node, &event_enabler->excluder_head);
/* Take ownership of excluder */
*excluder = NULL;
-}
-
-int lttng_event_enabler_attach_exclusion(struct lttng_event_enabler_session_common *event_enabler,
- struct lttng_ust_excluder_node **excluder)
-{
- _lttng_enabler_attach_exclusion(&event_enabler->parent, excluder);
-
- lttng_session_lazy_sync_event_enablers(event_enabler->chan->session);
+ lttng_event_enabler_sync(event_enabler);
return 0;
}
return 0;
}
-int lttng_event_notifier_enabler_attach_exclusion(
- struct lttng_event_notifier_enabler *event_notifier_enabler,
- struct lttng_ust_excluder_node **excluder)
-{
- _lttng_enabler_attach_exclusion(
- lttng_event_notifier_enabler_as_enabler(event_notifier_enabler),
- excluder);
-
- lttng_event_notifier_group_sync_enablers(event_notifier_enabler->group);
- return 0;
-}
-
int lttng_attach_context(struct lttng_ust_abi_context *context_param,
union lttng_ust_abi_args *uargs,
struct lttng_ust_ctx **ctx, struct lttng_ust_session *session)
&event_notifier_enabler->parent,
(struct lttng_ust_bytecode_node **) arg);
case LTTNG_UST_ABI_EXCLUSION:
- return lttng_event_notifier_enabler_attach_exclusion(event_notifier_enabler,
+ return lttng_event_enabler_attach_exclusion(&event_notifier_enabler->parent,
(struct lttng_ust_excluder_node **) arg);
case LTTNG_UST_ABI_CAPTURE:
return lttng_event_notifier_enabler_attach_capture_bytecode(
}
case LTTNG_UST_ABI_EXCLUSION:
{
- return lttng_event_enabler_attach_exclusion(enabler,
+ return lttng_event_enabler_attach_exclusion(&enabler->parent,
(struct lttng_ust_excluder_node **) arg);
}
default: