Tests: ctf: add tracers timestamp quirks workaround test cases
[babeltrace.git] / tests / data / ctf-traces / succeed / lttng-crash / metadata
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 = 64; align = 8; signed = false; } := unsigned long;
8 typealias integer { size = 5; align = 1; signed = false; } := uint5_t;
9 typealias integer { size = 27; align = 1; signed = false; } := uint27_t;
10
11 trace {
12 major = 1;
13 minor = 8;
14 uuid = "a7055065-938f-439c-818e-975c13b30be2";
15 byte_order = le;
16 packet.header := struct {
17 uint32_t magic;
18 uint8_t uuid[16];
19 uint32_t stream_id;
20 uint64_t stream_instance_id;
21 };
22 };
23
24 env {
25 hostname = "raton";
26 domain = "ust";
27 tracer_name = "lttng-ust";
28 tracer_major = 2;
29 tracer_minor = 11;
30 };
31
32 clock {
33 name = "monotonic";
34 uuid = "4d76db72-e40f-409e-ba30-532d309d5048";
35 description = "Monotonic Clock";
36 freq = 1000000000; /* Frequency, in Hz */
37 /* clock value offset from Epoch is: offset * (1/freq) */
38 offset = 1565056443054742594;
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 uint64_t content_size;
60 uint64_t packet_size;
61 uint64_t packet_seq_num;
62 unsigned long events_discarded;
63 uint32_t cpu_id;
64 };
65
66 struct event_header_compact {
67 enum : uint5_t { compact = 0 ... 30, extended = 31 } id;
68 variant <id> {
69 struct {
70 uint27_clock_monotonic_t timestamp;
71 } compact;
72 struct {
73 uint32_t id;
74 uint64_clock_monotonic_t timestamp;
75 } extended;
76 } v;
77 } align(8);
78
79 struct event_header_large {
80 enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
81 variant <id> {
82 struct {
83 uint32_clock_monotonic_t timestamp;
84 } compact;
85 struct {
86 uint32_t id;
87 uint64_clock_monotonic_t timestamp;
88 } extended;
89 } v;
90 } align(8);
91
92 stream {
93 id = 0;
94 event.header := struct event_header_large;
95 packet.context := struct packet_context;
96 };
97
98 event {
99 name = "my_app:current_temp";
100 id = 0;
101 stream_id = 0;
102 loglevel = 13;
103 fields := struct {
104 integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _temp;
105 string _status;
106 };
107 };
108
This page took 0.031282 seconds and 4 git commands to generate.