X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flttng-relayd.h;h=2a442b0952cbb4b14870434a78f0f0aa3253c105;hb=46e6455f9dbe3bbe9b39f9e7b55dde228f6e3dbd;hp=8bbc279c3a61f993f322988935b1847976e9ccf0;hpb=7717e3612c10d85507abc47fbde262d39edfb8b4;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/lttng-relayd.h b/src/bin/lttng-relayd/lttng-relayd.h index 8bbc279c3..2a442b095 100644 --- a/src/bin/lttng-relayd/lttng-relayd.h +++ b/src/bin/lttng-relayd/lttng-relayd.h @@ -42,7 +42,6 @@ enum connection_type { struct relay_session { uint64_t id; struct lttcomm_sock *sock; - unsigned int version_check_done:1; }; /* @@ -50,10 +49,15 @@ struct relay_session { */ struct relay_stream { uint64_t stream_handle; - uint64_t seq; + uint64_t prev_seq; /* previous data sequence number encountered */ struct lttng_ht_node_ulong stream_n; struct relay_session *session; + struct rcu_head rcu_node; int fd; + + /* Information telling us when to close the stream */ + unsigned int close_flag:1; + uint64_t last_net_seq_num; }; /* @@ -65,7 +69,9 @@ struct relay_command { struct relay_session *session; struct cds_wfq_node node; struct lttng_ht_node_ulong sock_n; + struct rcu_head rcu_node; enum connection_type type; + unsigned int version_check_done:1; }; #endif /* LTTNG_RELAYD_H */