From: Francis Deslauriers Date: Wed, 5 Feb 2020 18:51:51 +0000 (-0500) Subject: lttng-events: move lttng_transport_find earlier in source file X-Git-Tag: v2.13.0-rc1~144 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9fe593d2714b6c1375527fe286bc63f64c7f0eef;p=lttng-modules.git lttng-events: move lttng_transport_find earlier in source file Will be used by upcoming event notifier code which is earlier in source file. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: Idb7be8c682258195166f3b513fee2aa98656de35 --- diff --git a/src/lttng-events.c b/src/lttng-events.c index 2c1e2ae1..e868525d 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -108,6 +108,17 @@ void lttng_unlock_sessions(void) mutex_unlock(&sessions_mutex); } +static struct lttng_transport *lttng_transport_find(const char *name) +{ + struct lttng_transport *transport; + + list_for_each_entry(transport, <tng_transport_list, node) { + if (!strcmp(transport->name, name)) + return transport; + } + return NULL; +} + /* * Called with sessions lock held. */ @@ -479,17 +490,6 @@ end: return ret; } -static struct lttng_transport *lttng_transport_find(const char *name) -{ - struct lttng_transport *transport; - - list_for_each_entry(transport, <tng_transport_list, node) { - if (!strcmp(transport->name, name)) - return transport; - } - return NULL; -} - struct lttng_channel *lttng_channel_create(struct lttng_session *session, const char *transport_name, void *buf_addr,