From 0793bcc637de51773fe97351b0de21e846180f59 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Mon, 29 Jun 2015 15:45:56 -0400 Subject: [PATCH] Metadata for instance_id and packet_seq_num MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The UST tracer now stores a stream_instance_id in each packet to allow the viewers to match streams split in multiple trace files. Also, a sequence_number is stored in each packet so it is possible to compute the number of lost packets in overwrite mode. This is a locked-step with the corresponding lttng-ust commits. Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/ust-metadata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/lttng-sessiond/ust-metadata.c b/src/bin/lttng-sessiond/ust-metadata.c index 78ecb1dd3..e49f23743 100644 --- a/src/bin/lttng-sessiond/ust-metadata.c +++ b/src/bin/lttng-sessiond/ust-metadata.c @@ -723,6 +723,7 @@ int _lttng_stream_packet_context_declare(struct ust_registry_session *session) " uint64_clock_monotonic_t timestamp_end;\n" " uint64_t content_size;\n" " uint64_t packet_size;\n" + " uint64_t packet_seq_num;\n" " unsigned long events_discarded;\n" " uint32_t cpu_id;\n" "};\n\n" @@ -885,6 +886,7 @@ int ust_metadata_session_statedump(struct ust_registry_session *session, " uint32_t magic;\n" " uint8_t uuid[16];\n" " uint32_t stream_id;\n" + " uint64_t stream_instance_id;\n" " };\n" "};\n\n", session->uint8_t_alignment, -- 2.34.1