From ec1a9ccf142da5f609d032e23b2bc0047a5bddd8 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 7 Jan 2025 15:09:41 -0500 Subject: [PATCH] liblttng-ctl: Stub out removed variable `error_log_time` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Observed issue ============== The ABI diff of liblttng-ctl between lttng-tools 2.13 and lttng-tools master shows that this variable has been removed. Cause ===== The visibility of this symbol was restricted in commit 1944cedb180887d9dfe0906f930df167e714af99. Solution ======== Add to deprecated symbols file. Known drawbacks =============== None. Change-Id: I553c345c053ab39271871b68f7c2a4d1b1e1d628 Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- src/lib/lttng-ctl/deprecated-symbols.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib/lttng-ctl/deprecated-symbols.cpp b/src/lib/lttng-ctl/deprecated-symbols.cpp index 00d76a4b8..b036206a7 100644 --- a/src/lib/lttng-ctl/deprecated-symbols.cpp +++ b/src/lib/lttng-ctl/deprecated-symbols.cpp @@ -23,3 +23,17 @@ LTTNG_EXPORT const char *config_element_pid_tracker = nullptr; LTTNG_EXPORT const char *config_element_target_pid = nullptr; LTTNG_EXPORT const char *config_element_targets = nullptr; LTTNG_EXPORT const char *config_element_trackers = nullptr; + +#ifdef __cplusplus +extern "C" { +#endif + +struct log_time { + char str[19]; +}; + +LTTNG_EXPORT thread_local struct log_time error_log_time = {}; + +#ifdef __cplusplus +} +#endif -- 2.39.5