From: Mathieu Desnoyers Date: Mon, 1 Nov 2021 19:20:22 +0000 (-0400) Subject: Cleanup: rename lttng_syscalls_destroy_event to lttng_syscalls_destroy_channel X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=289104bf6706f9fed85b03f33646fb7962d4fd43;p=lttng-modules.git Cleanup: rename lttng_syscalls_destroy_event to lttng_syscalls_destroy_channel Signed-off-by: Mathieu Desnoyers Change-Id: Iabff0107d1280e2d88aa607b3220fa811f80c09c --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index b9f0a414..84c0d009 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -811,7 +811,7 @@ void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_des #if defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS) int lttng_syscalls_register_event(struct lttng_event_recorder_enabler *event_enabler); int lttng_syscalls_unregister_channel(struct lttng_kernel_channel_buffer *chan); -int lttng_syscalls_destroy_event(struct lttng_kernel_channel_buffer *chan); +int lttng_syscalls_destroy_channel(struct lttng_kernel_channel_buffer *chan); int lttng_syscall_filter_enable_event_recorder(struct lttng_kernel_event_recorder *event_recorder); int lttng_syscall_filter_disable_event_recorder(struct lttng_kernel_event_recorder *event_recorder); diff --git a/src/lttng-events.c b/src/lttng-events.c index 19262b41..731baa85 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -369,7 +369,7 @@ void lttng_session_destroy(struct lttng_kernel_session *session) } synchronize_trace(); /* Wait for in-flight events to complete */ list_for_each_entry(chan_priv, &session->priv->chan, node) { - ret = lttng_syscalls_destroy_event(chan_priv->pub); + ret = lttng_syscalls_destroy_channel(chan_priv->pub); WARN_ON(ret); } list_for_each_entry_safe(event_recorder_enabler, tmp_event_recorder_enabler, diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 62761b82..33f05ea3 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -1170,7 +1170,7 @@ int lttng_syscalls_unregister_channel(struct lttng_kernel_channel_buffer *chan) return 0; } -int lttng_syscalls_destroy_event(struct lttng_kernel_channel_buffer *chan) +int lttng_syscalls_destroy_channel(struct lttng_kernel_channel_buffer *chan) { struct lttng_kernel_syscall_table *syscall_table = &chan->priv->parent.syscall_table;