Remove unused lttng_event_enabler_event_name_match_event
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Feb 2022 19:39:15 +0000 (14:39 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 15 Jul 2024 20:58:48 +0000 (16:58 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icd02b897aa6aaa870e503db873f86f80a04ff02c

include/lttng/events-internal.h
src/lttng-events.c

index c2dd3b945469d9da6b0b9f3b448591940384e633..10005a4f900b01ea252221fe850bfb8065670265 100644 (file)
@@ -930,9 +930,6 @@ bool lttng_desc_match_enabler(const struct lttng_kernel_event_desc *desc,
                struct lttng_event_enabler_common *enabler);
 bool lttng_event_enabler_match_event(struct lttng_event_enabler_common *event_enabler,
                struct lttng_kernel_event_common *event);
-bool lttng_event_enabler_event_name_match_event(struct lttng_event_enabler_common *event_enabler,
-               const char *event_name,
-               struct lttng_kernel_event_common *event);
 
 void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_desc,
                struct lttng_kernel_ctx *ctx,
index 1da03651bcbe476cfbafefb7eaf4868a5a2f0d0c..9b421f72bd0f673aa818da5644025a6f1d68707a 100644 (file)
@@ -2154,48 +2154,6 @@ bool lttng_event_enabler_match_event(struct lttng_event_enabler_common *event_en
        }
 }
 
-bool lttng_event_enabler_event_name_match_event(struct lttng_event_enabler_common *event_enabler,
-               const char *event_name,
-               struct lttng_kernel_event_common *event)
-{
-       if (event_enabler->event_param.instrumentation != event->priv->instrumentation)
-               return false;
-
-       switch (event_enabler->enabler_type) {
-       case LTTNG_EVENT_ENABLER_TYPE_RECORDER:
-       {
-               struct lttng_event_recorder_enabler *event_recorder_enabler =
-                       container_of(event_enabler, struct lttng_event_recorder_enabler, parent.parent);
-               struct lttng_kernel_event_recorder *event_recorder =
-                       container_of(event, struct lttng_kernel_event_recorder, parent);
-
-               if (!strncmp(event->priv->desc->event_name, event_name, LTTNG_KERNEL_ABI_SYM_NAME_LEN - 1)
-                               && event_recorder->chan == event_recorder_enabler->chan)
-                       return true;
-               else
-                       return false;
-       }
-       //TODO: LTTNG_EVENT_ENABLER_TYPE_COUNTER
-       case LTTNG_EVENT_ENABLER_TYPE_NOTIFIER:
-       {
-               struct lttng_event_notifier_enabler *event_notifier_enabler =
-                       container_of(event_enabler, struct lttng_event_notifier_enabler, parent);
-               struct lttng_kernel_event_notifier *event_notifier =
-                       container_of(event, struct lttng_kernel_event_notifier, parent);
-
-               if (!strncmp(event->priv->desc->event_name, event_name, LTTNG_KERNEL_ABI_SYM_NAME_LEN - 1)
-                               && event_notifier->priv->group == event_notifier_enabler->group
-                               && event->priv->user_token == event_enabler->user_token)
-                       return true;
-               else
-                       return false;
-       }
-       default:
-               WARN_ON_ONCE(1);
-               return false;
-       }
-}
-
 static
 struct lttng_enabler_ref *lttng_enabler_ref(
                struct list_head *enablers_ref_list,
This page took 0.030038 seconds and 4 git commands to generate.