From: Jérémie Galarneau Date: Fri, 20 Dec 2019 06:41:37 +0000 (-0500) Subject: relayd: share the same output directory handle accross sessions X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=7ceefac4c8474606312e25ab822e510c41a3d644;hp=7ceefac4c8474606312e25ab822e510c41a3d644;p=deliverable%2Flttng-tools.git relayd: share the same output directory handle accross sessions Now that lttng_directory_handles are reference counted, they can be shared by multiple sessions and trace chunks. These modifications cause sessions that share a trace chunk to share their session output directory handle. Moreover, the session output directory handle is now created on session creation. Hence, a directory handle (fd) is not created everytime a trace chunk is created. The goal of this modification is to make it easier to track file descriptors in the relay daemon, but it is also more efficient overall (less opening of file descriptors) and will error-out during the creation of a session rather than a trace chunk which is handled more gracefully accross the toolchain. Signed-off-by: Jérémie Galarneau Change-Id: I47e46ee253db646da1490380612def741c2f4102 ---