Fix: lttng perf counter deadlock
[lttng-ust.git] / liblttng-ust / lttng-tracer-core.h
index 7d9beaaf92ca70ae0e48eb317f718ff759e93aee..f750f4b01e89a32e7c2237da8847e1c9e42ce98f 100644 (file)
@@ -33,6 +33,9 @@
 struct lttng_session;
 struct lttng_channel;
 struct lttng_event;
+struct lttng_ctx_field;
+struct lttng_ust_lib_ring_buffer_ctx;
+struct lttng_ctx_value;
 
 int ust_lock(void) __attribute__ ((warn_unused_result));
 void ust_lock_nocheck(void);
@@ -52,4 +55,32 @@ 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);
+
+#ifdef LTTNG_UST_HAVE_PERF_EVENT
+void lttng_ust_fixup_perf_counter_tls(void);
+void lttng_perf_lock(void);
+void lttng_perf_unlock(void);
+#else /* #ifdef LTTNG_UST_HAVE_PERF_EVENT */
+static inline
+void lttng_ust_fixup_perf_counter_tls(void)
+{
+}
+static inline
+void lttng_perf_lock(void)
+{
+}
+static inline
+void lttng_perf_unlock(void)
+{
+}
+#endif /* #else #ifdef LTTNG_UST_HAVE_PERF_EVENT */
+
 #endif /* _LTTNG_TRACER_CORE_H */
This page took 0.022587 seconds and 4 git commands to generate.