From: Mathieu Desnoyers Date: Wed, 3 Aug 2011 17:40:36 +0000 (-0400) Subject: Update metadata header to CTF 1.8 X-Git-Tag: v2.0-pre7~5^2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4173df96b9246b7751be7e2665dded3ad638e184;p=lttng-modules.git Update metadata header to CTF 1.8 Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-ring-buffer-metadata-client.h b/ltt-ring-buffer-metadata-client.h index 06936aaa..65509f84 100644 --- a/ltt-ring-buffer-metadata-client.h +++ b/ltt-ring-buffer-metadata-client.h @@ -23,6 +23,8 @@ struct metadata_packet_header { uint8_t compression_scheme; /* 0 if unused */ uint8_t encryption_scheme; /* 0 if unused */ uint8_t checksum_scheme; /* 0 if unused */ + uint8_t major; /* CTF spec major version number */ + uint8_t minor; /* CTF spec minor version number */ uint8_t header_end[0]; }; @@ -94,6 +96,8 @@ static void client_buffer_begin(struct lib_ring_buffer *buf, u64 tsc, header->compression_scheme = 0; /* 0 if unused */ header->encryption_scheme = 0; /* 0 if unused */ header->checksum_scheme = 0; /* 0 if unused */ + header->major = CTF_SPEC_MAJOR; + header->minor = CTF_SPEC_MINOR; } /* diff --git a/ltt-tracer.h b/ltt-tracer.h index 91a868dc..a21c38ca 100644 --- a/ltt-tracer.h +++ b/ltt-tracer.h @@ -46,6 +46,12 @@ /* Tracer properties */ #define CTF_MAGIC_NUMBER 0xC1FC1FC1 #define TSDL_MAGIC_NUMBER 0x75D11D57 + +/* CTF specification version followed */ +#define CTF_SPEC_MAJOR 1 +#define CTF_SPEC_MINOR 8 + +/* Tracer major/minor versions */ #define CTF_VERSION_MAJOR 0 #define CTF_VERSION_MINOR 1