| 1 | /* CTF 1.8 */ |
| 2 | typealias integer { size = 8; align = 8; signed = false; } := uint8_t; |
| 3 | typealias integer { size = 32; align = 32; signed = false; } := uint32_t; |
| 4 | |
| 5 | trace { |
| 6 | major = 0; |
| 7 | minor = 1; |
| 8 | test = 0xABC234; /* hexadecimal */ |
| 9 | test1 = 06534; /* octal */ |
| 10 | test2 = 1234; /* decimal */ |
| 11 | test3 = +1234; /* decimal with + unary op */ |
| 12 | test4 = -1234; /* decimal (negated) */ |
| 13 | uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; |
| 14 | byte_order = le; |
| 15 | packet.header := struct { |
| 16 | uint32_t magic; |
| 17 | uint8_t uuid[16]; |
| 18 | }; |
| 19 | }; |
| 20 | |
| 21 | stream { |
| 22 | packet.context := struct { |
| 23 | uint32_t content_size; |
| 24 | uint32_t packet_size; |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | event { |
| 29 | name = string; |
| 30 | fields := struct { string str; }; |
| 31 | }; |