From: Julien Desfossez Date: Mon, 29 Jun 2015 19:45:56 +0000 (-0400) Subject: Metadata for instance_id and packet_seq_num X-Git-Tag: v2.8.0-rc1~148 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=0793bcc637de51773fe97351b0de21e846180f59;p=lttng-tools.git Metadata for instance_id and packet_seq_num 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 --- 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,