From: Jérémie Galarneau Date: Wed, 2 Oct 2019 21:55:06 +0000 (-0400) Subject: Fix: liblttng-ctl: config and mi strings inadvertantly exported X-Git-Tag: v2.11.0~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eae9fe4ac107bb9b0b0bcf2e4777b2d95a5ccad6;p=lttng-tools.git Fix: liblttng-ctl: config and mi strings inadvertantly exported 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 --- 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";