Tracepoint API namespacing '__tp_provider' and '__tp_name'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 20 Apr 2021 16:16:36 +0000 (12:16 -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: Ic9b1bda1f88a9c5b3384b7fc368effec8c239ee9
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint.h

index 4223579e54ef7aab940d1498188c318cbb8364b9..dbaf795d15a81aba40881a476e4408a2cd665792 100644 (file)
@@ -477,17 +477,17 @@ extern struct lttng_ust_tracepoint * const __stop_lttng_ust_tracepoints_ptrs[]
 #define LTTNG_UST__DEFINE_TRACEPOINT(_provider, _name, _args)                          \
        lttng_ust_tracepoint_validate_name_len(_provider, _name);               \
        extern int lttng_ust_tracepoint_provider_##_provider;                           \
-       static const char __tp_provider_strtab_##_provider##___##_name[]        \
+       static const char lttng_ust_tp_provider_strtab_##_provider##___##_name[]        \
                __attribute__((section("lttng_ust_tracepoints_strings"))) =             \
                        #_provider;                                             \
-       static const char __tp_name_strtab_##_provider##___##_name[]            \
+       static const char lttng_ust_tp_name_strtab_##_provider##___##_name[]            \
                __attribute__((section("lttng_ust_tracepoints_strings"))) =             \
                        #_name;                                                 \
        struct lttng_ust_tracepoint lttng_ust_tracepoint_##_provider##___##_name        \
                __attribute__((section("lttng_ust_tracepoints"))) = {                   \
                        sizeof(struct lttng_ust_tracepoint),                    \
-                       __tp_provider_strtab_##_provider##___##_name,           \
-                       __tp_name_strtab_##_provider##___##_name,               \
+                       lttng_ust_tp_provider_strtab_##_provider##___##_name,           \
+                       lttng_ust_tp_name_strtab_##_provider##___##_name,               \
                        0,                                                      \
                        NULL,                                                   \
                        LTTNG_UST__TRACEPOINT_UNDEFINED_REF(_provider),         \
This page took 0.03846 seconds and 4 git commands to generate.