projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: notification: unreachable code in switch-case
[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..b207cc79c233df23fb926aec7382b83094700a0d 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,20
+34,13
@@
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
* (ustctl_write_metadata_to_channel).
/*
* Lock to update the metadata cache and push into the ring_buffer
* (ustctl_write_metadata_to_channel).
This page took
0.023427 seconds
and
4
git commands to generate.