Commit | Line | Data |
---|---|---|
88004776 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 | ||
e8f0d548 | 60 | /* Data stream type `default` */ |
88004776 PP |
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 = false; | |
97 | size = 8; | |
98 | align = 8; | |
99 | byte_order = native; | |
100 | base = 10; | |
101 | } before; | |
102 | integer { | |
103 | signed = false; | |
104 | size = 8; | |
105 | align = 64; | |
106 | byte_order = native; | |
107 | base = 10; | |
108 | } array[0]; | |
109 | integer { | |
110 | signed = false; | |
111 | size = 8; | |
112 | align = 8; | |
113 | byte_order = native; | |
114 | base = 10; | |
115 | } after; | |
116 | } align(1); | |
117 | }; |