| 1 |
/* CTF 1.8 */ |
| 2 |
typealias integer { size = 8; align = 8; signed = false; } := uint8_t; |
| 3 |
typealias integer { size = 16; align = 8; signed = false; } := uint16_t; |
| 4 |
typealias integer { size = 32; align = 8; signed = false; } := uint32_t; |
| 5 |
typealias integer { size = 64; align = 8; signed = false; } := uint64_t; |
| 6 |
typealias integer { size = 64; align = 8; signed = false; } := unsigned long; |
| 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 = "59052333-e490-4ed9-af7a-b652437fba9a"; |
| 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 |
hostname = "host"; |
| 24 |
domain = "ust"; |
| 25 |
tracer_name = "lttng-ust"; |
| 26 |
tracer_major = 2; |
| 27 |
tracer_minor = 3; |
| 28 |
}; |
| 29 |
|
| 30 |
clock { |
| 31 |
name = monotonic; |
| 32 |
uuid = "5f3ed925-9d73-4637-b8e4-02077abc8c8f"; |
| 33 |
description = "Monotonic Clock"; |
| 34 |
freq = 1000000000; /* Frequency, in Hz */ |
| 35 |
/* clock value offset from Epoch is: offset * (1/freq) */ |
| 36 |
offset = 1375437179542680815; |
| 37 |
}; |
| 38 |
|
| 39 |
typealias integer { |
| 40 |
size = 27; align = 1; signed = false; |
| 41 |
map = clock.monotonic.value; |
| 42 |
} := uint27_clock_monotonic_t; |
| 43 |
|
| 44 |
typealias integer { |
| 45 |
size = 32; align = 8; signed = false; |
| 46 |
map = clock.monotonic.value; |
| 47 |
} := uint32_clock_monotonic_t; |
| 48 |
|
| 49 |
typealias integer { |
| 50 |
size = 64; align = 8; signed = false; |
| 51 |
map = clock.monotonic.value; |
| 52 |
} := uint64_clock_monotonic_t; |
| 53 |
|
| 54 |
struct packet_context { |
| 55 |
uint64_clock_monotonic_t timestamp_begin; |
| 56 |
uint64_clock_monotonic_t timestamp_end; |
| 57 |
uint64_t content_size; |
| 58 |
uint64_t packet_size; |
| 59 |
unsigned long events_discarded; |
| 60 |
uint32_t cpu_id; |
| 61 |
}; |
| 62 |
|
| 63 |
struct event_header_compact { |
| 64 |
enum : uint5_t { compact = 0 ... 30, extended = 31 } id; |
| 65 |
variant <id> { |
| 66 |
struct { |
| 67 |
uint27_clock_monotonic_t timestamp; |
| 68 |
} compact; |
| 69 |
struct { |
| 70 |
uint32_t id; |
| 71 |
uint64_clock_monotonic_t timestamp; |
| 72 |
} extended; |
| 73 |
} v; |
| 74 |
} align(8); |
| 75 |
|
| 76 |
struct event_header_large { |
| 77 |
enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; |
| 78 |
variant <id> { |
| 79 |
struct { |
| 80 |
uint32_clock_monotonic_t timestamp; |
| 81 |
} compact; |
| 82 |
struct { |
| 83 |
uint32_t id; |
| 84 |
uint64_clock_monotonic_t timestamp; |
| 85 |
} extended; |
| 86 |
} v; |
| 87 |
} align(8); |
| 88 |
|
| 89 |
stream { |
| 90 |
id = 0; |
| 91 |
event.header := struct event_header_compact; |
| 92 |
packet.context := struct packet_context; |
| 93 |
}; |
| 94 |
|
| 95 |
event { |
| 96 |
name = "sequence event"; |
| 97 |
id = 0; |
| 98 |
stream_id = 0; |
| 99 |
loglevel = 1; |
| 100 |
fields := struct { |
| 101 |
integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } __seq_int_field_length; |
| 102 |
integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _seq_int_field[ __seq_int_field_length ]; |
| 103 |
integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } __seq_long_field_length; |
| 104 |
integer { size = 64; align = 8; signed = 1; encoding = none; base = 10; } _seq_long_field[ __seq_long_field_length ]; |
| 105 |
}; |
| 106 |
}; |