From: Mathieu Desnoyers Date: Fri, 25 Feb 2022 14:40:03 +0000 (-0500) Subject: Rename lttng_get_event_ht_from_enabler to lttng_get_events_name_ht_from_enabler X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e43b0d18007746f701006122c34420e5da134623;p=lttng-modules.git Rename lttng_get_event_ht_from_enabler to lttng_get_events_name_ht_from_enabler Signed-off-by: Mathieu Desnoyers Change-Id: I53bb9917ae7644ba79f36dc16f9feb095a3c4194 --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index e79847fe..8483a6a8 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -684,7 +684,7 @@ struct lttng_event_enabler_common *lttng_event_notifier_enabler_as_enabler( } static inline -struct lttng_event_ht *lttng_get_event_ht_from_enabler(struct lttng_event_enabler_common *event_enabler) +struct lttng_event_ht *lttng_get_events_name_ht_from_enabler(struct lttng_event_enabler_common *event_enabler) { switch (event_enabler->enabler_type) { case LTTNG_EVENT_ENABLER_TYPE_RECORDER: diff --git a/src/lttng-events.c b/src/lttng-events.c index 89a72e66..cc8459b0 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -1380,7 +1380,7 @@ struct lttng_kernel_event_common *_lttng_kernel_event_create(struct lttng_event_ const struct lttng_kernel_event_desc *event_desc) { char key_string[LTTNG_KEY_TOKEN_STRING_LEN_MAX] = { 0 }; - struct lttng_event_ht *events_ht = lttng_get_event_ht_from_enabler(event_enabler); + struct lttng_event_ht *events_ht = lttng_get_events_name_ht_from_enabler(event_enabler); struct list_head *event_list_head = lttng_get_event_list_head_from_enabler(event_enabler); struct lttng_kernel_abi_event *event_param = &event_enabler->event_param; enum lttng_kernel_abi_instrumentation itype = event_param->instrumentation; diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 4e404e57..efe25f09 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -690,7 +690,7 @@ static void lttng_syscall_event_enabler_create_matching_syscall_table_events(struct lttng_event_enabler_common *syscall_event_enabler_common, const struct trace_syscall_entry *table, size_t table_len, enum sc_type type) { - struct lttng_event_ht *events_ht = lttng_get_event_ht_from_enabler(syscall_event_enabler_common); + struct lttng_event_ht *events_ht = lttng_get_events_name_ht_from_enabler(syscall_event_enabler_common); const struct lttng_kernel_event_desc *desc; unsigned int i; @@ -752,7 +752,7 @@ static void create_unknown_syscall_event(struct lttng_event_enabler_common *event_enabler, enum sc_type type) { char key_string[LTTNG_KEY_TOKEN_STRING_LEN_MAX] = { 0 }; - struct lttng_event_ht *events_ht = lttng_get_event_ht_from_enabler(event_enabler); + struct lttng_event_ht *events_ht = lttng_get_events_name_ht_from_enabler(event_enabler); struct lttng_kernel_event_common_private *event_priv; const struct lttng_kernel_event_desc *desc; bool found = false;