Tracepoint API namespacing '__tracepoint_'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 20 Apr 2021 14:39:07 +0000 (10:39 -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: I2ecc085f05956cedb58f8e3109a746304aef2ec6
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracef.h
include/lttng/tracelog.h
include/lttng/tracepoint.h
include/lttng/ust-tracepoint-event.h
src/lib/lttng-ust-dl/lttng-ust-dl.c
src/lib/lttng-ust-tracepoint/tracepoint-weak-test.c
src/lib/lttng-ust-tracepoint/tracepoint.c
src/lib/lttng-ust/tracef.c
src/lib/lttng-ust/tracelog.c

index 6890027d976c407b5cd86e9180be2665ae67c25c..4526d3d8e2b670cd7b9de5c5d0b29734f4e9f717 100644 (file)
@@ -24,13 +24,13 @@ void _lttng_ust_vtracef(const char *fmt, va_list ap)
 #define tracef(fmt, ...)                                               \
        do {                                                            \
                LTTNG_UST_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
-               if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
+               if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracef___event.state)) \
                        _lttng_ust_tracef(fmt, ## __VA_ARGS__);         \
        } while (0)
 
 #define vtracef(fmt, ap)                                               \
        do {                                                            \
-               if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
+               if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracef___event.state)) \
                        _lttng_ust_vtracef(fmt, ap);            \
        } while (0)
 #ifdef __cplusplus
