Refactor event notifier structure
[lttng-ust.git] / liblttng-ust / ust-events-internal.h
index f574be60c1317d5b631d6d30b175a3290a219da3..613dfabb49f3b9fda0f76b3eb2b704664d1b4394 100644 (file)
@@ -172,6 +172,7 @@ struct lttng_ust_event_common_private {
        /* Backward references: list of lttng_enabler_ref (ref to enablers) */
        struct cds_list_head enablers_ref_head;
        int registered;                 /* has reg'd tracepoint probe */
+       uint64_t user_token;
 };
 
 struct lttng_ust_event_recorder_private {
@@ -182,6 +183,17 @@ struct lttng_ust_event_recorder_private {
        struct cds_hlist_node hlist;            /* session ht of events */
 };
 
+struct lttng_ust_event_notifier_private {
+       struct lttng_ust_event_common_private parent;
+
+       struct lttng_event_notifier *pub;       /* Public event notifier interface */
+       struct cds_hlist_node hlist;            /* hashtable of event_notifiers */
+       struct cds_list_head node;              /* event_notifier list in session */
+       struct lttng_event_notifier_group *group; /* weak ref */
+       size_t num_captures;                    /* Needed to allocate the msgpack array. */
+       uint64_t error_counter_index;
+};
+
 struct lttng_ust_bytecode_runtime_private {
        struct bytecode_runtime *pub;   /* Public bytecode runtime interface */
 
This page took 0.023284 seconds and 4 git commands to generate.