Commit | Line | Data |
---|---|---|
b4c499ed SM |
1 | /* CTF 1.8 */ |
2 | ||
3 | typealias integer { size = 8; align = 8; signed = false; } := uint8_t; | |
4 | typealias integer { size = 16; align = 8; signed = false; } := uint16_t; | |
5 | typealias integer { size = 32; align = 8; signed = false; } := uint32_t; | |
6 | typealias integer { size = 64; align = 8; signed = false; } := uint64_t; | |
7 | typealias integer { size = 5; align = 1; signed = false; } := uint5_t; | |
8 | typealias integer { size = 27; align = 1; signed = false; } := uint27_t; | |
9 | ||
10 | trace { | |
11 | major = 1; | |
12 | minor = 8; | |
13 | uuid = "624b19d9-19cd-4eae-bab8-8342e1b96a5d"; | |
14 | byte_order = le; | |
15 | packet.header := struct { | |
16 | uint32_t magic; | |
17 | uint8_t uuid[16]; | |
18 | uint32_t stream_id; | |
19 | }; | |
20 | }; | |
21 | ||
22 | env { | |
23 | vpid = 3208; | |
24 | procname = "wk-heartbeat"; | |
25 | domain = "ust"; | |
26 | tracer_name = "lttng-ust"; | |
27 | tracer_major = 2; | |
28 | tracer_minor = 0; | |
29 | tracer_patchlevel = 2; | |
30 | }; | |
31 | ||
32 | clock { | |
33 | name = monotonic; | |
34 | uuid = "c19b5ac9-b8e6-4f78-be95-a605d04e34c6"; | |
35 | description = "Monotonic Clock"; | |
36 | freq = 1000000000; /* Frequency, in Hz */ | |
37 | /* clock value offset from Epoch is: offset * (1/freq) */ | |
38 | offset = 1351530929945824323; | |
39 | }; | |
40 | ||
41 | typealias integer { | |
42 | size = 27; align = 1; signed = false; | |
43 | map = clock.monotonic.value; | |
44 | } := uint27_clock_monotonic_t; | |
45 | ||
46 | typealias integer { | |
47 | size = 32; align = 8; signed = false; | |
48 | map = clock.monotonic.value; | |
49 | } := uint32_clock_monotonic_t; | |
50 | ||
51 | typealias integer { | |
52 | size = 64; align = 8; signed = false; | |
53 | map = clock.monotonic.value; | |
54 | } := uint64_clock_monotonic_t; | |
55 | ||
56 | struct packet_context { | |
57 | uint64_clock_monotonic_t timestamp_begin; | |
58 | uint64_clock_monotonic_t timestamp_end; | |
59 | uint32_t events_discarded; | |
60 | uint32_t content_size; | |
61 | uint32_t packet_size; | |
62 | uint32_t cpu_id; | |
63 | }; | |
64 | ||
65 | struct event_header_compact { | |
66 | enum : uint5_t { compact = 0 ... 30, extended = 31 } id; | |
67 | variant <id> { | |
68 | struct { | |
69 | uint27_clock_monotonic_t timestamp; | |
70 | } compact; | |
71 | struct { | |
72 | uint32_t id; | |
73 | uint64_clock_monotonic_t timestamp; | |
74 | } extended; | |
75 | } v; | |
76 | } align(8); | |
77 | ||
78 | struct event_header_large { | |
79 | enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; | |
80 | variant <id> { | |
81 | struct { | |
82 | uint32_clock_monotonic_t timestamp; | |
83 | } compact; | |
84 | struct { | |
85 | uint32_t id; | |
86 | uint64_clock_monotonic_t timestamp; | |
87 | } extended; | |
88 | } v; | |
89 | } align(8); | |
90 | ||
91 | stream { | |
92 | id = 0; | |
93 | event.header := struct event_header_compact; | |
94 | packet.context := struct packet_context; | |
95 | event.context := struct { | |
96 | integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _vtid; | |
97 | integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _vpid; | |
98 | }; | |
99 | }; | |
100 | ||
101 | event { | |
102 | name = "heartbeat:msg"; | |
103 | id = 0; | |
104 | stream_id = 0; | |
105 | loglevel = 13; | |
106 | fields := struct { | |
107 | string _msg; | |
108 | }; | |
109 | }; | |
110 | ||
111 |