]> git.lttng.org Git - lttng-tools.git/commitdiff
liblttng-ctl: Stub out removed variable `error_log_time`
authorKienan Stewart <kstewart@efficios.com>
Tue, 7 Jan 2025 20:09:41 +0000 (15:09 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jan 2025 19:20:45 +0000 (19:20 +0000)
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 <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/deprecated-symbols.cpp

index 00d76a4b8b72cbccdfc89115e6fc0aa0f629e8c7..b036206a7aa8772fd89d3b282fbef2a216a22b92 100644 (file)
@@ -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
This page took 0.030294 seconds and 4 git commands to generate.