X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-ust.hpp;h=46a69fe9d5f3105814ecf5853d02100993e80b8d;hp=74b1df60f9d71a3f815154f56b2bed3a3023ed5e;hb=HEAD;hpb=28f23191dcbf047429d51950a337a57d7a3f866a diff --git a/src/bin/lttng-sessiond/trace-ust.hpp b/src/bin/lttng-sessiond/trace-ust.hpp index 74b1df60f..ea84722f1 100644 --- a/src/bin/lttng-sessiond/trace-ust.hpp +++ b/src/bin/lttng-sessiond/trace-ust.hpp @@ -112,9 +112,9 @@ struct ltt_ust_session { /* For per UID buffer, every buffer reg object is kept of this session */ struct cds_list_head buffer_reg_uid_list; /* Next channel ID available for a newly registered channel. */ - uint64_t next_channel_id; - /* Once this value reaches UINT32_MAX, no more id can be allocated. */ - uint64_t used_channel_id; + uint64_t next_event_container_id; + /* Once this value reaches UINT64_MAX, no more id can be allocated. */ + uint64_t used_event_container_id; /* Tell or not if the session has to output the traces. */ unsigned int output_traces; unsigned int snapshot_mode; @@ -160,17 +160,17 @@ static inline int trace_ust_is_max_id(uint64_t id) * the maximum number of IDs have been reached. If not, it is safe to call this * function. * - * Return a unique channel ID. If max is reached, the used_channel_id counter + * Return a unique channel ID. If max is reached, the used_event_container_id counter * is returned. */ -static inline uint64_t trace_ust_get_next_chan_id(struct ltt_ust_session *s) +static inline uint64_t trace_ust_get_next_event_container_id(struct ltt_ust_session *s) { - if (trace_ust_is_max_id(s->used_channel_id)) { - return s->used_channel_id; + if (trace_ust_is_max_id(s->used_event_container_id)) { + return s->used_event_container_id; } - s->used_channel_id++; - return s->next_channel_id++; + s->used_event_container_id++; + return s->next_event_container_id++; } #ifdef HAVE_LIBLTTNG_UST_CTL