Tests: flt.lttng-utils.debug-info: update debug-info tests
[babeltrace.git] / tests / data / ctf-traces / succeed / debug-info / 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 = "d2270f5a-7a70-4521-860b-954f054e046b";
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 = "c56ad62a-6a35-4722-9807-d8e0f118a367";
35 description = "Monotonic Clock";
36 freq = 1000000000; /* Frequency, in Hz */
37 /* clock value offset from Epoch is: offset * (1/freq) */
38 offset = 1563264475374722151;
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 event {
93 name = "lttng_ust_statedump:bin_info";
94 id = 0;
95 stream_id = 0;
96 loglevel = 13;
97 fields := struct {
98 integer { size = 64; align = 8; signed = 0; encoding = none; base = 16; } _baddr;
99 integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } _memsz;
100 string _path;
101 integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _is_pic;
102 integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _has_build_id;
103 integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _has_debug_link;
104 };
105 };
106
107 stream {
108 id = 0;
109 event.header := struct event_header_large;
110 packet.context := struct packet_context;
111 event.context := struct {
112 integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _vpid;
113 integer { size = 64; align = 8; signed = 0; encoding = none; base = 16; } _ip;
114 };
115 };
116
117 event {
118 name = "my_provider:my_first_tracepoint";
119 id = 1;
120 stream_id = 0;
121 loglevel = 13;
122 fields := struct {
123 string _my_string_field;
124 integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _my_integer_field;
125 };
126 };
127
This page took 0.032446 seconds and 4 git commands to generate.