Refactor: rename lttng_consumer_rotate_channel to lttng_consumer_rotate_sample_channel
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 5 Feb 2019 21:58:11 +0000 (16:58 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 18 Feb 2019 19:25:02 +0000 (14:25 -0500)
lttng_consumer_rotate_channel does not perform a rotation it performs a
sample of the channel. Rename it to reflect this.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/common/consumer/consumer.c
src/common/consumer/consumer.h
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c

index 3d725528a3a8638b54db5d0196a92936c6a44ba6..5772b912731a7abedbc02db455b43807d3fbe2d6 100644 (file)
@@ -3903,7 +3903,7 @@ end:
  *
  * Returns 0 on success, < 0 on error
  */
-int lttng_consumer_rotate_channel(struct lttng_consumer_channel *channel,
+int lttng_consumer_rotate_sample_channel(struct lttng_consumer_channel *channel,
                uint64_t key, const char *path, uint64_t relayd_id,
                uint32_t metadata, uint64_t new_chunk_id,
                struct lttng_consumer_local_data *ctx)
index b940036f6f074ed60cbfeac3daa6f29c1a85095e..a90b3a385e5377ff7fcb3053d63fa0bbb4c689fe 100644 (file)
@@ -834,7 +834,7 @@ void consumer_del_stream_for_data(struct lttng_consumer_stream *stream);
 void consumer_add_metadata_stream(struct lttng_consumer_stream *stream);
 void consumer_del_stream_for_metadata(struct lttng_consumer_stream *stream);
 int consumer_create_index_file(struct lttng_consumer_stream *stream);
-int lttng_consumer_rotate_channel(struct lttng_consumer_channel *channel,
+int lttng_consumer_rotate_sample_channel(struct lttng_consumer_channel *channel,
                uint64_t key, const char *path, uint64_t relayd_id,
                uint32_t metadata, uint64_t new_chunk_id,
                struct lttng_consumer_local_data *ctx);
index 9bed7b55b8114357382f983ecd4ff2ebb63aaa31..b2822721bf6001f87a1845a1dea6bb2dcb81dfd4 100644 (file)
@@ -1093,7 +1093,7 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                        /*
                         * Sample the rotate position of all the streams in this channel.
                         */
-                       ret = lttng_consumer_rotate_channel(channel, key,
+                       ret = lttng_consumer_rotate_sample_channel(channel, key,
                                        msg.u.rotate_channel.pathname,
                                        msg.u.rotate_channel.relayd_id,
                                        msg.u.rotate_channel.metadata,
index b5435c10d681d9240040117fa267c919441701d5..7cd41cbd75cbbd2b3d60be5659be325ddc8773fc 100644 (file)
@@ -1941,7 +1941,7 @@ int lttng_ustconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                         * Sample the rotate position of all the streams in
                         * this channel.
                         */
-                       ret = lttng_consumer_rotate_channel(channel, key,
+                       ret = lttng_consumer_rotate_sample_channel(channel, key,
                                        msg.u.rotate_channel.pathname,
                                        msg.u.rotate_channel.relayd_id,
                                        msg.u.rotate_channel.metadata,
This page took 0.031535 seconds and 5 git commands to generate.