From: Kienan Stewart Date: Mon, 16 Dec 2024 14:23:40 +0000 (-0500) Subject: session-config: Move deprecated symbol X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1420f85ff5c1c86dd70f41e5514ef08df89409d1;p=lttng-tools.git session-config: Move deprecated symbol This move element an ABI warning about `config_element_perf` being removed. ``` 9 Removed variables: [D] 'const char* const config_element_perf' {config_element_perf} ... ``` Change-Id: I0bee12f610559edfa0718e5a7d90d06cf0c8f101 Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/config/session-config.cpp b/src/common/config/session-config.cpp index df33caa62..719c2e876 100644 --- a/src/common/config/session-config.cpp +++ b/src/common/config/session-config.cpp @@ -239,9 +239,6 @@ const char *const config_event_context_vgid = "VGID"; const char *const config_event_context_vegid = "VEGID"; const char *const config_event_context_vsgid = "VSGID"; -/* Deprecated symbols */ -LTTNG_EXPORT extern const char *const config_element_perf; - enum process_event_node_phase { CREATION = 0, ENABLE = 1, diff --git a/src/lib/lttng-ctl/deprecated-symbols.cpp b/src/lib/lttng-ctl/deprecated-symbols.cpp index 0283a7c4e..6979f236a 100644 --- a/src/lib/lttng-ctl/deprecated-symbols.cpp +++ b/src/lib/lttng-ctl/deprecated-symbols.cpp @@ -23,11 +23,13 @@ LTTNG_EXPORT size_t default_ust_uid_channel_subbuf_size; extern "C" { #endif +LTTNG_EXPORT extern const char *const config_element_perf; LTTNG_EXPORT extern const char *const config_element_pid_tracker; LTTNG_EXPORT extern const char *const config_element_target_pid; LTTNG_EXPORT extern const char *const config_element_targets; LTTNG_EXPORT extern const char *const config_element_trackers; +const char *const config_element_perf = nullptr; const char *const config_element_pid_tracker = nullptr; const char *const config_element_target_pid = nullptr; const char *const config_element_targets = nullptr;