Tracepoint API namespacing 'TRACEPOINT_HEADER_MULTI_READ'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 20 Apr 2021 18:11:59 +0000 (14:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Apr 2021 15:01:18 +0000 (11:01 -0400)
The ABI bump gives us the opportunity to namespace all public symbols
under the 'lttng_ust_' prefix. Namespace all API symbols and macros
under 'lttng_ust_' / 'LTTNG_UST_' and add compat macros to keep
compatibility with the previous API.

Change-Id: Ib8d0af6af18882283b239593517a4c33384fcf93
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
28 files changed:
doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.h
doc/examples/demo/ust_tests_demo.h
doc/examples/demo/ust_tests_demo2.h
doc/examples/demo/ust_tests_demo3.h
doc/examples/easy-ust/sample_component_provider.h
doc/examples/hello-static-lib/ust_tests_hello.h
include/lttng/tracepoint-event.h
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.h
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile.h
src/lib/lttng-ust-dl/ust_dl.h
src/lib/lttng-ust-java-agent/jni/jul/lttng_ust_jul.h
src/lib/lttng-ust-java-agent/jni/log4j/lttng_ust_log4j.h
src/lib/lttng-ust-java/lttng_ust_java.h
src/lib/lttng-ust-libc-wrapper/ust_libc.h
src/lib/lttng-ust-pthread-wrapper/ust_pthread.h
src/lib/lttng-ust-python-agent/lttng_ust_python.h
src/lib/lttng-ust/lttng-ust-statedump-provider.h
src/lib/lttng-ust/lttng-ust-tracef-provider.h
src/lib/lttng-ust/lttng-ust-tracelog-provider.h
src/lib/lttng-ust/ust_lib.h
tests/benchmark/ust_tests_benchmark.h
tests/compile/ctf-types/ust_tests_ctf_types.h
tests/compile/hello-many/ust_tests_hello_many.h
tests/compile/hello.cxx/ust_tests_hello.h
tests/compile/hello/ust_tests_hello.h
tests/compile/same_line_tracepoint/ust_tests_sameline.h
tests/compile/test-app-ctx/ust_tests_hello.h
tools/lttng-gen-tp

index f2d80fc8bc306bc8721bb4eb75bccbe2537660a0..170738fabf15723d3e04359b626d7a6965a49d6f 100644 (file)
@@ -10,7 +10,7 @@
 #undef TRACEPOINT_INCLUDE
 #define TRACEPOINT_INCLUDE "tracepoint-provider.h"
 
-#if !defined(MY_TRACEPOINT_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(MY_TRACEPOINT_PROVIDER_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define MY_TRACEPOINT_PROVIDER_H
 
 #include <lttng/tracepoint.h>
index e392228d2ad96eb140fbee50e849fa986d47980b..89d4dc1da84fbe57ae0ddbcf6142441f08997130 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_demo
 
-#if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_DEMO_H
 
 #include <lttng/tracepoint.h>
index a7e9abea847f50c945267ff8ab43d0835b69a83e..94de3b5354e8897d68a9b0574d8f08c76c51a625 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_demo2
 
-#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_DEMO2_H
 
 #include <lttng/tracepoint.h>
index 7ac7d9b773d04570f4d0de0a80cc91aa7155a362..d2f2b01b122afedf89461b7b9f5fbc04e060cef4 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_demo3
 
-#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_DEMO3_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_DEMO3_H
 
 #include <lttng/tracepoint.h>
index 9788180850d3e82bad2bba563781fa33b5a712ea..d82fa0ebf2f8c81749169363542b074d792cacb1 100644 (file)
@@ -38,7 +38,7 @@
  * Add this precompiler conditionals to ensure the tracepoint event generation
  * can include this file more than once.
  */
-#if !defined(_SAMPLE_COMPONENT_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_SAMPLE_COMPONENT_PROVIDER_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _SAMPLE_COMPONENT_PROVIDER_H
 /*
  * Add this to allow programs to call "tracepoint(...):
index 22f35c7377ae5b4d1f67352958292eda6cf06584..e48434fb4dd1563de316de77c45c88c5ed338eef 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_hello
 
-#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_HELLO_H
 
 #include <lttng/tracepoint.h>
index cf482b178071ad8276adf5bd7a6fd859f21b451d..639a05db0c21cc98bcbd797cff0970e8d8fdc435 100644 (file)
 #undef TRACEPOINT_CREATE_PROBES
 #endif
 
+#define LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ
+#if LTTNG_UST_COMPAT_API(0)
 #define TRACEPOINT_HEADER_MULTI_READ
+#endif
 
 #include TRACEPOINT_INCLUDE
 
 #include <lttng/ust-tracepoint-event.h>
 
+#undef LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ
+#if LTTNG_UST_COMPAT_API(0)
 #undef TRACEPOINT_HEADER_MULTI_READ
+#endif
+
 #undef TRACEPOINT_INCLUDE
 
 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
index 7c1d5b83df1c8274f4a381a3e383eccf0c24bc95..66c63c37fd692b7747ba5e4d2fe413fcfe183f5d 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_cyg_profile_fast
 
-#if !defined(_TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H
 
 #ifdef __cplusplus
index 4a75c5ea3c49791273653afc2beb888cde967bbe..c286f155fc4c6ec123bafa0c21a7a01c3a8a9689 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_cyg_profile
 
-#if !defined(_TRACEPOINT_LTTNG_UST_CYG_PROFILE_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_CYG_PROFILE_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_CYG_PROFILE_H
 
 #ifdef __cplusplus
index 893eae3aa8e984116ed4d9161ff784876be55414..f2e6886fd811519872997d8e1b5b90bff8ee5b71 100644 (file)
@@ -8,7 +8,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_dl
 
-#if !defined(_TRACEPOINT_UST_DL_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_DL_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_DL_H
 
 #ifdef __cplusplus
index 2d7cbbbfee2dbf90df57a4079701d5df233b51dc..dc941ef38140e0fee885756664a30a6781fd6196 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_jul
 
-#if !defined(_TRACEPOINT_LTTNG_UST_JUL_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_JUL_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_JUL_H
 
 #include <lttng/tracepoint.h>
index 4aaa595682a9e3d1b705d466339242eac5c99d06..2b8420ad10e11d237ae76b359dae55d1505868e6 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_log4j
 
-#if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_LOG4J_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_LOG4J_H
 
 #include <lttng/tracepoint.h>
index 12026f781fe9965c18f625c66f9f4c22faf9f009..54a2087846c4f440efbdbd737d7c4acbb531d311 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_java
 
-#if !defined(_TRACEPOINT_LTTNG_UST_JAVA_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_JAVA_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_JAVA_H
 
 #include <lttng/tracepoint.h>
index 621d45ea61f30b6a791cb434b8eb1b479725e69c..b9d74db0ab9a69ba4d0ef717e2d2b5ba451933dd 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_libc
 
-#if !defined(_TRACEPOINT_UST_LIBC_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_LIBC_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_LIBC_H
 
 #ifdef __cplusplus
index 03dfcd3ee564d9b6f7fdb138c2524447b1362a9b..d0fb1acdce12cb25d7983f8009265529518387f1 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_pthread
 
-#if !defined(_TRACEPOINT_UST_PTHREAD_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_PTHREAD_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_PTHREAD_H
 
 #ifdef __cplusplus
index dc8af4f867d6a3e9c7692437c7bdadf6a57079d1..40b91fc3046930c628c10e69f0fff8f7c6f4ca95 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_python
 
-#if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_PYTHON_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_PYTHON_H
 
 #include <lttng/tracepoint.h>
index c4fa06d55b4b57abffb1b5bcd1f77e22cc58d220..3fbcf8d2aef5d7847b19217ae386ee3bff971ae5 100644 (file)
@@ -8,7 +8,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_statedump
 
-#if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_STATEDUMP_H
 
 #ifdef __cplusplus
index 6f27fed4a5367ca351ec0318ba17c492ae059ab7..ddb9a09ac656242f65e9c4f948f518b463c18ee9 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_tracef
 
-#if !defined(_TRACEPOINT_LTTNG_UST_TRACEF_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_TRACEF_PROVIDER_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_TRACEF_PROVIDER_H
 
 #include <lttng/tp/lttng-ust-tracef.h>
index 25989dfc883e6b3b188cdd05a1ee29cce7bb343d..000ca639884912ffd94f90bfd344d25e46548e7c 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_tracelog
 
-#if !defined(_TRACEPOINT_LTTNG_UST_TRACELOG_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_LTTNG_UST_TRACELOG_PROVIDER_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_LTTNG_UST_TRACELOG_PROVIDER_H
 
 #include <lttng/tp/lttng-ust-tracelog.h>
index 2c3d1169ac08c7924b42952a80c5e75ff885bc54..d645804b6e3995a0f33de05823bb3e41893967db 100644 (file)
@@ -9,7 +9,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER lttng_ust_lib
 
-#if !defined(_TRACEPOINT_UST_LIB_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_LIB_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_LIB_H
 
 #ifdef __cplusplus
index badb90811abcaabf59996fd63900a6f131604e93..c8862bfcb98cb269bd87b299f902314b083c1956 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_benchmark
 
-#if !defined(_TRACEPOINT_UST_TESTS_BENCHMARK_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_BENCHMARK_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_BENCHMARK_H
 
 #include <lttng/tracepoint.h>
index 0277e68b0de1b13de5480f924501409f98eeb0a5..def0293a71d13ae0b4a8ec79a6609136d2c139da 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_ctf_types
 
-#if !defined(_TRACEPOINT_UST_TESTS_CTF_TYPES_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_CTF_TYPES_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_CTF_TYPES_H
 
 #include <lttng/tracepoint.h>
index a001a15dc811daea775314711ec2857c2e7f5011..9f10c4f6faa38c92bbe737921bce84af105abe6f 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_hello_many
 
-#if !defined(_TRACEPOINT_UST_TESTS_HELLO_MANY_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_HELLO_MANY_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_HELLO_MANY_H
 
 #include <lttng/tracepoint.h>
index 25176dc68776ca66c9c0de614d40e51858c2f4c2..308d024ff738268206a3a830d51d7b8a8b60d9f3 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_hello
 
-#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_HELLO_H
 
 #include <lttng/tracepoint.h>
index 77993708082a7932fd022842e328274b4f677d46..5c2415cdbc6172589def50000ba7256f4b3f5cdd 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_hello
 
-#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_HELLO_H
 
 #include <lttng/tracepoint.h>
index ba76c1a23e376ee601a4db6defb24ef773f3838a..49535f7e5593b5f182dac0a1b56c25730d62a133 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_sameline
 
-#if !defined(_TRACEPOINT_UST_TESTS_SAMELINE_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_SAMELINE_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_SAMELINE_H
 
 #include <lttng/tracepoint.h>
index 1c87c5d155b600d950903dc97cc10d56cf8658db..906adeddb052c4b867546732c4ab89ef3447e563 100644 (file)
@@ -7,7 +7,7 @@
 #undef TRACEPOINT_PROVIDER
 #define TRACEPOINT_PROVIDER ust_tests_hello
 
-#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define _TRACEPOINT_UST_TESTS_HELLO_H
 
 #include <lttng/tracepoint.h>
index 889a40306537046e414f676c0b9d28dc2a15bc49..8a8d66d95cce2284b76104fc102eb24cce1ea62e 100755 (executable)
@@ -25,7 +25,7 @@ class HeaderFile:
 #undef TRACEPOINT_INCLUDE
 #define TRACEPOINT_INCLUDE "./{headerFilename}"
 
-#if !defined({includeGuard}) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#if !defined({includeGuard}) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
 #define {includeGuard}
 
 #include <lttng/tracepoint.h>
This page took 0.035131 seconds and 4 git commands to generate.