| 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 = "0339cd08-892d-404c-9291-64c1a8a74c81"; |
| 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 | domain = "ust"; |
| 26 | tracer_name = "lttng-ust"; |
| 27 | tracer_major = 2; |
| 28 | tracer_minor = 12; |
| 29 | tracer_buffering_scheme = "uid"; |
| 30 | tracer_buffering_id = 1000; |
| 31 | architecture_bit_width = 64; |
| 32 | trace_name = "barney_descontie"; |
| 33 | trace_creation_datetime = "20200715T174253-0400"; |
| 34 | hostname = "raton"; |
| 35 | }; |
| 36 | |
| 37 | clock { |
| 38 | name = "monotonic"; |
| 39 | uuid = "81a04b89-9028-4d3e-a28d-5fbd53a8eb9d"; |
| 40 | description = "Monotonic Clock"; |
| 41 | freq = 1000000000; /* Frequency, in Hz */ |
| 42 | /* clock value offset from Epoch is: offset * (1/freq) */ |
| 43 | offset = 1594406328768346378; |
| 44 | }; |
| 45 | |
| 46 | typealias integer { |
| 47 | size = 27; align = 1; signed = false; |
| 48 | map = clock.monotonic.value; |
| 49 | } := uint27_clock_monotonic_t; |
| 50 | |
| 51 | typealias integer { |
| 52 | size = 32; align = 8; signed = false; |
| 53 | map = clock.monotonic.value; |
| 54 | } := uint32_clock_monotonic_t; |
| 55 | |
| 56 | typealias integer { |
| 57 | size = 64; align = 8; signed = false; |
| 58 | map = clock.monotonic.value; |
| 59 | } := uint64_clock_monotonic_t; |
| 60 | |
| 61 | struct packet_context { |
| 62 | uint64_clock_monotonic_t timestamp_begin; |
| 63 | uint64_clock_monotonic_t timestamp_end; |
| 64 | uint64_t content_size; |
| 65 | uint64_t packet_size; |
| 66 | uint64_t packet_seq_num; |
| 67 | unsigned long events_discarded; |
| 68 | uint32_t cpu_id; |
| 69 | }; |
| 70 | |
| 71 | struct event_header_compact { |
| 72 | enum : uint5_t { compact = 0 ... 30, extended = 31 } id; |
| 73 | variant <id> { |
| 74 | struct { |
| 75 | uint27_clock_monotonic_t timestamp; |
| 76 | } compact; |
| 77 | struct { |
| 78 | uint32_t id; |
| 79 | uint64_clock_monotonic_t timestamp; |
| 80 | } extended; |
| 81 | } v; |
| 82 | } align(8); |
| 83 | |
| 84 | struct event_header_large { |
| 85 | enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; |
| 86 | variant <id> { |
| 87 | struct { |
| 88 | uint32_clock_monotonic_t timestamp; |
| 89 | } compact; |
| 90 | struct { |
| 91 | uint32_t id; |
| 92 | uint64_clock_monotonic_t timestamp; |
| 93 | } extended; |
| 94 | } v; |
| 95 | } align(8); |
| 96 | |
| 97 | stream { |
| 98 | id = 0; |
| 99 | event.header := struct event_header_large; |
| 100 | packet.context := struct packet_context; |
| 101 | }; |
| 102 | |
| 103 | event { |
| 104 | name = "my_app:signe_de_pia$$e"; |
| 105 | id = 0; |
| 106 | stream_id = 0; |
| 107 | loglevel = 13; |
| 108 | fields := struct { |
| 109 | }; |
| 110 | }; |
| 111 | |
| 112 | event { |
| 113 | name = "my_app:signe_de_pia$$e_2"; |
| 114 | id = 1; |
| 115 | stream_id = 0; |
| 116 | loglevel = 13; |
| 117 | fields := struct { |
| 118 | }; |
| 119 | }; |