Tracepoint API namespacing ctf_unused
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 21 Apr 2021 21:27:39 +0000 (17:27 -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: I41531d9e69604f1809d035147779c8ceeed2add7
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 files changed:
include/lttng/tp/lttng-ust-tracef.h
include/lttng/tp/lttng-ust-tracelog.h
include/lttng/tracepoint.h
include/lttng/ust-tracepoint-event-nowrite.h
include/lttng/ust-tracepoint-event-reset.h
include/lttng/ust-tracepoint-event-write.h
include/lttng/ust-tracepoint-event.h
src/lib/lttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.h
src/lib/lttng-ust-dl/ust_dl.h
src/lib/lttng-ust-libc-wrapper/ust_libc.h
src/lib/lttng-ust-pthread-wrapper/ust_pthread.h
src/lib/lttng-ust/lttng-ust-statedump-provider.h
src/lib/lttng-ust/ust_lib.h

index 1bbf33a3aea8d8b17a2b5b7b0528eddc06a3696c..5bce593e38982093e527c1ef2db80a07dc25b1e2 100644 (file)
@@ -11,7 +11,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_tracef, event,
        LTTNG_UST_TP_ARGS(const char *, msg, unsigned int, len, void *, ip),
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_sequence_text(char, msg, msg, unsigned int, len)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 LTTNG_UST_TRACEPOINT_LOGLEVEL(lttng_ust_tracef, event, LTTNG_UST_TRACEPOINT_LOGLEVEL_DEBUG)
index 76b0cb300b420a33eb17aab31db73891196aab19..5e8d9f0d78e92c3166d10b1019d7cb427bde2f70 100644 (file)
@@ -15,7 +15,7 @@ LTTNG_UST_TRACEPOINT_EVENT_CLASS(lttng_ust_tracelog, tlclass,
                lttng_ust_field_string(file, file)
                lttng_ust_field_string(func, func)
                lttng_ust_field_sequence_text(char, msg, msg, unsigned int, len)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
index 9ec52ef907880f3304c28e6cd8b1b4ba83500ae6..beb2c409dcfe1ed7afdd43998564ae58a10f96e2 100644 (file)
@@ -621,6 +621,9 @@ lttng_ust__tracepoints__ptrs_destroy(void)
 
 #define ctf_string                     lttng_ust_field_string
 #define ctf_string_nowrite             lttng_ust_field_string_nowrite
+
+#define ctf_unused                     lttng_ust_field_unused
+#define ctf_unused_nowrite             lttng_ust_field_unused_nowrite
 #endif /* #if LTTNG_UST_COMPAT_API(0) */
 
 #ifdef __cplusplus
index 3ae9685566fefb7c7ee21c3fc5ae4da58ce6f9d2..d5406c83f229451da13ad83350093f0882129016 100644 (file)
@@ -63,9 +63,9 @@
 #define lttng_ust_field_string_nowrite(_item, _src)                            \
        lttng_ust__field_string(_item, _src, 1)
 
-#undef ctf_unused_nowrite
-#define ctf_unused_nowrite(_src)                               \
-       _ctf_unused(_src)
+#undef lttng_ust_field_unused_nowrite
+#define lttng_ust_field_unused_nowrite(_src)                           \
+       lttng_ust__field_unused(_src)
 
 #undef ctf_enum_nowrite
 #define ctf_enum_nowrite(_provider, _name, _type, _item, _src)         \
index 3262e0b0738f9606bb94a22c3171a521ce886777..ed1c465e13be1f474e13e1f581283002b2e37e56 100644 (file)
@@ -45,8 +45,8 @@
 #undef lttng_ust__field_string
 #define lttng_ust__field_string(_item, _src, _nowrite)
 
-#undef _ctf_unused
-#define _ctf_unused(_src)
+#undef lttng_ust__field_unused
+#define lttng_ust__field_unused(_src)
 
 #undef _ctf_enum
 #define _ctf_enum(_provider, _name, _type, _item, _src, _nowrite)
 #undef lttng_ust_field_string
 #define lttng_ust_field_string(_item, _src)
 
-#undef ctf_unused
-#define ctf_unused(_src)
+#undef lttng_ust_field_unused
+#define lttng_ust_field_unused(_src)
 
 #undef ctf_enum
 #define ctf_enum(_provider, _name, _type, _item, _src)
 #undef lttng_ust_field_string_nowrite
 #define lttng_ust_field_string_nowrite(_item, _src)
 
-#undef ctf_unused_nowrite
-#define ctf_unused_nowrite(_src)
+#undef lttng_ust_field_unused_nowrite
+#define lttng_ust_field_unused_nowrite(_src)
 
 #undef ctf_enum_nowrite
 #define ctf_enum_nowrite(_provider, _name, _type, _item, _src)
index 1e019672bf1e8a7ba1b432a8e7cc648359384f17..3c542980b8eedda119d8bfbadd463f6a1e4362aa 100644 (file)
@@ -78,9 +78,9 @@
 #define lttng_ust_field_string(_item, _src)                                    \
        lttng_ust__field_string(_item, _src, 0)
 
-#undef ctf_unused
-#define ctf_unused(_src)                                       \
-       _ctf_unused(_src)
+#undef lttng_ust_field_unused
+#define lttng_ust_field_unused(_src)                                   \
+       lttng_ust__field_unused(_src)
 
 #undef ctf_enum
 #define ctf_enum(_provider, _name, _type, _item, _src)                 \
index 8ddf89c4599bb15fd315bdef2b223bf62c95b85f..9399be21d8c200bb589851bfed2936ab87f2217e 100644 (file)
@@ -343,8 +343,8 @@ void lttng_ust__event_template_proto___##_provider##___##_name(LTTNG_UST__TP_ARG
                .nofilter = 0,                                  \
        }),
 
