Rename struct lttng_metadata_stream list field to node
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 27 Jan 2022 19:24:10 +0000 (14:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 15 Jul 2024 20:58:48 +0000 (16:58 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Iaefccfd27d18cbb90726f6b77400409eeea493d0

include/lttng/events-internal.h
src/lttng-abi.c
src/lttng-events.c

index fb9830cf7723bfb43848598cf77374961e5a23bb..092e7c70e53655b68452b88cc5c994ca8f7f6b4b 100644 (file)
@@ -380,7 +380,7 @@ struct lttng_metadata_stream {
        unsigned int metadata_out;      /* Bytes consumed from stream */
        int finalized;                  /* Has channel been finalized */
        wait_queue_head_t read_wait;    /* Reader buffer-level wait queue */
-       struct list_head list;          /* Stream list */
+       struct list_head node;          /* Stream list */
        struct lttng_transport *transport;
        uint64_t version;               /* Current version of the metadata cache */
        bool coherent;                  /* Stream in a coherent state */
index afc024ed60290cc6e4f13d764da121691758193d..36dbddde4eb53424b42a0d20fdc8db18dd977fe9 100644 (file)
@@ -1551,7 +1551,7 @@ int lttng_metadata_ring_buffer_release(struct inode *inode, struct file *file)
        struct lttng_kernel_ring_buffer *buf = stream->priv;
 
        mutex_lock(&stream->metadata_cache->lock);
-       list_del(&stream->list);
+       list_del(&stream->node);
        mutex_unlock(&stream->metadata_cache->lock);
        kref_put(&stream->metadata_cache->refcount, metadata_cache_destroy);
        module_put(stream->transport->owner);
@@ -1709,7 +1709,7 @@ int lttng_abi_open_metadata_stream(struct file *channel_file)
                goto fd_error;
 
        mutex_lock(&session->priv->metadata_cache->lock);
-       list_add(&metadata_stream->list,
+       list_add(&metadata_stream->node,
                &session->priv->metadata_cache->metadata_stream);
        mutex_unlock(&session->priv->metadata_cache->lock);
        return ret;
index e3fa5daa9232956774d529effe545dc3e2855af8..2f07ebc129231eb20f16b0b441371673ad686867 100644 (file)
@@ -375,7 +375,7 @@ void lttng_session_destroy(struct lttng_kernel_session *session)
                _lttng_channel_destroy(chan_priv->pub);
        }
        mutex_lock(&session->priv->metadata_cache->lock);
-       list_for_each_entry(metadata_stream, &session->priv->metadata_cache->metadata_stream, list)
+       list_for_each_entry(metadata_stream, &session->priv->metadata_cache->metadata_stream, node)
                _lttng_metadata_channel_hangup(metadata_stream);
        mutex_unlock(&session->priv->metadata_cache->lock);
        lttng_id_tracker_fini(&session->pid_tracker);
@@ -548,7 +548,7 @@ int lttng_session_metadata_regenerate(struct lttng_kernel_session *session)
        memset(cache->data, 0, cache->cache_alloc);
        cache->metadata_written = 0;
        cache->version++;
-       list_for_each_entry(stream, &session->priv->metadata_cache->metadata_stream, list) {
+       list_for_each_entry(stream, &session->priv->metadata_cache->metadata_stream, node) {
                stream->metadata_out = 0;
                stream->metadata_in = 0;
        }
@@ -2788,7 +2788,7 @@ void lttng_metadata_end(struct lttng_kernel_session *session)
        if (atomic_dec_return(&session->priv->metadata_cache->producing) == 0) {
                struct lttng_metadata_stream *stream;
 
-               list_for_each_entry(stream, &session->priv->metadata_cache->metadata_stream, list)
+               list_for_each_entry(stream, &session->priv->metadata_cache->metadata_stream, node)
                        wake_up_interruptible(&stream->read_wait);
                mutex_unlock(&session->priv->metadata_cache->lock);
        }
This page took 0.031002 seconds and 4 git commands to generate.