Commit | Line | Data |
---|---|---|
454605f1 MJ |
1 | is-packetized: no |
2 | text: /* CTF 1.8 */ | |
3 | ||
4 | typealias integer { size = 8; align = 8; signed = false; } := uint8_t; | |
5 | typealias integer { size = 16; align = 8; signed = false; } := uint16_t; | |
6 | typealias integer { size = 32; align = 8; signed = false; } := uint32_t; | |
7 | typealias integer { size = 64; align = 8; signed = false; } := uint64_t; | |
8 | typealias integer { size = 64; align = 8; signed = false; } := unsigned long; | |
9 | typealias integer { size = 5; align = 1; signed = false; } := uint5_t; | |
10 | typealias integer { size = 27; align = 1; signed = false; } := uint27_t; | |
11 | ||
12 | trace { | |
13 | major = 1; | |
14 | minor = 8; | |
15 | uuid = "8c609d38-ed7e-49c3-81df-33cf268062b7"; | |
16 | byte_order = le; | |
17 | packet.header := struct { | |
18 | uint32_t magic; | |
19 | uint8_t uuid[16]; | |
20 | uint32_t stream_id; | |
21 | uint64_t stream_instance_id; | |
22 | }; | |
23 | }; | |
24 | ||
25 | env { | |
26 | domain = "ust"; | |
27 | tracer_name = "lttng-ust"; | |
28 | tracer_major = 2; | |
29 | tracer_minor = 13; | |
30 | tracer_buffering_scheme = "uid"; | |
31 | tracer_buffering_id = 1000; | |
32 | architecture_bit_width = 64; | |
33 | trace_name = "lf-metadata"; | |
34 | trace_creation_datetime = "20231023T185853+0000"; | |
35 | hostname = "line-endings"; | |
36 | }; | |
37 | ||
38 | clock { | |
39 | name = "monotonic"; | |
40 | uuid = "d0367630-5511-4855-a390-afe86f9b4545"; | |
41 | description = "Monotonic Clock"; | |
42 | freq = 1000000000; /* Frequency, in Hz */ | |
43 | /* clock value offset from Epoch is: offset * (1/freq) */ | |
44 | offset = 1698076473717549018; | |
45 | }; | |
46 | ||
47 | typealias integer { | |
48 | size = 27; align = 1; signed = false; | |
49 | map = clock.monotonic.value; | |
50 | } := uint27_clock_monotonic_t; | |
51 | ||
52 | typealias integer { | |
53 | size = 32; align = 8; signed = false; | |
54 | map = clock.monotonic.value; | |
55 | } := uint32_clock_monotonic_t; | |
56 | ||
57 | typealias integer { | |
58 | size = 64; align = 8; signed = false; | |
59 | map = clock.monotonic.value; | |
60 | } := uint64_clock_monotonic_t; | |
61 | ||
62 | struct packet_context { | |
63 | uint64_clock_monotonic_t timestamp_begin; | |
64 | uint64_clock_monotonic_t timestamp_end; | |
65 | uint64_t content_size; | |
66 | uint64_t packet_size; | |
67 | uint64_t packet_seq_num; | |
68 | unsigned long events_discarded; | |
69 | uint32_t cpu_id; | |
70 | }; | |
71 | ||
72 | struct event_header_compact { | |
73 | enum : uint5_t { compact = 0 ... 30, extended = 31 } id; | |
74 | variant <id> { | |
75 | struct { | |
76 | uint27_clock_monotonic_t timestamp; | |
77 | } compact; | |
78 | struct { | |
79 | uint32_t id; | |
80 | uint64_clock_monotonic_t timestamp; | |
81 | } extended; | |
82 | } v; | |
83 | } align(8); | |
84 | ||
85 | struct event_header_large { | |
86 | enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; | |
87 | variant <id> { | |
88 | struct { | |
89 | uint32_clock_monotonic_t timestamp; | |
90 | } compact; | |
91 | struct { | |
92 | uint32_t id; | |
93 | uint64_clock_monotonic_t timestamp; | |
94 | } extended; | |
95 | } v; | |
96 | } align(8); | |
97 | ||
98 | stream { | |
99 | id = 0; | |
100 | event.header := struct event_header_large; | |
101 | packet.context := struct packet_context; | |
102 | }; | |
103 | ||
104 | event { | |
105 | name = "lttng_ust_tracef:event"; | |
106 | id = 0; | |
107 | stream_id = 0; | |
108 | loglevel = 14; | |
109 | fields := struct { | |
110 | integer { size = 32; align = 8; signed = 0; encoding = none; base = 10; } __msg_length; | |
111 | integer { size = 8; align = 8; signed = 1; encoding = UTF8; base = 10; } _msg[ __msg_length ]; | |
112 | }; | |
113 | }; | |
114 | ||
115 | ||
116 |