X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fbuffer-registry.h;h=c2099b6883c7ff70174431635b33080eb3e4d4b2;hb=6a00837f8cb0431a2ad90974d67fae138ea97dd5;hp=cb976dcdc3db25609bb32838a8abe50266908439;hpb=d9bf3ca437aa801c9364ca06b1083f83c6f8ef30;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/buffer-registry.h b/src/bin/lttng-sessiond/buffer-registry.h index cb976dcdc..c2099b688 100644 --- a/src/bin/lttng-sessiond/buffer-registry.h +++ b/src/bin/lttng-sessiond/buffer-registry.h @@ -43,10 +43,14 @@ struct buffer_reg_channel { uint64_t consumer_key; /* Stream registry object of this channel registry. */ struct cds_list_head streams; + /* Total number of stream in the list. */ + uint64_t stream_count; /* Used to ensure mutual exclusion to the stream's list. */ pthread_mutex_t stream_list_lock; /* Node for hash table usage. */ struct lttng_ht_node_u64 node; + /* Size of subbuffers in this channel. */ + size_t subbuf_size; union { /* Original object data that MUST be copied over. */ struct lttng_ust_object_data *ust;