-#undef _ctf_unused
-#define _ctf_unused(_src)
+#undef lttng_ust__field_unused
+#define lttng_ust__field_unused(_src)
 
 #undef _ctf_enum
 #define _ctf_enum(_provider, _name, _type, _item, _src, _nowrite) \
@@ -451,8 +451,8 @@ static void lttng_ust__event_probe__##_provider##___##_name(LTTNG_UST__TP_ARGS_D
        __event_len += __dynamic_len[__dynamic_len_idx++] =                    \
                strlen((_src) ? (_src) : LTTNG_UST__NULL_STRING) + 1;
 
-#undef _ctf_unused
-#define _ctf_unused(_src)                                                      \
+#undef lttng_ust__field_unused
+#define lttng_ust__field_unused(_src)                                                  \
        if (0)                                                                  \
                (void) (_src);  /* Unused */
 
@@ -620,8 +620,8 @@ size_t lttng_ust__event_get_size__##_provider##___##_name(                        \
                __stack_data += sizeof(void *);                                \
        }
 
-#undef _ctf_unused
-#define _ctf_unused(_src)                                                      \
+#undef lttng_ust__field_unused
+#define lttng_ust__field_unused(_src)                                                  \
        if (0)                                                                  \
                (void) (_src);
 
@@ -695,8 +695,8 @@ void lttng_ust__event_prepare_interpreter_stack__##_provider##___##_name(char *_
        if (0)                                                                  \
                (void) (_src);  /* Unused */
 
-#undef _ctf_unused
-#define _ctf_unused(_src)                                                      \
+#undef lttng_ust__field_unused
+#define lttng_ust__field_unused(_src)                                                  \
        if (0)                                                                  \
                (void) (_src);  /* Unused */
 
@@ -781,8 +781,8 @@ size_t lttng_ust__event_get_align__##_provider##___##_name(LTTNG_UST__TP_ARGS_PR
                        lttng_ust__get_dynamic_len(dest));                      \
        }
 
-#undef _ctf_unused
-#define _ctf_unused(_src)
+#undef lttng_ust__field_unused
+#define lttng_ust__field_unused(_src)
 
 #undef _ctf_enum
 #define _ctf_enum(_provider, _name, _type, _item, _src, _nowrite)      \
index 417765650e7ef74621405eec2d2c367b2fd7271d..690108e89276970d5806d076cae46a697662cdd2 100644 (file)
@@ -30,7 +30,7 @@ LTTNG_UST_TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile_fast, func_entry,
 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_exit,
        LTTNG_UST_TP_ARGS(void *, func_addr),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(func_addr)
+               lttng_ust_field_unused(func_addr)
        )
 )
 
index f3fa0db1a508795557e16614329ec4b230d5861d..2808f76bbf32891493fee9b4f97d9c4b5f3b2cb8 100644 (file)
@@ -27,7 +27,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
                int, flags, uint64_t, memsz, uint8_t, has_build_id,
                uint8_t, has_debug_link),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint64_t, memsz, memsz)
                lttng_ust_field_integer_hex(int, flags, flags)
@@ -44,7 +44,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
                uint64_t, memsz, uint8_t, has_build_id,
                uint8_t, has_debug_link),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint64_t, memsz, memsz)
                lttng_ust_field_integer(Lmid_t, nsid, nsid)
@@ -64,7 +64,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, build_id,
                size_t, build_id_len
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_sequence_hex(uint8_t, build_id, build_id,
                        size_t, build_id_len)
@@ -79,7 +79,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
                uint32_t, crc
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint32_t, crc, crc)
                lttng_ust_field_string(filename, filename)
@@ -89,7 +89,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlclose,
        LTTNG_UST_TP_ARGS(void *, ip, void *, baddr),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
        )
 )
