From: Jérémie Galarneau Date: Thu, 23 Jun 2022 18:28:01 +0000 (-0400) Subject: Clean-up: consumerd: reduce duplication of stream output close code X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=d119bd017a99d56ad36901ce8f2175a8ea3b5e5e;hp=d119bd017a99d56ad36901ce8f2175a8ea3b5e5e;p=lttng-tools.git Clean-up: consumerd: reduce duplication of stream output close code The kernel space consumer implements its own version of a stream_close operation where it could use the common consumer code. This change separates the tear down of the buffers (munmap, in the kernel case) from the closing of the output stream in consumer_stream_close(). This change allows the kernel snapshot code to re-use the common close function instead of rolling its own `finalize_snapshot_stream`. Signed-off-by: Jérémie Galarneau Change-Id: I48e3193ceb3c15ddd8c6fcecd37ab60b793f7e66 ---