Clean-up: consumerd: reduce duplication of stream output close code
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Jun 2022 18:28:01 +0000 (14:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Oct 2022 21:59:42 +0000 (17:59 -0400)
commitd119bd017a99d56ad36901ce8f2175a8ea3b5e5e
treee4e6102ac88d79277a400ed9722314a597eda7df
parenta4beac76c09632fda439fac25fdb0f7191234191
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 <jeremie.galarneau@efficios.com>
Change-Id: I48e3193ceb3c15ddd8c6fcecd37ab60b793f7e66
src/common/consumer/consumer-stream.cpp
src/common/consumer/consumer-stream.hpp
src/common/consumer/consumer.cpp
src/common/kernel-consumer/kernel-consumer.cpp
src/common/ust-consumer/ust-consumer.cpp
This page took 0.025979 seconds and 4 git commands to generate.