index d5fd93694b4980c5953909dfce16ed9681aad437..d997f74c24faefdefdabdc9a32261815020c7364 100644 (file)
@@ -44,14 +44,14 @@ TP_TRACELOG_CB_TEMPLATE(TRACE_DEBUG);
 #define tracelog(level, fmt, ...)                                      \
        do {                                                            \
                LTTNG_UST_STAP_PROBEV(tracepoint_lttng_ust_tracelog, level, ## __VA_ARGS__); \
-               if (caa_unlikely(__tracepoint_lttng_ust_tracelog___##level.state)) \
+               if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracelog___##level.state)) \
                        _lttng_ust_tracelog_##level(__FILE__, __LINE__, __func__, \
                                fmt, ## __VA_ARGS__);                   \
        } while (0)
 
 #define vtracelog(level, fmt, ap)                                      \
        do {                                                            \
-               if (caa_unlikely(__tracepoint_lttng_ust_tracelog___##level.state)) \
+               if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracelog___##level.state)) \
                        _lttng_ust_vtracelog_##level(__FILE__, __LINE__, __func__, \
                                fmt, ap);                               \
        } while (0)
index 31cafe4df3be4d5512c787dec2eec896a45e9a77..48781e8ebcf01de30106fa3f78fc52e88f65cf09 100644 (file)
@@ -51,10 +51,10 @@ extern "C" {
 #endif
 
 #define lttng_ust_tracepoint_enabled(provider, name)                           \
-       caa_unlikely(CMM_LOAD_SHARED(__tracepoint_##provider##___##name.state))
+       caa_unlikely(CMM_LOAD_SHARED(lttng_ust_tracepoint_##provider##___##name.state))
 
 #define lttng_ust_do_tracepoint(provider, name, ...)                           \
-       __tracepoint_cb_##provider##___##name(__VA_ARGS__)
+       lttng_ust_tracepoint_cb_##provider##___##name(__VA_ARGS__)
 
 #define lttng_ust_tracepoint(provider, name, ...)                              \
        do {                                                                    \
@@ -182,19 +182,19 @@ extern "C" {
  * address.
  */
 #define LTTNG_UST__DECLARE_TRACEPOINT(_provider, _name, ...)                                   \
-extern struct lttng_ust_tracepoint __tracepoint_##_provider##___##_name;               \
+extern struct lttng_ust_tracepoint lttng_ust_tracepoint_##_provider##___##_name;               \
 static inline                                                                          \
-void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__))              \
+void lttng_ust_tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__))              \
        __attribute__((always_inline, unused)) lttng_ust_notrace;                       \
 static                                                                                 \
-void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__))              \
+void lttng_ust_tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__))              \
 {                                                                                      \
        struct lttng_ust_tracepoint_probe *__tp_probe;                                  \
                                                                                        \
        if (caa_unlikely(!TP_RCU_LINK_TEST()))                                          \
                return;                                                                 \
        tp_rcu_read_lock();                                                             \
-       __tp_probe = tp_rcu_dereference(__tracepoint_##_provider##___##_name.probes);   \
+       __tp_probe = tp_rcu_dereference(lttng_ust_tracepoint_##_provider##___##_name.probes);   \
        if (caa_unlikely(!__tp_probe))                                                  \
                goto end;                                                               \
        do {                                                                            \
@@ -208,30 +208,30 @@ end:                                                                                      \
        tp_rcu_read_unlock();                                                           \
 }                                                                                      \
 static inline                                                                          \
-void __tracepoint_register_##_provider##___##_name(char *provider_name, char *event_name, \
+void lttng_ust_tracepoint_register_##_provider##___##_name(char *provider_name, char *event_name, \
                void (*func)(void), void *data)                                         \
        lttng_ust_notrace;                                                              \
 static inline                                                                          \
-void __tracepoint_register_##_provider##___##_name(char *provider_name, char *event_name, \
+void lttng_ust_tracepoint_register_##_provider##___##_name(char *provider_name, char *event_name, \
                void (*func)(void), void *data)                                         \
 {                                                                                      \
-       __tracepoint_probe_register(provider_name, event_name, func, data,              \
-               __tracepoint_##_provider##___##_name.signature);                        \
+       lttng_ust_tracepoint_probe_register(provider_name, event_name, func, data,              \
+               lttng_ust_tracepoint_##_provider##___##_name.signature);                        \
 }                                                                                      \
 static inline                                                                          \
-void __tracepoint_unregister_##_provider##___##_name(char *provider_name, char *event_name, \
+void lttng_ust_tracepoint_unregister_##_provider##___##_name(char *provider_name, char *event_name, \
                void (*func)(void), void *data)                                         \
        lttng_ust_notrace;                                                              \
 static inline                                                                          \
-void __tracepoint_unregister_##_provider##___##_name(char *provider_name, char *event_name, \
+void lttng_ust_tracepoint_unregister_##_provider##___##_name(char *provider_name, char *event_name, \
                void (*func)(void), void *data)                                         \
 {                                                                                      \
-       __tracepoint_probe_unregister(provider_name, event_name, func, data);           \
+       lttng_ust_tracepoint_probe_unregister(provider_name, event_name, func, data);           \
 }
 
-extern int __tracepoint_probe_register(const char *provider_name, const char *event_name,
+extern int lttng_ust_tracepoint_probe_register(const char *provider_name, const char *event_name,
                void (*func)(void), void *data, const char *signature);
-extern int __tracepoint_probe_unregister(const char *provider_name, const char *event_name,
+extern int lttng_ust_tracepoint_probe_unregister(const char *provider_name, const char *event_name,
                void (*func)(void), void *data);
 
 /*
@@ -269,9 +269,9 @@ extern struct lttng_ust_tracepoint_dlopen *lttng_ust_tracepoint_dlopen_ptr;
  * registering only _one_ instance of the tracepoints per shared-ojbect
  * (or for the whole main program).
  */
-int __tracepoint_registered
+int lttng_ust_tracepoint_registered
        __attribute__((weak, visibility("hidden")));
-int __tracepoint_ptrs_registered
+int lttng_ust_tracepoint_ptrs_registered
        __attribute__((weak, visibility("hidden")));
 struct lttng_ust_tracepoint_dlopen lttng_ust_tracepoint_dlopen
                __attribute__((weak, visibility("hidden"))) = {
@@ -335,10 +335,10 @@ static inline void tracepoint_disable_destructors(void)
 
 #ifndef _LGPL_SOURCE
 static inline void
-__tracepoint__init_urcu_sym(void)
+lttng_ust_tracepoint__init_urcu_sym(void)
        lttng_ust_notrace;
 static inline void
-__tracepoint__init_urcu_sym(void)
+lttng_ust_tracepoint__init_urcu_sym(void)
 {
        if (!lttng_ust_tracepoint_dlopen_ptr)
                lttng_ust_tracepoint_dlopen_ptr = &lttng_ust_tracepoint_dlopen;
@@ -364,10 +364,10 @@ __tracepoint__init_urcu_sym(void)
 }
 #else
 static inline void
-__tracepoint__init_urcu_sym(void)
+lttng_ust_tracepoint__init_urcu_sym(void)
        lttng_ust_notrace;
 static inline void
-__tracepoint__init_urcu_sym(void)
+lttng_ust_tracepoint__init_urcu_sym(void)
 {
 }
 #endif
@@ -378,10 +378,10 @@ __tracepoints__init(void)
 static void
 __tracepoints__init(void)
 {
-       if (__tracepoint_registered++) {
+       if (lttng_ust_tracepoint_registered++) {
                if (!lttng_ust_tracepoint_dlopen_ptr->liblttngust_handle)
                        return;
-               __tracepoint__init_urcu_sym();
+               lttng_ust_tracepoint__init_urcu_sym();
                return;
        }
 
@@ -392,7 +392,7 @@ __tracepoints__init(void)
                        dlopen(LTTNG_UST_TRACEPOINT_LIB_SONAME, RTLD_NOW | RTLD_GLOBAL);
        if (!lttng_ust_tracepoint_dlopen_ptr->liblttngust_handle)
                return;
-       __tracepoint__init_urcu_sym();
+       lttng_ust_tracepoint__init_urcu_sym();
 }
 
 static void
@@ -403,7 +403,7 @@ __tracepoints__destroy(void)
 {
        int ret;
 
-       if (--__tracepoint_registered)
+       if (--lttng_ust_tracepoint_registered)
                return;
        if (!lttng_ust_tracepoint_dlopen_ptr)
                lttng_ust_tracepoint_dlopen_ptr = &lttng_ust_tracepoint_dlopen;
@@ -411,7 +411,7 @@ __tracepoints__destroy(void)
                lttng_ust_tracepoint_destructors_syms_ptr = &lttng_ust_tracepoint_destructors_syms;
        if (!lttng_ust_tracepoint_dlopen_ptr->liblttngust_handle)
                return;
-       if (__tracepoint_ptrs_registered)
+       if (lttng_ust_tracepoint_ptrs_registered)
                return;
        /*
         * Lookup if destructors must be executed using the new method.
@@ -457,7 +457,7 @@ extern struct lttng_ust_tracepoint * const __stop___tracepoints_ptrs[]
 #ifdef TRACEPOINT_PROBE_DYNAMIC_LINKAGE
 #define _TRACEPOINT_UNDEFINED_REF(provider)    NULL
 #else  /* TRACEPOINT_PROBE_DYNAMIC_LINKAGE */
-#define _TRACEPOINT_UNDEFINED_REF(provider)    &__tracepoint_provider_##provider
+#define _TRACEPOINT_UNDEFINED_REF(provider)    &lttng_ust_tracepoint_provider_##provider
 #endif /* TRACEPOINT_PROBE_DYNAMIC_LINKAGE */
 
 /*
@@ -469,14 +469,14 @@ extern struct lttng_ust_tracepoint * const __stop___tracepoints_ptrs[]
 
 #define LTTNG_UST__DEFINE_TRACEPOINT(_provider, _name, _args)                          \
        lttng_ust_tracepoint_validate_name_len(_provider, _name);               \
-       extern int __tracepoint_provider_##_provider;                           \
+       extern int lttng_ust_tracepoint_provider_##_provider;                           \
        static const char __tp_provider_strtab_##_provider##___##_name[]        \
                __attribute__((section("__tracepoints_strings"))) =             \
                        #_provider;                                             \
        static const char __tp_name_strtab_##_provider##___##_name[]            \
                __attribute__((section("__tracepoints_strings"))) =             \
                        #_name;                                                 \
-       struct lttng_ust_tracepoint __tracepoint_##_provider##___##_name        \
+       struct lttng_ust_tracepoint lttng_ust_tracepoint_##_provider##___##_name        \
                __attribute__((section("__tracepoints"))) = {                   \
                        sizeof(struct lttng_ust_tracepoint),                    \
                        __tp_provider_strtab_##_provider##___##_name,           \
@@ -487,10 +487,10 @@ extern struct lttng_ust_tracepoint * const __stop___tracepoints_ptrs[]
                        _TP_EXTRACT_STRING(_args),                              \
                };                                                              \
        static struct lttng_ust_tracepoint *                                    \
-               __tracepoint_ptr_##_provider##___##_name                        \
+               lttng_ust_tracepoint_ptr_##_provider##___##_name                        \
                __attribute__((section("__tracepoints_ptrs"), used))            \
                __lttng_ust_variable_attribute_no_sanitize_address =            \
-                       &__tracepoint_##_provider##___##_name;
+                       &lttng_ust_tracepoint_##_provider##___##_name;
 
 static void
 __tracepoints__ptrs_init(void)
@@ -498,7 +498,7 @@ __tracepoints__ptrs_init(void)
 static void
 __tracepoints__ptrs_init(void)
 {
-       if (__tracepoint_ptrs_registered++)
+       if (lttng_ust_tracepoint_ptrs_registered++)
                return;
        if (!lttng_ust_tracepoint_dlopen_ptr)
                lttng_ust_tracepoint_dlopen_ptr = &lttng_ust_tracepoint_dlopen;
@@ -525,7 +525,7 @@ __tracepoints__ptrs_init(void)
                URCU_FORCE_CAST(int (*)(void),
                                dlsym(lttng_ust_tracepoint_dlopen_ptr->liblttngust_handle,
                                        "tp_get_destructors_state"));
-       __tracepoint__init_urcu_sym();
+       lttng_ust_tracepoint__init_urcu_sym();
        if (lttng_ust_tracepoint_dlopen_ptr->tracepoint_register_lib) {
                lttng_ust_tracepoint_dlopen_ptr->tracepoint_register_lib(__start___tracepoints_ptrs,
                                __stop___tracepoints_ptrs -
@@ -541,7 +541,7 @@ __tracepoints__ptrs_destroy(void)
 {
        int ret;
 
-       if (--__tracepoint_ptrs_registered)
+       if (--lttng_ust_tracepoint_ptrs_registered)
                return;
        if (!lttng_ust_tracepoint_dlopen_ptr)
                lttng_ust_tracepoint_dlopen_ptr = &lttng_ust_tracepoint_dlopen;
@@ -552,7 +552,7 @@ __tracepoints__ptrs_destroy(void)
        if (lttng_ust_tracepoint_dlopen_ptr->liblttngust_handle
                        && lttng_ust_tracepoint_destructors_syms_ptr->tracepoint_get_destructors_state
                        && lttng_ust_tracepoint_destructors_syms_ptr->tracepoint_get_destructors_state()
-                       && !__tracepoint_ptrs_registered) {
+                       && !lttng_ust_tracepoint_ptrs_registered) {
                ret = dlclose(lttng_ust_tracepoint_dlopen_ptr->liblttngust_handle);
                if (ret) {
                        fprintf(stderr, "Error (%d) in dlclose\n", ret);
index 4a6ebc5aa13942d0e3fbfee6402ef67ef8dd4c2f..7a7c07995e06646eafaaad89ccbac78ac804bd1f 100644 (file)
 #include <lttng/ust-tracepoint-event-reset.h>
 
 static inline
-void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void)
+void _TP_COMBINE_TOKENS(lttng_ust_tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void)
        lttng_ust_notrace;
 static inline
-void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void)
+void _TP_COMBINE_TOKENS(lttng_ust_tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void)
 {
 }
 
 #undef LTTNG_UST__TRACEPOINT_EVENT_CLASS
 #define LTTNG_UST__TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields)    \
-       __tracepoint_provider_mismatch_##_provider();
+       lttng_ust_tracepoint_provider_mismatch_##_provider();
 
 #undef LTTNG_UST__TRACEPOINT_EVENT_INSTANCE
 #define LTTNG_UST__TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)       \
-       __tracepoint_provider_mismatch_##_provider();
+       lttng_ust_tracepoint_provider_mismatch_##_provider();
 
 static inline
-void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void)
+void _TP_COMBINE_TOKENS(lttng_ust_tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void)
        lttng_ust_notrace;
 static inline
-void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void)
+void _TP_COMBINE_TOKENS(lttng_ust_tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void)
 {
 #include TRACEPOINT_INCLUDE
 }
@@ -1127,14 +1127,14 @@ _TP_COMBINE_TOKENS(__lttng_ust_events_init__, TRACEPOINT_PROVIDER)(void)
                return;
        }
        /*
-        * __tracepoint_provider_check_ ## TRACEPOINT_PROVIDER() is a
+        * lttng_ust_tracepoint_provider_check_ ## TRACEPOINT_PROVIDER() is a
         * static inline function that ensures every probe PROVIDER
         * argument match the provider within which they appear. It
         * calls empty static inline functions, and therefore has no
         * runtime effect. However, if it detects an error, a linker
         * error will appear.
         */
-       _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)();
+       _TP_COMBINE_TOKENS(lttng_ust_tracepoint_provider_check_, TRACEPOINT_PROVIDER)();
        assert(!_TP_COMBINE_TOKENS(__lttng_ust_probe_register_cookie___, TRACEPOINT_PROVIDER));
        reg_probe = lttng_ust_probe_register(&_TP_COMBINE_TOKENS(__probe_desc___, TRACEPOINT_PROVIDER));
        if (!reg_probe) {
@@ -1158,5 +1158,5 @@ _TP_COMBINE_TOKENS(__lttng_ust_events_exit__, TRACEPOINT_PROVIDER)(void)
        _TP_COMBINE_TOKENS(__lttng_ust_probe_register_cookie___, TRACEPOINT_PROVIDER) = NULL;
 }
 
-int _TP_COMBINE_TOKENS(__tracepoint_provider_, TRACEPOINT_PROVIDER)
+int _TP_COMBINE_TOKENS(lttng_ust_tracepoint_provider_, TRACEPOINT_PROVIDER)
        __attribute__((visibility("default")));
index 8470dfa39cf0b5ff221d741687d8fed5aacdccc4..0f01b356a980b1a36cef78d986591987198c4362 100644 (file)
@@ -207,7 +207,7 @@ void *dlopen(const char *filename, int flags)
        void *handle;
 
        handle = _lttng_ust_dl_libc_dlopen(filename, flags);
-       if (__tracepoint_ptrs_registered && handle) {
+       if (lttng_ust_tracepoint_ptrs_registered && handle) {
                struct link_map *p = NULL;
                int ret;
 
@@ -227,7 +227,7 @@ void *dlmopen(Lmid_t nsid, const char *filename, int flags)
        void *handle;
 
        handle = _lttng_ust_dl_libc_dlmopen(nsid, filename, flags);
-       if (__tracepoint_ptrs_registered && handle) {
+       if (lttng_ust_tracepoint_ptrs_registered && handle) {
                struct link_map *p = NULL;
                int ret;
 
@@ -248,7 +248,7 @@ int dlclose(void *handle)
 {
        int ret;
 
-       if (__tracepoint_ptrs_registered) {
+       if (lttng_ust_tracepoint_ptrs_registered) {
                struct link_map *p = NULL;
 
                ret = dlinfo(handle, RTLD_DI_LINKMAP, &p);
index fcfb5838a2825806334b5ba7166d93edeb6265ee..cd423f71dbfeafa4190ab347ada8ca85f3a56073 100644 (file)
@@ -7,23 +7,23 @@
 #include "lib/lttng-ust-tracepoint/tracepoint.h"
 
 /* Test compiler support for weak symbols with hidden visibility. */
-int __tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));
-void *__tracepoint_test_symbol2 __attribute__((weak, visibility("hidden")));
+int lttng_ust_tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));
+void *lttng_ust_tracepoint_test_symbol2 __attribute__((weak, visibility("hidden")));
 struct {
        char a[24];
-} __tracepoint_test_symbol3 __attribute__((weak, visibility("hidden")));
+} lttng_ust_tracepoint_test_symbol3 __attribute__((weak, visibility("hidden")));
 
 void *lttng_ust_tp_check_weak_hidden1(void)
 {
-       return &__tracepoint_test_symbol1;
+       return &lttng_ust_tracepoint_test_symbol1;
 }
 
 void *lttng_ust_tp_check_weak_hidden2(void)
 {
-       return &__tracepoint_test_symbol2;
+       return &lttng_ust_tracepoint_test_symbol2;
 }
 
 void *lttng_ust_tp_check_weak_hidden3(void)
 {
-       return &__tracepoint_test_symbol3;
+       return &lttng_ust_tracepoint_test_symbol3;
 }
index 939af88872b75daf0bdc2b21502dab0ec1856869..2e9a2c0960761cf5348f063e187d515f78f3449d 100644 (file)
 #include "common/err-ptr.h"
 
 /* Test compiler support for weak symbols with hidden visibility. */
-int __tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));
-void *__tracepoint_test_symbol2 __attribute__((weak, visibility("hidden")));
+int lttng_ust_tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));
+void *lttng_ust_tracepoint_test_symbol2 __attribute__((weak, visibility("hidden")));
 struct {
        char a[24];
-} __tracepoint_test_symbol3 __attribute__((weak, visibility("hidden")));
+} lttng_ust_tracepoint_test_symbol3 __attribute__((weak, visibility("hidden")));
 
 /* Set to 1 to enable tracepoint debug output */
 static const int tracepoint_debug;
@@ -608,7 +608,7 @@ static void tracepoint_release_queue_add_old_probes(void *old)
 }
 
 /**
- * __tracepoint_probe_register -  Connect a probe to a tracepoint
+ * lttng_ust_tracepoint_probe_register -  Connect a probe to a tracepoint
  * @name: tracepoint provider name
  * @name: tracepoint event name
  * @probe: probe handler
@@ -617,7 +617,7 @@ static void tracepoint_release_queue_add_old_probes(void *old)
  * The probe address must at least be aligned on the architecture pointer size.
  * Called with the tracepoint mutex held.
  */
-int __tracepoint_probe_register(const char *provider_name, const char *event_name,
+int lttng_ust_tracepoint_probe_register(const char *provider_name, const char *event_name,
                void (*probe)(void), void *data, const char *signature)
 {
        void *old;
@@ -640,7 +640,7 @@ end:
 }
 
 /*
- * Caller needs to invoke __tracepoint_probe_release_queue() after
+ * Caller needs to invoke lttng_ust_tracepoint_probe_release_queue() after
  * calling lttng_ust_tp_probe_register_queue_release() one or multiple
  * times to ensure it does not leak memory.
  */
@@ -690,7 +690,7 @@ static void *tracepoint_remove_probe(const char *provider_name, const char *even
  * @probe: probe function pointer
  * @probe: probe data pointer
  */
-int __tracepoint_probe_unregister(const char *provider_name, const char *event_name,
+int lttng_ust_tracepoint_probe_unregister(const char *provider_name, const char *event_name,
                void (*probe)(void), void *data)
 {
        void *old;
@@ -712,7 +712,7 @@ end:
 }
 
 /*
- * Caller needs to invoke __tracepoint_probe_release_queue() after
+ * Caller needs to invoke lttng_ust_tracepoint_probe_release_queue() after
  * calling lttng_ust_tp_probe_unregister_queue_release() one or multiple
  * times to ensure it does not leak memory.
  */
@@ -968,15 +968,15 @@ int tracepoint_unregister_lib(struct lttng_ust_tracepoint * const *tracepoints_s
 static void check_weak_hidden(void)
 {
        DBG("Your compiler treats weak symbols with hidden visibility for integer objects as %s between compile units part of the same module.",
-               &__tracepoint_test_symbol1 == lttng_ust_tp_check_weak_hidden1() ?
+               &lttng_ust_tracepoint_test_symbol1 == lttng_ust_tp_check_weak_hidden1() ?
                        "SAME address" :
                        "DIFFERENT addresses");
        DBG("Your compiler treats weak symbols with hidden visibility for pointer objects as %s between compile units part of the same module.",
-               &__tracepoint_test_symbol2 == lttng_ust_tp_check_weak_hidden2() ?
+               &lttng_ust_tracepoint_test_symbol2 == lttng_ust_tp_check_weak_hidden2() ?
                        "SAME address" :
                        "DIFFERENT addresses");
        DBG("Your compiler treats weak symbols with hidden visibility for 24-byte structure objects as %s between compile units part of the same module.",
-               &__tracepoint_test_symbol3 == lttng_ust_tp_check_weak_hidden3() ?
+               &lttng_ust_tracepoint_test_symbol3 == lttng_ust_tp_check_weak_hidden3() ?
                        "SAME address" :
                        "DIFFERENT addresses");
 }
index 3c4ce490511fa3630bb114e6b60d04c193a803be..e48ef802c1cdbddc41aa9e49435e9e1b2d7f64fe 100644 (file)
@@ -24,7 +24,7 @@ void __lttng_ust_vtracef(const char *fmt, va_list ap)
        /* len does not include the final \0 */
        if (len < 0)
                goto end;
-       __tracepoint_cb_lttng_ust_tracef___event(msg, len,
+       lttng_ust_tracepoint_cb_lttng_ust_tracef___event(msg, len,
                LTTNG_UST_CALLER_IP());
        free(msg);
 end:
index 735d04a946baecfb9a8f8b7b1752af7d23a41672..28a3e1acd86cb1d219a9efdca2c64ce5caed5e48 100644 (file)
@@ -30,7 +30,7 @@
                /* len does not include the final \0 */ \
                if (len < 0) \
                        goto end; \
-               __tracepoint_cb_lttng_ust_tracelog___##level(file, \
+               lttng_ust_tracepoint_cb_lttng_ust_tracelog___##level(file, \
                        line, func, msg, len, \
                        LTTNG_UST_CALLER_IP()); \
                free(msg); \
This page took 0.037204 seconds and 4 git commands to generate.