projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: sessiond: cmd_enable_channel_internal
[lttng-tools.git]
/
src
/
common
/
consumer
/
consumer-metadata-cache.h
diff --git
a/src/common/consumer/consumer-metadata-cache.h
b/src/common/consumer/consumer-metadata-cache.h
index 303f5cd2a1aeb7d71968b74c7c13876a82b32992..b8f4efadc4c5ec59913cb75ea1644882fab2331b 100644
(file)
--- a/
src/common/consumer/consumer-metadata-cache.h
+++ b/
src/common/consumer/consumer-metadata-cache.h
@@
-10,6
+10,7
@@
#define CONSUMER_METADATA_CACHE_H
#include <common/consumer/consumer.h>
#define CONSUMER_METADATA_CACHE_H
#include <common/consumer/consumer.h>
+#include <common/dynamic-buffer.h>
enum consumer_metadata_cache_write_status {
CONSUMER_METADATA_CACHE_WRITE_STATUS_ERROR = -1,
enum consumer_metadata_cache_write_status {
CONSUMER_METADATA_CACHE_WRITE_STATUS_ERROR = -1,
@@
-33,23
+34,16
@@
enum consumer_metadata_cache_write_status {
};
struct consumer_metadata_cache {
};
struct consumer_metadata_cache {
- char *data;
- uint64_t cache_alloc_size;
- /*
- * Current version of the metadata cache.
- */
+ /* Current version of the metadata cache. */
uint64_t version;
/*
uint64_t version;
/*
- * The upper-limit of data written inside the buffer.
- *
- * With the total_bytes_written it allows us to keep track of when the
- * cache contains contiguous metadata ready to be sent to the RB.
+ * Size is the upper-limit of data written inside the buffer.
* All cached data is contiguous.
*/
* All cached data is contiguous.
*/
-
uint64_t max_offset
;
+
struct lttng_dynamic_buffer contents
;
/*
* Lock to update the metadata cache and push into the ring_buffer
/*
* Lock to update the metadata cache and push into the ring_buffer
- * (
ust
ctl_write_metadata_to_channel).
+ * (
lttng_ust_
ctl_write_metadata_to_channel).
*
* This is nested INSIDE the consumer_data lock.
*/
*
* This is nested INSIDE the consumer_data lock.
*/
This page took
0.028919 seconds
and
4
git commands to generate.