trace-ust: Rename `{next, used}_channel_id` to `{next, used}_event_container_id`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 18 Jun 2021 16:23:35 +0000 (12:23 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jun 2023 14:10:05 +0000 (10:10 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Idb07462c15cbebaf37a244ad76a32e893ecbab0c

src/bin/lttng-sessiond/channel.cpp
src/bin/lttng-sessiond/trace-ust.hpp

index 65bdd361d278b6dc96ac657f953ca2ab9b9da2ee..4e5401295ed43f9d36d87b2e29a78b4f2ca52b72 100644 (file)
@@ -427,11 +427,12 @@ enum lttng_error_code channel_ust_create(struct ltt_ust_session *usess,
        }
 
        uchan->enabled = true;
-       if (trace_ust_is_max_id(usess->used_channel_id)) {
+       if (trace_ust_is_max_id(usess->used_event_container_id)) {
                ret_code = LTTNG_ERR_UST_CHAN_FAIL;
                goto error;
        }
-       uchan->id = trace_ust_get_next_chan_id(usess);
+
+       uchan->id = trace_ust_get_next_event_container_id(usess);
 
        DBG2("Channel %s is being created for UST with buffer %d and id %" PRIu64,
             uchan->name,
index 74b1df60f9d71a3f815154f56b2bed3a3023ed5e..ea84722f1dbe407ff0777c1335bd8e1670de9330 100644 (file)
@@ -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
This page took 0.026606 seconds and 4 git commands to generate.