Add userspace namespace contexts
[deliverable/lttng-ust.git] / liblttng-ust / lttng-tracer-core.h
index 09289c33a42a4f0b0251dfdf8c63e56b64ff3ae0..7afa888dad0fc720193cac8195f9de6b0f228509 100644 (file)
 #include <lttng/ringbuffer-config.h>
 #include <usterr-signal-safe.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;
 struct lttng_event;
+struct lttng_ctx_field;
+struct lttng_ust_lib_ring_buffer_ctx;
+struct lttng_ctx_value;
 
-void ust_lock(void);
+int ust_lock(void) __attribute__ ((warn_unused_result));
+void ust_lock_nocheck(void);
 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_uts_ns_tls(void);
+
+const char *lttng_ust_obj_get_name(int id);
+
+int lttng_get_notify_socket(void *owner);
+
+void lttng_ust_sockinfo_session_enabled(void *owner);
+
+void lttng_ust_malloc_wrapper_init(void);
+
+ssize_t lttng_ust_read(int fd, void *buf, size_t len);
+
+size_t lttng_ust_dummy_get_size(struct lttng_ctx_field *field, size_t offset);
+void lttng_ust_dummy_record(struct lttng_ctx_field *field,
+                struct lttng_ust_lib_ring_buffer_ctx *ctx,
+                struct lttng_channel *chan);
+void lttng_ust_dummy_get_value(struct lttng_ctx_field *field,
+               struct lttng_ctx_value *value);
+int lttng_context_is_app(const char *name);
+void lttng_ust_fixup_tls(void);
 
 #endif /* _LTTNG_TRACER_CORE_H */
This page took 0.024289 seconds and 5 git commands to generate.