Namespace lttng_context_procname_reset public symbol
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 11 Mar 2021 21:24:46 +0000 (16:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 16 Mar 2021 16:44:10 +0000 (12:44 -0400)
The major SONAME bump to '1' gives us the opportunity to properly
namespace public symbols. Note that this is also an API break.

Change-Id: I9f966ce7f4c112542f602e78a5e4f5c8f0d0f642
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-events.h
liblttng-ust/lttng-context-procname.c
liblttng-ust/lttng-ust-comm.c

index 624af8bb1bc18b37578d9741891ef5bd73a4effd..41dcbaf307d27a068ea970d8dd2e34b0b8deeb42 100644 (file)
@@ -609,9 +609,12 @@ int lttng_ust_probe_register(struct lttng_ust_probe_desc *desc);
 void lttng_ust_probe_unregister(struct lttng_ust_probe_desc *desc);
 
 /*
- * Can be used by applications that change their procname to clear the ust cached value.
+ * Applications that change their procname and need the new value to be
+ * reflected in the procname event context have to call this function to clear
+ * the internally cached value. This should not be called from a signal
+ * handler.
  */
-void lttng_context_procname_reset(void);
+void lttng_ust_context_procname_reset(void);
 
 struct lttng_transport *lttng_transport_find(const char *name);
 
index ec89bd8af336bdaca2de0adc1e9120982e1f19a6..d467b43ca3ee23b4678afb2c124b66ba38ba89e9 100644 (file)
@@ -56,7 +56,7 @@ char *wrapper_getprocname(void)
 }
 
 /* Reset should not be called from a signal handler. */
-void lttng_context_procname_reset(void)
+void lttng_ust_context_procname_reset(void)
 {
        CMM_STORE_SHARED(URCU_TLS(cached_procname)[1][0], '\0');
        CMM_STORE_SHARED(URCU_TLS(procname_nesting), 1);
index fcf2cb1411636e46b76d0c10f54c2086a43d6c52..14046381789b6804bc31a3149d01cd3f10f765b4 100644 (file)
@@ -2444,7 +2444,7 @@ void ust_after_fork_child(sigset_t *restore_sigset)
                return;
        lttng_context_vpid_reset();
        lttng_context_vtid_reset();
-       lttng_context_procname_reset();
+       lttng_ust_context_procname_reset();
        ust_context_ns_reset();
        ust_context_vuids_reset();
        ust_context_vgids_reset();
This page took 0.030423 seconds and 4 git commands to generate.