X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Frelayd.h;h=1fc48c442b4e52b68391683fd3a3f392ce3eb038;hb=eded6438f3b15eccc391525f653e03293a890d32;hp=f6ba15abef6b78a725e2f4f60257f34080f05521;hpb=ba86d0a7f267c4a00c2e8d38ae569b7c32c415ed;p=lttng-tools.git diff --git a/src/common/sessiond-comm/relayd.h b/src/common/sessiond-comm/relayd.h index f6ba15abe..1fc48c442 100644 --- a/src/common/sessiond-comm/relayd.h +++ b/src/common/sessiond-comm/relayd.h @@ -19,15 +19,12 @@ #ifndef _RELAYD_COMM #define _RELAYD_COMM -#define _GNU_SOURCE - #include #include #include #include #include -#include #define RELAYD_VERSION_COMM_MAJOR VERSION_MAJOR #define RELAYD_VERSION_COMM_MINOR VERSION_MINOR @@ -162,6 +159,8 @@ struct lttcomm_relayd_index { uint64_t timestamp_end; uint64_t events_discarded; uint64_t stream_id; + uint64_t stream_instance_id; + uint64_t packet_seq_num; } LTTNG_PACKED; /* @@ -174,4 +173,13 @@ struct lttcomm_relayd_create_session_2_4 { uint32_t snapshot; } LTTNG_PACKED; +/* + * Used to ask the relay to reset the metadata trace file (regeneration). + * Send the new version of the metadata (starts at 0). + */ +struct lttcomm_relayd_reset_metadata { + uint64_t stream_id; + uint64_t version; +} LTTNG_PACKED; + #endif /* _RELAYD_COMM */