index 8893fdb77ee9316abdf8c46b304e8dba417bf606..56e9a14d7409aa1aeabd9bf91e995cf5a857ff0f 100644 (file)
@@ -21,7 +21,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, malloc,
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_integer(size_t, size, size)
                lttng_ust_field_integer_hex(void *, ptr, ptr)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -29,7 +29,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, free,
        LTTNG_UST_TP_ARGS(void *, ptr, void *, ip),
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_integer_hex(void *, ptr, ptr)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -39,7 +39,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, calloc,
                lttng_ust_field_integer(size_t, nmemb, nmemb)
                lttng_ust_field_integer(size_t, size, size)
                lttng_ust_field_integer_hex(void *, ptr, ptr)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -49,7 +49,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, realloc,
                lttng_ust_field_integer_hex(void *, in_ptr, in_ptr)
                lttng_ust_field_integer(size_t, size, size)
                lttng_ust_field_integer_hex(void *, ptr, ptr)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -59,7 +59,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, memalign,
                lttng_ust_field_integer(size_t, alignment, alignment)
                lttng_ust_field_integer(size_t, size, size)
                lttng_ust_field_integer_hex(void *, ptr, ptr)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -70,7 +70,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_libc, posix_memalign,
                lttng_ust_field_integer(size_t, alignment, alignment)
                lttng_ust_field_integer(size_t, size, size)
                lttng_ust_field_integer(int, result, result)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
index 50b0404085ca39eb3e31eecc0b3bd441e3bf7334..c5d50328d3c565261dbef3fe40e12966e2e687a5 100644 (file)
@@ -20,7 +20,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_req,
        LTTNG_UST_TP_ARGS(pthread_mutex_t *, mutex, void *, ip),
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_integer_hex(void *, mutex, mutex)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -29,7 +29,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_lock_acq,
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_integer_hex(void *, mutex, mutex)
                lttng_ust_field_integer(int, status, status)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -38,7 +38,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_trylock,
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_integer_hex(void *, mutex, mutex)
                lttng_ust_field_integer(int, status, status)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
@@ -47,7 +47,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_pthread, pthread_mutex_unlock,
        LTTNG_UST_TP_FIELDS(
                lttng_ust_field_integer_hex(void *, mutex, mutex)
                lttng_ust_field_integer(int, status, status)
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
        )
 )
 
index a77e3fd0caa73dd2a9bdd3c32b32299b7c5f9d3a..0cad9ad863daf02f2e00f120fdbbe5cb9ffdf972 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, start,
        LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(session)
+               lttng_ust_field_unused(session)
        )
 )
 
@@ -41,7 +41,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, bin_info,
                uint8_t, has_debug_link
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(session)
+               lttng_ust_field_unused(session)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint64_t, memsz, memsz)
                lttng_ust_field_string(path, path)
@@ -59,7 +59,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, build_id,
                size_t, build_id_len
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(session)
+               lttng_ust_field_unused(session)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_sequence_hex(uint8_t, build_id, build_id,
                        size_t, build_id_len)
@@ -74,7 +74,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, debug_link,
                uint32_t, crc
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(session)
+               lttng_ust_field_unused(session)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint32_t, crc, crc)
                lttng_ust_field_string(filename, filename)
@@ -87,7 +87,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, procname,
                char *, name
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(session)
+               lttng_ust_field_unused(session)
                lttng_ust_field_array_text(char, procname, name, LTTNG_UST_ABI_PROCNAME_LEN)
        )
 )
@@ -95,7 +95,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, procname,
 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, end,
        LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(session)
+               lttng_ust_field_unused(session)
        )
 )
 
index ca521a8055930afa6b3cf1a0bdc70cc42789e559..63269f0ba55d22dbfa75a9bf9d8f86eb6fd19902 100644 (file)
@@ -28,7 +28,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, load,
                uint64_t, memsz, uint8_t, has_build_id,
                uint8_t, has_debug_link),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint64_t, memsz, memsz)
                lttng_ust_field_string(path, path)
@@ -45,7 +45,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, build_id,
                size_t, build_id_len
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_sequence_hex(uint8_t, build_id, build_id,
                        size_t, build_id_len)
@@ -60,7 +60,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, debug_link,
                uint32_t, crc
        ),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
                lttng_ust_field_integer(uint32_t, crc, crc)
                lttng_ust_field_string(filename, filename)
@@ -70,7 +70,7 @@ LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, debug_link,
 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, unload,
        LTTNG_UST_TP_ARGS(void *, ip, void *, baddr),
        LTTNG_UST_TP_FIELDS(
-               ctf_unused(ip)
+               lttng_ust_field_unused(ip)
                lttng_ust_field_integer_hex(void *, baddr, baddr)
        )
 )
This page took 0.03558 seconds and 4 git commands to generate.