X-Git-Url: http://git.efficios.com/?p=ctf.git;a=blobdiff_plain;f=common-trace-format-specification.txt;h=e0944b5d84b6491e33c6e9c0b6b889b0751b845b;hp=dedf5935ecf80c1e8846a2122947131d8c442c38;hb=0cedf6e545d9cb736218fed5832a2a9ae81b5ef1;hpb=570ecabebb5ce0398f044cb6389f33901b08cc4a diff --git a/common-trace-format-specification.txt b/common-trace-format-specification.txt index dedf593..e0944b5 100644 --- a/common-trace-format-specification.txt +++ b/common-trace-format-specification.txt @@ -1,4 +1,4 @@ -Common Trace Format (CTF) Specification (pre-v1.8) +Common Trace Format (CTF) Specification (v1.8.1) Mathieu Desnoyers, EfficiOS Inc. @@ -358,7 +358,8 @@ enum name : integer_type { }; If the values are omitted, the enumeration starts at 0 and increment of 1 for -each entry: +each entry. An entry with omitted value that follows a range entry takes +as value the end_value of the previous range + 1: enum name : unsigned int { ZERO, @@ -1113,8 +1114,8 @@ trace. The event "id" field can be left out if there is only one event in a stream. trace { - major = value; /* Trace format version */ - minor = value; + major = value; /* CTF spec version major number */ + minor = value; /* CTF spec version minor number */ uuid = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"; /* Trace UUID */ byte_order = be OR le; /* Endianness (required) */ packet.header := struct { @@ -1150,8 +1151,7 @@ event { name = "event_name"; id = value; /* Numeric identifier within the stream */ stream_id = stream_id; - loglevel.identifier = "loglevel_identifier"; - loglevel.value = value; + loglevel = value; context := struct { ... }; @@ -1733,6 +1733,7 @@ typedef-name: 2.3) CTF-specific declarations ctf-specifier: + clock { ctf-assignment-expression-list-opt } event { ctf-assignment-expression-list-opt } stream { ctf-assignment-expression-list-opt } env { ctf-assignment-expression-list-opt }