X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-consumer.c;h=e804f4b5ac74284c1c3b0b9ea23a9317b505649f;hp=c1af765c9ab9821a855666da2613e96d6af16aab;hb=ca03de585e016f441dfe373420545a6fb047531a;hpb=fc5e05b76ff7c5696c51dfa571c1a45dd402dee5 diff --git a/src/bin/lttng-sessiond/ust-consumer.c b/src/bin/lttng-sessiond/ust-consumer.c index c1af765c9..e804f4b5a 100644 --- a/src/bin/lttng-sessiond/ust-consumer.c +++ b/src/bin/lttng-sessiond/ust-consumer.c @@ -57,17 +57,23 @@ static int send_channel(struct consumer_socket *sock, uchan->name, uchan->streams.count); + health_code_update(&health_thread_cmd); + ret = consumer_send_channel(sock, &msg); if (ret < 0) { goto error; } + health_code_update(&health_thread_cmd); + fd = uchan->obj->shm_fd; ret = consumer_send_fds(sock, &fd, 1); if (ret < 0) { goto error; } + health_code_update(&health_thread_cmd); + error: return ret; } @@ -108,6 +114,8 @@ static int send_channel_stream(struct consumer_socket *sock, pathname, usess->id); + health_code_update(&health_thread_cmd); + /* Send stream and file descriptor */ fds[0] = stream->obj->shm_fd; fds[1] = stream->obj->wait_fd; @@ -116,6 +124,8 @@ static int send_channel_stream(struct consumer_socket *sock, goto error; } + health_code_update(&health_thread_cmd); + error: return ret; } @@ -220,11 +230,15 @@ static int send_metadata(struct consumer_socket *sock, "metadata", 1); + health_code_update(&health_thread_cmd); + ret = consumer_send_channel(sock, &msg); if (ret < 0) { goto error; } + health_code_update(&health_thread_cmd); + /* Sending metadata shared memory fd */ fd = usess->metadata->obj->shm_fd; ret = consumer_send_fds(sock, &fd, 1); @@ -232,6 +246,8 @@ static int send_metadata(struct consumer_socket *sock, goto error; } + health_code_update(&health_thread_cmd); + /* Get correct path name destination */ if (consumer->type == CONSUMER_DST_LOCAL) { /* Set application path to the destination path */ @@ -277,6 +293,8 @@ static int send_metadata(struct consumer_socket *sock, pathname, usess->id); + health_code_update(&health_thread_cmd); + /* Send stream and file descriptor */ fds[0] = usess->metadata->stream_obj->shm_fd; fds[1] = usess->metadata->stream_obj->wait_fd; @@ -285,6 +303,8 @@ static int send_metadata(struct consumer_socket *sock, goto error; } + health_code_update(&health_thread_cmd); + error: return ret; }