From: Mathieu Desnoyers Date: Wed, 4 May 2011 19:47:37 +0000 (-0400) Subject: Add trace { endian = big/little; } field X-Git-Tag: v1.8~59 X-Git-Url: http://git.efficios.com/?p=ctf.git;a=commitdiff_plain;h=969f30c0f23e7a169d534315b4fcc07ca58362b9 Add trace { endian = big/little; } field Only useful when the packet headers don't have a magic number. Signed-off-by: Mathieu Desnoyers --- diff --git a/common-trace-format-proposal.txt b/common-trace-format-proposal.txt index 35c1e71..f2f7e23 100644 --- a/common-trace-format-proposal.txt +++ b/common-trace-format-proposal.txt @@ -888,12 +888,17 @@ readable by accessing the upper dynamic scopes. The grammar representing the TSDL metadata is presented in Appendix C. TSDL Grammar. This section presents a rather ligher reading that -consists in examples of TSDL metadata, with template values: +consists in examples of TSDL metadata, with template values. + +Note that the trace endianness is usually extracted from the packet +header magic number. The "endian" field is only needed when the magic +number packet header field is not present. trace { major = value; /* Trace format version */ minor = value; uuid = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"; /* Trace UUID */ + endian = big OR little; /* Endianness (optional) */ packet.header := struct { uint32_t magic; uint8_t trace_uuid[16];