+struct buffer_reg_map {
+ /* This key is the same as a tracing map key. */
+ uint32_t key;
+ /* Per cpu counter registry object of this map registry. */
+ struct cds_list_head counters;
+ /* Total number of stream in the list. */
+ uint64_t counter_count;
+ /* Used to ensure mutual exclusion to the counter's list. */
+ pthread_mutex_t counter_list_lock;
+ /* Node for hash table usage. */
+ struct lttng_ht_node_u64 node;
+ union {
+ /* Original object data that MUST be copied over. */
+ struct lttng_ust_object_data *ust;
+ } obj;
+
+ struct ustctl_daemon_counter *daemon_counter;
+};
+