Namespace tracepoint_init and tracepoint_exit
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 10 Mar 2021 22:07:57 +0000 (17:07 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 11 Mar 2021 13:37:36 +0000 (08:37 -0500)
These are ABI symbols of liblttng-ust-tracepoint, namespace them under
'lttng_ust_tp_'.

Change-Id: Ic9fe173cd475179444a2a680e2e3eaba6622cbef
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c
liblttng-ust/tracepoint-internal.h
liblttng-ust/tracepoint.c

index a590268179c485cc11e71bbd95e27dae852573a1..19ce0ceba780b3aa1c1070244e2207544eb7839d 100644 (file)
@@ -2110,7 +2110,7 @@ void __attribute__((constructor)) lttng_ust_init(void)
         */
        ust_err_init();
        lttng_ust_getenv_init();        /* Needs ust_err_init() to be completed. */
-       init_tracepoint();
+       lttng_ust_tp_init();
        lttng_ust_init_fd_tracker();
        lttng_ust_clock_init();
        lttng_ust_getcpu_init();
@@ -2270,7 +2270,7 @@ void lttng_ust_cleanup(int exiting)
        lttng_counter_client_percpu_32_modular_exit();
        lttng_counter_client_percpu_64_modular_exit();
        lttng_ust_statedump_destroy();
-       exit_tracepoint();
+       lttng_ust_tp_exit();
        if (!exiting) {
                /* Reinitialize values for fork */
                sem_count = sem_count_initial_value;
index aeb878a17c3af38f404d9ee3fd718391b3774d16..18705e8b1aef60edb3cc5dd507275705d7476f0c 100644 (file)
@@ -32,8 +32,8 @@ extern int __tracepoint_probe_unregister_queue_release(const char *name,
                void (*func)(void), void *data);
 extern void __tracepoint_probe_prune_release_queue(void);
 
-extern void init_tracepoint(void);
-extern void exit_tracepoint(void);
+void lttng_ust_tp_init(void);
+void lttng_ust_tp_exit(void);
 
 void *lttng_ust_tp_check_weak_hidden1(void);
 void *lttng_ust_tp_check_weak_hidden2(void);
index d84f6a7d85f63dfcfd98fabbef18bdbb0d232f3e..adb3f015c3627766e142d35a1917f426a8560b6d 100644 (file)
@@ -864,7 +864,7 @@ int tracepoint_register_lib(struct lttng_ust_tracepoint * const *tracepoints_sta
 {
        struct tracepoint_lib *pl, *iter;
 
-       init_tracepoint();
+       lttng_ust_tp_init();
 
        pl = (struct tracepoint_lib *) zmalloc(sizeof(struct tracepoint_lib));
        if (!pl) {
@@ -956,7 +956,7 @@ static void check_weak_hidden(void)
                        "DIFFERENT addresses");
 }
 
-void init_tracepoint(void)
+void lttng_ust_tp_init(void)
 {
        if (uatomic_xchg(&initialized, 1) == 1)
                return;
@@ -964,7 +964,7 @@ void init_tracepoint(void)
        check_weak_hidden();
 }
 
-void exit_tracepoint(void)
+void lttng_ust_tp_exit(void)
 {
        initialized = 0;
 }
This page took 0.02868 seconds and 4 git commands to generate.