From: Michael Jeanson Date: Thu, 11 Mar 2021 21:40:02 +0000 (-0500) Subject: Hide private lttng_session_active symbol X-Git-Tag: v2.13.0-rc1~279 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a5ae46ccd9f046246765c634237a65ffa79eb4e9;p=lttng-ust.git Hide private lttng_session_active symbol The major SONAME bump to '1' gives us the opportunity to hide private symbols that should never have been visible. Change-Id: I2700903465892d58d430bec0b76cde12018fede2 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 41dcbaf3..2542ed26 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -618,8 +618,6 @@ void lttng_ust_context_procname_reset(void); struct lttng_transport *lttng_transport_find(const char *name); -int lttng_session_active(void); - void lttng_ust_dl_update(void *ip); #ifdef __cplusplus diff --git a/liblttng-ust/ust-events-internal.h b/liblttng-ust/ust-events-internal.h index 01b13c44..e6064275 100644 --- a/liblttng-ust/ust-events-internal.h +++ b/liblttng-ust/ust-events-internal.h @@ -561,6 +561,12 @@ int lttng_session_statedump(struct lttng_session *session); __attribute__((visibility("hidden"))) void lttng_session_destroy(struct lttng_session *session); +/* + * Called with ust lock held. + */ +__attribute__((visibility("hidden"))) +int lttng_session_active(void); + __attribute__((visibility("hidden"))) struct cds_list_head *lttng_get_sessions(void);