From: Mathieu Desnoyers Date: Tue, 10 May 2016 18:49:14 +0000 (-0400) Subject: Cleanup: add static for internal symbols X-Git-Tag: v2.9.0-rc1~117 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ff82b7c14275bd48851f922647825e1ca56dbdc2;p=lttng-ust.git Cleanup: add static for internal symbols Those underscore-prefixed symbols are only used internally within the tracepoint provider. Declare them as static symbols, thus removing unneeded global symbols which are not meant to be used by applications. Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-tracepoint-event.h b/include/lttng/ust-tracepoint-event.h index 64c45357..645c566b 100644 --- a/include/lttng/ust-tracepoint-event.h +++ b/include/lttng/ust-tracepoint-event.h @@ -803,7 +803,7 @@ void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)) \ #undef TRACEPOINT_EVENT_CLASS #define TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \ -const char __tp_event_signature___##_provider##___##_name[] = \ +static const char __tp_event_signature___##_provider##___##_name[] = \ _TP_EXTRACT_STRING2(_args); #include TRACEPOINT_INCLUDE @@ -864,7 +864,7 @@ static const int * \ static const char * \ __ref_model_emf_uri___##_provider##___##_name \ __attribute__((weakref ("_model_emf_uri___" #_provider "___" #_name)));\ -const struct lttng_event_desc __event_desc___##_provider##_##_name = { \ +static const struct lttng_event_desc __event_desc___##_provider##_##_name = { \ .name = #_provider ":" #_name, \ .probe_callback = (void (*)(void)) &__event_probe__##_provider##___##_template,\ .ctx = NULL, \