X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fconsumer.h;h=ab36a685c448de22e4645752d7e4beb69b567aba;hp=2eb9d7433455f8156d83678029628ab7a969c41c;hb=37278a1e7efe00011260569fa90909601e8c5184;hpb=00e2e675d54dc726a7c8f8887c889cc8ef022003 diff --git a/src/bin/lttng-sessiond/consumer.h b/src/bin/lttng-sessiond/consumer.h index 2eb9d7433..ab36a685c 100644 --- a/src/bin/lttng-sessiond/consumer.h +++ b/src/bin/lttng-sessiond/consumer.h @@ -23,6 +23,8 @@ #include #include +#include "health.h" + enum consumer_dst_type { CONSUMER_DST_LOCAL, CONSUMER_DST_NET, @@ -44,6 +46,9 @@ struct consumer_data { /* consumer error and command Unix socket path */ char err_unix_sock_path[PATH_MAX]; char cmd_unix_sock_path[PATH_MAX]; + + /* Health check of the thread */ + struct health_state health; }; /* @@ -103,6 +108,10 @@ int consumer_send_fds(int sock, int *fds, size_t nb_fd); int consumer_send_stream(int sock, struct consumer_output *dst, struct lttcomm_consumer_msg *msg, int *fds, size_t nb_fd); int consumer_send_channel(int sock, struct lttcomm_consumer_msg *msg); +int consumer_send_relayd_socket(int consumer_sock, + struct lttcomm_sock *sock, struct consumer_output *consumer, + enum lttng_stream_type type); + void consumer_init_stream_comm_msg(struct lttcomm_consumer_msg *msg, enum lttng_consumer_command cmd, int channel_key,