From: Kienan Stewart Date: Tue, 7 Jan 2025 20:09:41 +0000 (-0500) Subject: liblttng-ctl: Stub out removed variable `error_log_time` X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ec1a9ccf142da5f609d032e23b2bc0047a5bddd8;p=lttng-tools.git liblttng-ctl: Stub out removed variable `error_log_time` 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 --- 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