Hide internal tracepoint and providers data symbols
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Apr 2021 17:59:09 +0000 (13:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Apr 2021 19:40:27 +0000 (15:40 -0400)
The tracepoint and providers definitions are always defined and used
within the same module, so there is no point in exporting those symbols.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I6730e1221cc15e5f3be63402828bb755322ca003

14 files changed:
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.c
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile.c
src/lib/lttng-ust-dl/lttng-ust-dl.c
src/lib/lttng-ust-dl/ust_dl.c
src/lib/lttng-ust-java-agent/jni/jul/lttng_ust_jul.c
src/lib/lttng-ust-java-agent/jni/log4j/lttng_ust_log4j.c
src/lib/lttng-ust-java/LTTngUst.c
src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
src/lib/lttng-ust-pthread-wrapper/lttng-ust-pthread.c
src/lib/lttng-ust-python-agent/lttng_ust_python.c
src/lib/lttng-ust/lttng-ust-statedump.c
src/lib/lttng-ust/tracef.c
src/lib/lttng-ust/tracelog.c
src/lib/lttng-ust/ust_lib.c

index c50aee9dcccb08f6310929661e349830be5d4e30..026734d5615326ab1eafbde250929af55da9b77d 100644 (file)
@@ -9,6 +9,9 @@
 #include <sys/types.h>
 #include <stdio.h>
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TP_IP_PARAM func_addr
index 33f721c704b3c4fd95e82be8cb6398e05c047ab5..0b49c7903210fa4044d4aad8f85c3e4d807b7b63 100644 (file)
@@ -9,6 +9,9 @@
 #include <sys/types.h>
 #include <stdio.h>
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TP_IP_PARAM func_addr
index e342fb2d0ed8b85971e13e51f0da19068d66d5eb..9b20874a04ca4bb09bbacf8c1b492b2cc2da2c3c 100644 (file)
@@ -26,6 +26,7 @@
 /* Include link.h last else it conflicts with ust-dlfcn. */
 #include <link.h>
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #include "ust_dl.h"
 
index 3c18a0c680787c76ac625faab2eea31abae9c318..1b8d44a10f903038e3aeeabd1d614a171bcf389b 100644 (file)
@@ -5,6 +5,9 @@
  */
 
 #define _LGPL_SOURCE
+
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TP_IP_PARAM ip
 #include "ust_dl.h"
index bb9af808f68d5fe16332b45a5273a932d79b4788..86c8852b3c6c8506de372ddeead5c1d4c0783227 100644 (file)
@@ -9,6 +9,9 @@
 #define _LGPL_SOURCE
 #include "org_lttng_ust_agent_jul_LttngJulApi.h"
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #include "lttng_ust_jul.h"
index 65f519dda778718c32595383160dd7d4ea1e7623..fac8285740a04877662c14f5384697764a158736 100644 (file)
@@ -9,6 +9,9 @@
 #define _LGPL_SOURCE
 #include "org_lttng_ust_agent_log4j_LttngLog4jApi.h"
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #include "lttng_ust_log4j.h"
index 8e9c960387f5cf647c35de4716a9a6755173009c..334071f92e02f4ce745245447b4ab8d71df72e70 100644 (file)
@@ -7,6 +7,9 @@
 #define _LGPL_SOURCE
 #include "org_lttng_ust_LTTngUst.h"
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #include "lttng_ust_java.h"
index 19c603408cc85ca7e01db81d9fbeefcc7f21c385..e3513db47b2cf1b585e7f6313e26528696cc0269 100644 (file)
@@ -30,6 +30,9 @@
 #include "common/macros.h"
 #include "common/align.h"
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TP_IP_PARAM ip
index 71d21431d69823277f99d04c15c25ba7475c9570..6cf2a6fce74f35061ec3fc04caf80a74302e6466 100644 (file)
@@ -16,6 +16,9 @@
 #include "common/macros.h"
 #include <pthread.h>
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TP_IP_PARAM ip
index bf71beae3a366c0fb4a25f1497d51479020afa91..37c75fe1bf69b16d5db320ec3ba20b6bfb25dd97 100644 (file)
@@ -5,6 +5,10 @@
  */
 
 #define _LGPL_SOURCE
+
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #include "lttng_ust_python.h"
index 6d166cf08cf02e0f592ec5d6ab9f6ea6081bc2cf..a663487e3dd36762e9fe99ecbdaba639c4a23c75 100644 (file)
@@ -24,6 +24,9 @@
 #include "common/getenv.h"
 #include "lib/lttng-ust/events.h"
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #include "ust_lib.h"                           /* Only define. */
 
index e321ee07a497c3043243f7d8199a26d423743a5a..c05c781199f8235a62972a3e8969dec5fccf5594 100644 (file)
@@ -8,6 +8,9 @@
 #include <stdio.h>
 #include "common/macros.h"
 
+/* The tracepoint definition is public, but the provider definition is hidden. */
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #include "lttng-ust-tracef-provider.h"
index 4a10a641966b6ca7bcda7d9aae4af0d78d9d33a0..8147d7a339abc9383ba31e4816779811c0efaa36 100644 (file)
@@ -8,6 +8,9 @@
 #include <stdio.h>
 #include "common/macros.h"
 
+/* The tracepoint definition is public, but the provider definition is hidden. */
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #include "lttng-ust-tracelog-provider.h"
index 12cb3a8a771b5796c54c809cd2f8a6feff95b0e7..96256fdd89a8bbbd06a5df42830e3739cd14a737 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #define _LGPL_SOURCE
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
 #define LTTNG_UST_TP_IP_PARAM ip
 #include "ust_lib.h"
This page took 0.029017 seconds and 4 git commands to generate.