Commit | Line | Data |
---|---|---|
a209cf4d EB |
1 | /* CTF 1.8 */ |
2 | ||
3 | /* | |
4 | * The MIT License (MIT) | |
5 | * | |
6 | * | |
7 | * Permission is hereby granted, free of charge, to any person obtaining | |
8 | * a copy of this software and associated documentation files (the | |
9 | * "Software"), to deal in the Software without restriction, including | |
10 | * without limitation the rights to use, copy, modify, merge, publish, | |
11 | * distribute, sublicense, and/or sell copies of the Software, and to | |
12 | * permit persons to whom the Software is furnished to do so, subject to | |
13 | * the following conditions: | |
14 | * | |
15 | * The above copyright notice and this permission notice shall be | |
16 | * included in all copies or substantial portions of the Software. | |
17 | * | |
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
19 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
20 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
21 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | |
22 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | |
23 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
25 | * SOFTWARE. | |
26 | * | |
27 | * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
28 | * | |
29 | * | |
30 | * For more details, see <https://barectf.org/>. | |
31 | */ | |
32 | ||
33 | trace { | |
34 | major = 1; | |
35 | minor = 8; | |
36 | byte_order = be; | |
37 | packet.header := struct { | |
38 | } align(8); | |
39 | }; | |
40 | ||
41 | env { | |
42 | domain = "bare"; | |
43 | tracer_name = "barectf"; | |
44 | }; | |
45 | ||
46 | /* Data stream type `default` */ | |
47 | stream { | |
48 | packet.context := struct { | |
49 | integer { | |
50 | signed = false; | |
51 | size = 16; | |
52 | align = 8; | |
53 | byte_order = native; | |
54 | base = 10; | |
55 | } packet_size; | |
56 | integer { | |
57 | signed = false; | |
58 | size = 16; | |
59 | align = 8; | |
60 | byte_order = native; | |
61 | base = 10; | |
62 | } content_size; | |
63 | } align(8); | |
64 | event.header := struct { | |
65 | } align(8); | |
66 | }; | |
67 | ||
68 | event { | |
69 | id = 0; | |
70 | name = "my_event"; | |
71 | fields := struct { | |
72 | string { | |
73 | encoding = UTF8; | |
74 | } my_field; | |
75 | } align(1); | |
76 | }; |