From: Mathieu Desnoyers Date: Tue, 10 May 2016 18:49:14 +0000 (-0400) Subject: Cleanup: add static for internal symbols X-Git-Tag: v2.8.0~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=52ecff8a35e3770b4d143d894745ab0ed26bdbf9;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 e914d97e..715c5d56 100644 --- a/include/lttng/ust-tracepoint-event.h +++ b/include/lttng/ust-tracepoint-event.h @@ -797,7 +797,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 @@ -858,7 +858,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, \