Commit | Line | Data |
---|---|---|
a9540c8e PP |
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 = le; | |
37 | packet.header := struct { | |
38 | integer { | |
39 | signed = false; | |
40 | size = 32; | |
41 | align = 8; | |
42 | byte_order = native; | |
43 | base = 10; | |
44 | } magic; | |
45 | integer { | |
46 | signed = false; | |
47 | size = 64; | |
48 | align = 8; | |
49 | byte_order = native; | |
50 | base = 10; | |
51 | } stream_id; | |
52 | } align(8); | |
53 | }; | |
54 | ||
55 | env { | |
56 | domain = "bare"; | |
57 | tracer_name = "barectf"; | |
58 | }; | |
59 | ||
60 | /* Data stream type `default` */ | |
61 | stream { | |
62 | id = 0; | |
63 | packet.context := struct { | |
64 | integer { | |
65 | signed = false; | |
66 | size = 64; | |
67 | align = 8; | |
68 | byte_order = native; | |
69 | base = 10; | |
70 | } packet_size; | |
71 | integer { | |
72 | signed = false; | |
73 | size = 64; | |
74 | align = 8; | |
75 | byte_order = native; | |
76 | base = 10; | |
77 | } content_size; | |
78 | } align(8); | |
79 | event.header := struct { | |
80 | integer { | |
81 | signed = false; | |
82 | size = 64; | |
83 | align = 8; | |
84 | byte_order = native; | |
85 | base = 10; | |
86 | } id; | |
87 | } align(8); | |
88 | }; | |
89 | ||
90 | event { | |
91 | stream_id = 0; | |
92 | id = 0; | |
93 | name = "ev"; | |
94 | fields := struct { | |
95 | integer { | |
96 | signed = true; | |
97 | size = 1; | |
98 | align = 1; | |
99 | byte_order = native; | |
100 | base = 10; | |
101 | } i1; | |
102 | integer { | |
103 | signed = true; | |
104 | size = 3; | |
105 | align = 1; | |
106 | byte_order = native; | |
107 | base = 10; | |
108 | } i3; | |
109 | integer { | |
110 | signed = true; | |
111 | size = 2; | |
112 | align = 1; | |
113 | byte_order = native; | |
114 | base = 10; | |
115 | } i2; | |
116 | integer { | |
117 | signed = true; | |
118 | size = 5; | |
119 | align = 1; | |
120 | byte_order = native; | |
121 | base = 10; | |
122 | } i5; | |
123 | integer { | |
124 | signed = true; | |
125 | size = 4; | |
126 | align = 1; | |
127 | byte_order = native; | |
128 | base = 10; | |
129 | } i4; | |
130 | integer { | |
131 | signed = true; | |
132 | size = 7; | |
133 | align = 1; | |
134 | byte_order = native; | |
135 | base = 10; | |
136 | } i7; | |
137 | integer { | |
138 | signed = true; | |
139 | size = 6; | |
140 | align = 1; | |
141 | byte_order = native; | |
142 | base = 10; | |
143 | } i6; | |
144 | integer { | |
145 | signed = true; | |
146 | size = 23; | |
147 | align = 1; | |
148 | byte_order = native; | |
149 | base = 10; | |
150 | } i23; | |
151 | integer { | |
152 | signed = true; | |
153 | size = 55; | |
154 | align = 1; | |
155 | byte_order = native; | |
156 | base = 10; | |
157 | } i55; | |
158 | } align(1); | |
159 | }; |