Refactoring: introduce bytecode runtime private structure
[lttng-ust.git] / liblttng-ust / ust-events-internal.h
index 24b56d3b33f3b7c82d21ea43971b00abb32b8267..536a70d926010446baef6c1a816dbe30e5b2e894 100644 (file)
@@ -165,6 +165,31 @@ struct lttng_counter_transport {
        const struct lib_counter_config *client_config;
 };
 
+struct lttng_ust_event_private {
+       struct lttng_event *pub;        /* Public event interface */
+
+       const struct lttng_event_desc *desc;
+       enum lttng_ust_instrumentation instrumentation;
+       struct cds_list_head node;              /* Event list in session */
+
+       /* Backward references: list of lttng_enabler_ref (ref to enablers) */
+       struct cds_list_head enablers_ref_head;
+       struct cds_hlist_node hlist;    /* session ht of events */
+       int registered;                 /* has reg'd tracepoint probe */
+};
+
+struct lttng_ust_bytecode_runtime_private {
+       struct bytecode_runtime *pub;   /* Public bytecode runtime interface */
+
+       struct lttng_ust_bytecode_node *bc;
+       int link_failed;
+       /*
+        * Pointer to a URCU-protected pointer owned by an `struct
+        * lttng_session`or `struct lttng_event_notifier_group`.
+        */
+       struct lttng_ctx **pctx;
+};
+
 static inline
 struct lttng_enabler *lttng_event_enabler_as_enabler(
                struct lttng_event_enabler *event_enabler)
This page took 0.028413 seconds and 4 git commands to generate.