tests/tracing: add event record type tests
[barectf.git] / tests / tracing / expect / counter-clock / ert / spec-ctx-payload.metadata.expect
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 = 64;
41 align = 8;
42 byte_order = native;
43 base = 10;
44 } stream_id;
45 } align(8);
46 };
47
48 env {
49 domain = "bare";
50 tracer_name = "barectf";
51 };
52
53 clock {
54 name = default;
55 freq = 1000000000;
56 precision = 0;
57 offset_s = 0;
58 offset = 0;
59 absolute = false;
60 };
61
62 /* Data stream type `default` */
63 stream {
64 id = 0;
65 packet.context := struct {
66 integer {
67 signed = false;
68 size = 64;
69 align = 8;
70 byte_order = native;
71 base = 10;
72 } packet_size;
73 integer {
74 signed = false;
75 size = 64;
76 align = 8;
77 byte_order = native;
78 base = 10;
79 } content_size;
80 } align(8);
81 event.header := struct {
82 integer {
83 signed = false;
84 size = 64;
85 align = 8;
86 byte_order = native;
87 base = 10;
88 } id;
89 } align(8);
90 };
91
92 event {
93 stream_id = 0;
94 id = 0;
95 name = "dummy";
96 fields := struct {
97 string {
98 encoding = UTF8;
99 } u;
100 } align(1);
101 };
102
103 event {
104 stream_id = 0;
105 id = 1;
106 name = "ev";
107 context := struct {
108 string {
109 encoding = UTF8;
110 } s;
111 } align(1);
112 fields := struct {
113 integer {
114 signed = false;
115 size = 32;
116 align = 32;
117 byte_order = native;
118 base = 10;
119 } u;
120 } align(1);
121 };
This page took 0.032143 seconds and 4 git commands to generate.