Commit | Line | Data |
---|---|---|
17f98b63 MD |
1 | /* CTF 1.8 */ |
2 | typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; | |
3 | typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; | |
4 | ||
5 | trace { | |
6 | major = 0; | |
7 | minor = 1; | |
1884f867 | 8 | test2 = "?\x20\040\123\0?"; |
17f98b63 MD |
9 | uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; |
10 | byte_order = le; | |
11 | packet.header := struct { | |
12 | uint32_t magic; | |
13 | uint8_t uuid[16]; | |
14 | }; | |
15 | }; | |
16 | ||
1884f867 MD |
17 | /* use babeltrace -f trace:hostname to print. */ |
18 | ||
19 | /* | |
20 | * Expected: | |
21 | ||
22 | abc " hex: A, #, #, #1, | |
23 | oct: A, #, #, #1, | |
24 | ||
25 | */ | |
26 | ||
27 | env { | |
28 | hostname = "\nabc \" hex: \x41, \x23, \x023, \x0231,\noct: \101, \043, \43, \0431, \0NOT SEEN"; | |
29 | }; | |
30 | ||
17f98b63 MD |
31 | stream { |
32 | packet.context := struct { | |
33 | uint32_t content_size; | |
34 | uint32_t packet_size; | |
35 | }; | |
36 | }; | |
37 | ||
38 | event { | |
39 | name = string; | |
40 | fields := struct { string str; }; | |
41 | }; |