From: Mathieu Desnoyers Date: Wed, 11 Dec 2019 16:39:59 +0000 (-0500) Subject: sessiond: refactoring: introduce start/stop_kernel_session X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=4dbe187595e8dc40516d6d9ce8a6a9c285f48a5e;hp=4dbe187595e8dc40516d6d9ce8a6a9c285f48a5e;p=lttng-tools.git sessiond: refactoring: introduce start/stop_kernel_session The clear feature will need to stop kernel session as well, so move this code to its own function rather than duplicate it. start_kernel_session already exists, but is static. Expose it so it can be used from a separate compile unit. Signed-off-by: Mathieu Desnoyers Change-Id: I68da1ee2e51105278265866590734c320a9789bd Signed-off-by: Jérémie Galarneau ---