From: Julien Desfossez Date: Thu, 14 Dec 2017 15:05:19 +0000 (-0500) Subject: Implement the RELAYD_ROTATE_STREAM relay daemon command X-Git-Tag: v2.11.0-rc1~352 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=d3ecc5503007bc81faa8049fac945f163b6356f3;hp=d3ecc5503007bc81faa8049fac945f163b6356f3;p=lttng-tools.git Implement the RELAYD_ROTATE_STREAM relay daemon command Support for the RELAYD_ROTATE_STREAM command on the relay. This command informs the relay that the current stream must rotate after it has written the data and index for the net_seq_num passed. After each data and index written on disk we check if it is time to rotate (in case it was in flight when the rotate command was received). On the other hand, if too much data has been written when we receive the rotate command, we move the excess data to a new tracefile and truncate the current one. Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau ---