2 * Copyright (C) 2013 Julien Desfossez <jdesfossez@efficios.com>
3 * Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
5 * SPDX-License-Identifier: GPL-2.0-only
9 #ifndef CONSUMER_METADATA_CACHE_H
10 #define CONSUMER_METADATA_CACHE_H
12 #include <common/consumer/consumer.h>
14 struct consumer_metadata_cache
{
16 uint64_t cache_alloc_size
;
18 * Current version of the metadata cache.
22 * The upper-limit of data written inside the buffer.
24 * With the total_bytes_written it allows us to keep track of when the
25 * cache contains contiguous metadata ready to be sent to the RB.
26 * All cached data is contiguous.
30 * Lock to update the metadata cache and push into the ring_buffer
31 * (ustctl_write_metadata_to_channel).
33 * This is nested INSIDE the consumer_data lock.
38 int consumer_metadata_cache_write(struct lttng_consumer_channel
*channel
,
39 unsigned int offset
, unsigned int len
, uint64_t version
,
41 int consumer_metadata_cache_allocate(struct lttng_consumer_channel
*channel
);
42 void consumer_metadata_cache_destroy(struct lttng_consumer_channel
*channel
);
43 int consumer_metadata_cache_flushed(struct lttng_consumer_channel
*channel
,
44 uint64_t offset
, int timer
);
45 int consumer_metadata_wakeup_pipe(const struct lttng_consumer_channel
*channel
);
47 #endif /* CONSUMER_METADATA_CACHE_H */
This page took 0.029759 seconds and 4 git commands to generate.