Fix: event notifier: notification send should be a callback
[deliverable/lttng-ust.git] / liblttng-ust / lttng-tracer-core.h
index f750f4b01e89a32e7c2237da8847e1c9e42ce98f..f464d87a6e10eeee486812fad52cae6dbb821ac5 100644 (file)
@@ -21,7 +21,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <stdint.h>
 #include <stddef.h>
 #include <urcu/arch.h>
 #include <urcu/list.h>
 #include <lttng/bug.h>
 #include <lttng/ringbuffer-config.h>
 #include <usterr-signal-safe.h>
+#include <helper.h>
+
+/*
+ * The longuest possible namespace proc path is with the cgroup ns
+ * and the maximum theoretical linux pid of 536870912 :
+ *
+ *  /proc/self/task/536870912/ns/cgroup
+ */
+#define LTTNG_PROC_NS_PATH_MAX 40
 
 struct lttng_session;
 struct lttng_channel;
@@ -44,11 +52,19 @@ void ust_unlock(void);
 void lttng_fixup_event_tls(void);
 void lttng_fixup_vtid_tls(void);
 void lttng_fixup_procname_tls(void);
+void lttng_fixup_cgroup_ns_tls(void);
+void lttng_fixup_ipc_ns_tls(void);
+void lttng_fixup_net_ns_tls(void);
+void lttng_fixup_time_ns_tls(void);
+void lttng_fixup_uts_ns_tls(void);
 
 const char *lttng_ust_obj_get_name(int id);
 
 int lttng_get_notify_socket(void *owner);
 
+LTTNG_HIDDEN
+char* lttng_ust_sockinfo_get_procname(void *owner);
+
 void lttng_ust_sockinfo_session_enabled(void *owner);
 
 void lttng_ust_malloc_wrapper_init(void);
@@ -64,6 +80,15 @@ void lttng_ust_dummy_get_value(struct lttng_ctx_field *field,
 int lttng_context_is_app(const char *name);
 void lttng_ust_fixup_tls(void);
 
+extern void (*lttng_ust_liburcu_bp_before_fork)(void);
+extern void (*lttng_ust_liburcu_bp_after_fork_parent)(void);
+extern void (*lttng_ust_liburcu_bp_after_fork_child)(void);
+
+LTTNG_HIDDEN
+void lttng_event_notifier_notification_send(
+               struct lttng_event_notifier *event_notifier,
+               const char *stack_data);
+
 #ifdef LTTNG_UST_HAVE_PERF_EVENT
 void lttng_ust_fixup_perf_counter_tls(void);
 void lttng_perf_lock(void);
This page took 0.02674 seconds and 5 git commands to generate.