API cleanup: Remove handle from struct lttng_ust_channel_buffer
[lttng-ust.git] / liblttng-ust / lttng-tracer-core.h
index efb4f5b6764b4f5ec49b92136da838fe306ada6a..668d2a8966676cc334f5e418f5cfa8f77ea0fcab 100644 (file)
 #include <urcu/arch.h>
 #include <urcu/list.h>
 #include <lttng/ust-tracer.h>
-#include <lttng/bug.h>
-#include <lttng/ringbuffer-config.h>
+#include <lttng/ringbuffer-context.h>
 #include <usterr-signal-safe.h>
-#include <helper.h>
 
 /*
  * The longuest possible namespace proc path is with the cgroup ns
  */
 #define LTTNG_PROC_NS_PATH_MAX 40
 
-struct lttng_session;
-struct lttng_channel;
-struct lttng_event;
-struct lttng_ctx_field;
+struct lttng_ust_session;
+struct lttng_ust_channel_buffer;
+struct lttng_ust_ctx_field;
 struct lttng_ust_lib_ring_buffer_ctx;
-struct lttng_ctx_value;
-struct lttng_event_notifier;
+struct lttng_ust_ctx_value;
+struct lttng_ust_event_recorder;
+struct lttng_ust_event_notifier;
+struct lttng_ust_notification_ctx;
 
+__attribute__((visibility("hidden")))
 int ust_lock(void) __attribute__ ((warn_unused_result));
+
+__attribute__((visibility("hidden")))
 void ust_lock_nocheck(void);
+
+__attribute__((visibility("hidden")))
 void ust_unlock(void);
 
+__attribute__((visibility("hidden")))
+void lttng_ust_fixup_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_event_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_vtid_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_procname_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_cgroup_ns_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_ipc_ns_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_net_ns_tls(void);
-LTTNG_HIDDEN
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_time_ns_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_fixup_uts_ns_tls(void);
 
+__attribute__((visibility("hidden")))
+void lttng_ust_fixup_fd_tracker_tls(void);
+
+__attribute__((visibility("hidden")))
 const char *lttng_ust_obj_get_name(int id);
 
+__attribute__((visibility("hidden")))
 int lttng_get_notify_socket(void *owner);
 
-LTTNG_HIDDEN
+__attribute__((visibility("hidden")))
 char* lttng_ust_sockinfo_get_procname(void *owner);
 
+__attribute__((visibility("hidden")))
 void lttng_ust_sockinfo_session_enabled(void *owner);
 
-void lttng_ust_malloc_wrapper_init(void);
-
+__attribute__((visibility("hidden")))
 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);
+__attribute__((visibility("hidden")))
+size_t lttng_ust_dummy_get_size(struct lttng_ust_ctx_field *field, size_t offset);
 
-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);
+__attribute__((visibility("hidden")))
+void lttng_ust_dummy_record(struct lttng_ust_ctx_field *field,
+                struct lttng_ust_lib_ring_buffer_ctx *ctx,
+                struct lttng_ust_channel_buffer *chan);
+__attribute__((visibility("hidden")))
+void lttng_ust_dummy_get_value(struct lttng_ust_ctx_field *field,
+               struct lttng_ust_ctx_value *value);
 
-LTTNG_HIDDEN
+__attribute__((visibility("hidden")))
 void lttng_event_notifier_notification_send(
-               struct lttng_event_notifier *event_notifier,
-               const char *stack_data);
+               struct lttng_ust_event_notifier *event_notifier,
+               const char *stack_data,
+               struct lttng_ust_notification_ctx *notif_ctx);
 
-LTTNG_HIDDEN
+__attribute__((visibility("hidden")))
 struct lttng_counter_transport *lttng_counter_transport_find(const char *name);
-LTTNG_HIDDEN
+
+__attribute__((visibility("hidden")))
 void lttng_counter_transport_register(struct lttng_counter_transport *transport);
-LTTNG_HIDDEN
+
+__attribute__((visibility("hidden")))
 void lttng_counter_transport_unregister(struct lttng_counter_transport *transport);
 
-#ifdef LTTNG_UST_HAVE_PERF_EVENT
+#ifdef HAVE_LINUX_PERF_EVENT_H
+__attribute__((visibility("hidden")))
 void lttng_ust_fixup_perf_counter_tls(void);
+
+__attribute__((visibility("hidden")))
 void lttng_perf_lock(void);
+
+__attribute__((visibility("hidden")))
 void lttng_perf_unlock(void);
-#else /* #ifdef LTTNG_UST_HAVE_PERF_EVENT */
+#else /* #ifdef HAVE_LINUX_PERF_EVENT_H */
 static inline
 void lttng_ust_fixup_perf_counter_tls(void)
 {
@@ -103,6 +135,6 @@ static inline
 void lttng_perf_unlock(void)
 {
 }
-#endif /* #else #ifdef LTTNG_UST_HAVE_PERF_EVENT */
+#endif /* #else #ifdef HAVE_LINUX_PERF_EVENT_H */
 
 #endif /* _LTTNG_TRACER_CORE_H */
This page took 0.024401 seconds and 4 git commands to generate.