ring buffer context: cpu number becomes an output of reserve
[lttng-ust.git] / liblttng-ust / ust-events-internal.h
index ec409457deb8f27086f8518b218865c029337bcc..d0facc1e241ce18765a5796cd5e36d70fd741904 100644 (file)
@@ -251,7 +251,7 @@ struct lttng_event_notifier_group {
 struct lttng_transport {
        char *name;
        struct cds_list_head node;
-       struct lttng_ust_channel_ops ops;
+       struct lttng_ust_channel_buffer_ops ops;
        const struct lttng_ust_lib_ring_buffer_config *client_config;
 };
 
@@ -295,7 +295,6 @@ struct lttng_ust_event_notifier_private {
        struct cds_list_head node;              /* Event notifier list */
        struct cds_hlist_node hlist;            /* Hash table of event notifiers */
        struct cds_list_head capture_bytecode_runtime_head;
-
 };
 
 struct lttng_ust_bytecode_runtime {
@@ -333,6 +332,9 @@ struct lttng_ust_session_private {
        struct lttng_ust_enum_ht enums_ht;      /* ht of enumerations */
        struct cds_list_head enums_head;
        struct lttng_ust_ctx *ctx;              /* contexts for filters. */
+
+       unsigned char uuid[LTTNG_UST_UUID_LEN]; /* Trace session unique ID */
+       bool uuid_set;                          /* Is uuid set ? */
 };
 
 struct lttng_enum {
@@ -345,8 +347,8 @@ struct lttng_enum {
 
 struct lttng_ust_shm_handle;
 
-struct lttng_ust_channel_ops_private {
-       struct lttng_ust_channel_ops *pub;      /* Public channels ops interface */
+struct lttng_ust_channel_buffer_ops_private {
+       struct lttng_ust_channel_buffer_ops *pub;       /* Public channel buffer ops interface */
 
        struct lttng_ust_channel_buffer *(*channel_create)(const char *name,
                        void *buf_addr,
@@ -752,7 +754,7 @@ struct lttng_counter *lttng_ust_counter_create(
                const char *counter_transport_name,
                size_t number_dimensions, const struct lttng_counter_dimension *dimensions);
 
-#ifdef HAVE_PERF_EVENT
+#ifdef HAVE_LINUX_PERF_EVENT_H
 
 __attribute__((visibility("hidden")))
 int lttng_add_perf_counter_to_ctx(uint32_t type,
@@ -766,7 +768,7 @@ int lttng_perf_counter_init(void);
 __attribute__((visibility("hidden")))
 void lttng_perf_counter_exit(void);
 
-#else /* #ifdef HAVE_PERF_EVENT */
+#else /* #ifdef HAVE_LINUX_PERF_EVENT_H */
 
 static inline
 int lttng_add_perf_counter_to_ctx(uint32_t type,
@@ -785,7 +787,7 @@ static inline
 void lttng_perf_counter_exit(void)
 {
 }
-#endif /* #else #ifdef HAVE_PERF_EVENT */
+#endif /* #else #ifdef HAVE_LINUX_PERF_EVENT_H */
 
 __attribute__((visibility("hidden")))
 int lttng_probes_get_event_list(struct lttng_ust_tracepoint_list *list);
@@ -894,4 +896,8 @@ int lttng_ust_interpret_event_filter(struct lttng_ust_event_common *event,
                const char *interpreter_stack_data,
                void *filter_ctx);
 
+__attribute__((visibility("hidden")))
+int lttng_ust_session_uuid_validate(struct lttng_ust_session *session,
+               unsigned char *uuid);
+
 #endif /* _LTTNG_UST_EVENTS_INTERNAL_H */
This page took 0.026115 seconds and 4 git commands to generate.