| 1 | /* CTF 1.8 */ |
| 2 | typealias integer { size = 8; align = 8; signed = false; } := uint8_t; |
| 3 | typealias integer { size = 32; align = 8; signed = false; } := uint32_t; |
| 4 | |
| 5 | // Define newtype |
| 6 | typealias uint32_t := newtype; |
| 7 | |
| 8 | trace { |
| 9 | // Hide newtype |
| 10 | typedef uint8_t newtype; |
| 11 | |
| 12 | major = 0; |
| 13 | minor = 1; |
| 14 | uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; |
| 15 | byte_order = le; |
| 16 | packet.header := struct { |
| 17 | uint8_t field; |
| 18 | }; |
| 19 | }; |
| 20 | |
| 21 | event { |
| 22 | name = string; |
| 23 | fields := struct { string str; }; |
| 24 | }; |