Refactoring: struct lttng_event_desc and lttng_probe_desc
[lttng-ust.git] / liblttng-ust / lttng-tracer-core.h
index efb4f5b6764b4f5ec49b92136da838fe306ada6a..e9d5622fcb6f2f5eb2dc256975b0395d80262e50 100644 (file)
@@ -16,7 +16,7 @@
 #include <lttng/bug.h>
 #include <lttng/ringbuffer-config.h>
 #include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
 
 /*
  * The longuest possible namespace proc path is with the cgroup ns
@@ -32,51 +32,65 @@ struct lttng_event;
 struct lttng_ctx_field;
 struct lttng_ust_lib_ring_buffer_ctx;
 struct lttng_ctx_value;
-struct lttng_event_notifier;
+struct lttng_ust_event_notifier;
 
+LTTNG_HIDDEN
 int ust_lock(void) __attribute__ ((warn_unused_result));
+LTTNG_HIDDEN
 void ust_lock_nocheck(void);
+LTTNG_HIDDEN
 void ust_unlock(void);
 
+LTTNG_HIDDEN
+void lttng_ust_fixup_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_event_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_vtid_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_procname_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_cgroup_ns_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_ipc_ns_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_net_ns_tls(void);
 LTTNG_HIDDEN
 void lttng_fixup_time_ns_tls(void);
+LTTNG_HIDDEN
 void lttng_fixup_uts_ns_tls(void);
 
+LTTNG_HIDDEN
+void lttng_ust_fixup_fd_tracker_tls(void);
+
+LTTNG_HIDDEN
 const char *lttng_ust_obj_get_name(int id);
 
+LTTNG_HIDDEN
 int lttng_get_notify_socket(void *owner);
 
 LTTNG_HIDDEN
 char* lttng_ust_sockinfo_get_procname(void *owner);
 
+LTTNG_HIDDEN
 void lttng_ust_sockinfo_session_enabled(void *owner);
 
-void lttng_ust_malloc_wrapper_init(void);
-
+LTTNG_HIDDEN
 ssize_t lttng_ust_read(int fd, void *buf, size_t len);
 
+LTTNG_HIDDEN
 size_t lttng_ust_dummy_get_size(struct lttng_ctx_field *field, size_t offset);
+LTTNG_HIDDEN
 void lttng_ust_dummy_record(struct lttng_ctx_field *field,
                 struct lttng_ust_lib_ring_buffer_ctx *ctx,
                 struct lttng_channel *chan);
+LTTNG_HIDDEN
 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);
-
-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,
+               struct lttng_ust_event_notifier *event_notifier,
                const char *stack_data);
 
 LTTNG_HIDDEN
@@ -86,11 +100,14 @@ void lttng_counter_transport_register(struct lttng_counter_transport *transport)
 LTTNG_HIDDEN
 void lttng_counter_transport_unregister(struct lttng_counter_transport *transport);
 
-#ifdef LTTNG_UST_HAVE_PERF_EVENT
+#ifdef HAVE_PERF_EVENT
+LTTNG_HIDDEN
 void lttng_ust_fixup_perf_counter_tls(void);
+LTTNG_HIDDEN
 void lttng_perf_lock(void);
+LTTNG_HIDDEN
 void lttng_perf_unlock(void);
-#else /* #ifdef LTTNG_UST_HAVE_PERF_EVENT */
+#else /* #ifdef HAVE_PERF_EVENT */
 static inline
 void lttng_ust_fixup_perf_counter_tls(void)
 {
@@ -103,6 +120,6 @@ static inline
 void lttng_perf_unlock(void)
 {
 }
-#endif /* #else #ifdef LTTNG_UST_HAVE_PERF_EVENT */
+#endif /* #else #ifdef HAVE_PERF_EVENT */
 
 #endif /* _LTTNG_TRACER_CORE_H */
This page took 0.02374 seconds and 4 git commands to generate.