Update metadata header to CTF 1.8
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 3 Aug 2011 17:40:36 +0000 (13:40 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 3 Aug 2011 17:41:12 +0000 (13:41 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-ring-buffer-metadata-client.h
ltt-tracer.h

index 06936aaa93cef7b12f28931d71767ded09dbff36..65509f8475a9d87f2a9279103c9d2f326aa9106f 100644 (file)
@@ -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;
 }
 
 /*
index 91a868dc277cd88ff7361248cea10a1e6abddfcc..a21c38ca3f330f660dbd29f7f5c374935669962f 100644 (file)
 /* 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
 
This page took 0.02722 seconds and 4 git commands to generate.