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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 May 2020 21:28:35 +0000 (17:28 -0400)
commit7775df526447e504735983ee359dcb902fa6dd1e
tree8cdc9683a824c63ef1574fea5b6450e3c1a17025
parentbb09693bc5b9d3123e8dd5a5ac9729597b9ec3c7
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.025327 seconds and 4 git commands to generate.