Backport: Relayd: introduce --group-output-by-session
[lttng-tools.git] / src / bin / lttng-relayd / cmd-2-2.c
index 5ff6280509a2119291df7065a01af7d2d5bd1122..70415d7bb0c5dc8d29c72740dc555951edc535c8 100644 (file)
@@ -35,7 +35,8 @@
  */
 int cmd_recv_stream_2_2(const struct lttng_buffer_view *payload,
                char **ret_path_name, char **ret_channel_name,
-               uint64_t *tracefile_size, uint64_t *tracefile_count)
+               uint64_t *tracefile_size, uint64_t *tracefile_count,
+               struct relay_session *session)
 {
        int ret;
        struct lttcomm_relayd_add_stream_2_2 stream_info;
@@ -58,7 +59,7 @@ int cmd_recv_stream_2_2(const struct lttng_buffer_view *payload,
                ERR("Path name too long");
                goto error;
        }
-       path_name = create_output_path(stream_info.pathname);
+       path_name = create_output_path(stream_info.pathname, session->session_name);
        if (!path_name) {
                PERROR("Path name allocation");
                ret = -ENOMEM;
This page took 0.024838 seconds and 5 git commands to generate.