consumerd: move address computation from on_read_subbuffer_mmap
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 May 2020 22:21:48 +0000 (18:21 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 26 May 2020 18:29:52 +0000 (14:29 -0400)
commit1fdb9a7834064be4e1efbefd2b77a0c6a3f2d89b
tree6fc6f0a50d4b8862bbf9bdf21c803656e56da261
parentb7bce76449cfa7ca3db9fd900239eb25962349d7
consumerd: move address computation from on_read_subbuffer_mmap

The computation of the subbuffer's address is moved outside of
lttng_consumer_on_read_subbuffer_mmap to make it usable with a regular
buffer. This facilitates an upcoming change.

Moreover this has the benefit of isolating domain-specific logic from
this function which is supposed to be domain-agnostic.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I16f8ccaa73804f98fa03e69136548e6d6b7782e5
src/common/consumer/consumer.c
src/common/consumer/consumer.h
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c
src/common/ust-consumer/ust-consumer.h
This page took 0.027845 seconds and 5 git commands to generate.