From a416382b7be5ed002816bd6fae22eb9b2048c252 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 2 Oct 2019 17:55:06 -0400 Subject: [PATCH] Fix: liblttng-ctl: config and mi strings inadvertantly exported MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit abidiff reports that a number of configuration and MI string symbols are exported by liblttng-ctl: 'const char* const config_event_type_userspace_probe' {config_event_type_userspace_probe} 'const char* const mi_lttng_element_command_disable_rotation' {mi_lttng_element_command_disable_rotation} 'const char* const mi_lttng_element_command_enable_rotation' {mi_lttng_element_command_enable_rotation} 'const char* const mi_lttng_element_command_rotate' {mi_lttng_element_command_rotate} Those strings are marked as LTTNG_HIDDEN. Signed-off-by: Jérémie Galarneau --- src/common/config/session-config.c | 2 +- src/common/mi-lttng.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c index 40019514b..b1fa992fe 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -177,7 +177,7 @@ const char * const config_loglevel_type_single = "SINGLE"; const char * const config_event_type_all = "ALL"; const char * const config_event_type_tracepoint = "TRACEPOINT"; const char * const config_event_type_probe = "PROBE"; -const char * const config_event_type_userspace_probe = "USERSPACE_PROBE"; +LTTNG_HIDDEN const char * const config_event_type_userspace_probe = "USERSPACE_PROBE"; const char * const config_event_type_function = "FUNCTION"; const char * const config_event_type_function_entry = "FUNCTION_ENTRY"; const char * const config_event_type_noop = "NOOP"; diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index 69b3cc041..59a624a96 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -74,9 +74,9 @@ const char * const mi_lttng_element_command_success = "success"; const char * const mi_lttng_element_command_track = "track"; const char * const mi_lttng_element_command_untrack = "untrack"; const char * const mi_lttng_element_command_version = "version"; -const char * const mi_lttng_element_command_rotate = "rotate"; -const char * const mi_lttng_element_command_enable_rotation = "enable-rotation"; -const char * const mi_lttng_element_command_disable_rotation = "disable-rotation"; +LTTNG_HIDDEN const char * const mi_lttng_element_command_rotate = "rotate"; +LTTNG_HIDDEN const char * const mi_lttng_element_command_enable_rotation = "enable-rotation"; +LTTNG_HIDDEN const char * const mi_lttng_element_command_disable_rotation = "disable-rotation"; /* Strings related to version command */ const char * const mi_lttng_element_version = "version"; -- 2.34.1