From: Jonathan Rajotte Date: Thu, 19 Sep 2019 20:56:53 +0000 (-0400) Subject: relayd: Add backward compatibility for --group-output-by-session X-Git-Tag: v2.12.0-rc1~249 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=2a635488acf0c56ffb9b66c57f6bf97a95c53be6;hp=2a635488acf0c56ffb9b66c57f6bf97a95c53be6;p=lttng-tools.git relayd: Add backward compatibility for --group-output-by-session The current implementation works for producer (consumerd/lttng-sessiond) using protocol version >= 2.11. For producer using protocol version >= 2.4 and < 2.11, we can use the session name passed on the RELAYD_CREATE_SESSION command to infer information (creation datetime, base path) from the stream path passed on the RELAYD_ADD_STREAM command. That information is then used to craft a stream path, in a best effort manner, that comply with the --group-output-by-session requirements: /-/trace Prior to protocol version 2.4, the session name is unknown on lttng-relayd side. In those cases, we do not perform any transformation and leave the provided stream path as is. A warning (lttng-relayd) is emitted on such occasions. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---