}
}
-void lttng_free_event_recorder_filter_runtime(struct lttng_ust_event_recorder *event_recorder)
+void lttng_free_event_filter_runtime(struct lttng_ust_event_common *event)
{
- free_filter_runtime(&event_recorder->parent->filter_bytecode_runtime_head);
-}
-
-void lttng_free_event_notifier_filter_runtime(
- struct lttng_ust_event_notifier *event_notifier)
-{
- free_filter_runtime(&event_notifier->parent->filter_bytecode_runtime_head);
+ free_filter_runtime(&event->filter_bytecode_runtime_head);
}
/* Remove from event_notifier hash table. */
cds_hlist_del(&event_notifier->priv->hlist);
- lttng_free_event_notifier_filter_runtime(event_notifier);
+ lttng_free_event_filter_runtime(event_notifier->parent);
/* Free event_notifier enabler refs */
cds_list_for_each_entry_safe(enabler_ref, tmp_enabler_ref,
cds_hlist_del(&event_recorder->priv->hlist);
lttng_destroy_context(event_recorder->ctx);
- lttng_free_event_recorder_filter_runtime(event_recorder);
+ lttng_free_event_filter_runtime(event_recorder->parent);
/* Free event enabler refs */
cds_list_for_each_entry_safe(enabler_ref, tmp_enabler_ref,
&event_recorder->parent->priv->enablers_ref_head, node)
struct lttng_ust_excluder_node **excluder);
LTTNG_HIDDEN
-void lttng_free_event_recorder_filter_runtime(struct lttng_ust_event_recorder *event_recorder);
-
-LTTNG_HIDDEN
-void lttng_free_event_notifier_filter_runtime(
- struct lttng_ust_event_notifier *event_notifier);
+void lttng_free_event_filter_runtime(struct lttng_ust_event_common *event);
/*
* Connect the probe on all enablers matching this event description.