Debian Codegraph @

tests/tracing/expect/counter-clock/trace-type-features/magic-hex.metadata.expect

raw
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 = 32;
42 byte_order = native;
43 base = 16;
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 clock {
61 name = default;
62 freq = 1000000000;
63 precision = 0;
64 offset_s = 0;
65 offset = 0;
66 absolute = false;
67 };
68
69 /* Data stream type `default` */
70 stream {
71 id = 0;
72 packet.context := struct {
73 integer {
74 signed = false;
75 size = 64;
76 align = 8;
77 byte_order = native;
78 base = 10;
79 } packet_size;
80 integer {
81 signed = false;
82 size = 64;
83 align = 8;
84 byte_order = native;
85 base = 10;
86 } content_size;
87 } align(8);
88 event.header := struct {
89 integer {
90 signed = false;
91 size = 64;
92 align = 8;
93 byte_order = native;
94 base = 10;
95 } id;
96 } align(8);
97 };
98
99 event {
100 stream_id = 0;
101 id = 0;
102 name = "dummy";
103 fields := struct {
104 string {
105 encoding = UTF8;
106 } u;
107 } align(1);
108 };