A trace chunk registry is needed by the consumer daemon since there is
no concrete representation of a tracing session object in those
processes.
The trace chunk registry allows the consumer daemon to match
newly-created streams to their current trace chunk. This integration
is performed in a follow-up commit.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
* it.
*/
lttng_ht_destroy(consumer_data.stream_list_ht);
+
+ lttng_trace_chunk_registry_destroy(consumer_data.chunk_registry);
}
/*
goto error;
}
+ consumer_data.chunk_registry = lttng_trace_chunk_registry_create();
+ if (!consumer_data.chunk_registry) {
+ goto error;
+ }
+
return 0;
error:
#include <common/sessiond-comm/sessiond-comm.h>
#include <common/pipe.h>
#include <common/index/ctf-index.h>
+#include <common/trace-chunk-registry.h>
/* Commands for consumer */
enum lttng_consumer_command {
* This HT uses the "node_channel_id" of the consumer stream.
*/
struct lttng_ht *stream_per_chan_id_ht;
+
+ /*
+ * Trace chunk registry indexed by (session_id, chunk_id).
+ */
+ struct lttng_trace_chunk_registry *chunk_registry;
};
/*