-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsample.tsdl
150 lines (133 loc) · 3.55 KB
/
sample.tsdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* CTF 1.8 */
typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
typealias integer { size = 64; align = 8; signed = false; } := unsigned long;
typealias integer { size = 5; align = 1; signed = false; } := uint5_t;
typealias integer { size = 27; align = 1; signed = false; base = x; } := uint27_t;
trace {
major = 1;
minor = 8;
byte_order = be;
uuid = "fa3cf4f6-9abd-dd42-b220-4d2b440b10e4";
packet.header := struct {
uint32_t magic;
uint8_t uuid[16];
uint32_t stream_id;
};
};
env {
hostname = "archeepp";
domain = "kernel";
sysname = "Linux";
kernel_release = "3.17.0-rc3-ARCH-lttng-00083-g57b252f-dirty";
kernel_version = "#2 SMP PREEMPT Thu Sep 4 18:57:15 EDT 2014";
tracer_name = "lttng-modules";
tracer_major = 2;
tracer_minor = 5;
tracer_patchlevel = 0;
};
clock {
name = monotonic;
uuid = "8ca2ea5b-9331-430c-b2bc-414a9989c5f5";
description = "Monotonic Clock";
freq = 1000000000; /* Frequency, in Hz */
/* clock value offset from Epoch is: offset * (1/freq) */
offset = 1410027325724524018;
offset_s = 29387928332;
absolute = FALSE;
};
typealias integer {
size = 27; align = 1; signed = false;
map = clock.monotonic.value;
} := uint27_clock_monotonic_t;
typealias integer {
size = 32; align = 8; signed = false;
map = clock.monotonic.value;
} := uint32_clock_monotonic_t;
typealias integer {
size = 64; align = 8; signed = false;
map = clock.monotonic.value;
} := uint64_clock_monotonic_t;
struct packet_context {
uint64_clock_monotonic_t timestamp_begin;
uint64_clock_monotonic_t timestamp_end;
uint64_t content_size;
uint64_t packet_size;
unsigned long events_discarded;
uint32_t cpu_id;
};
struct event_header_compact {
enum : uint5_t { compact = 0 ... 30, extended = 31 } id;
variant <id> {
struct {
uint27_clock_monotonic_t timestamp;
} compact;
struct {
uint32_t id;
uint64_clock_monotonic_t timestamp;
} extended;
} v;
} align(8);
stream {
id = 0;
event.header := struct event_header_compact;
};
stream {
id = 1;
event.header := string;
event.context := integer {
align = 8;
size = 5;
encoding = UTF8;
};
};
event {
name = "simple_event";
id = 0;
stream_id = 0;
fields := integer {
size = 12;
};
};
event {
name = "other event";
id = 23;
stream_id = 0;
fields := struct {
string a;
uint16_t b;
} align(64);
};
event {
name = "some_event";
id = 0;
stream_id = 1;
variant named_variant {
uint32_t ZERO;
string {encoding = ASCII;} ONE;
struct {
unsigned long field[10];
} align(16) ELEVEN;
};
fields := struct {
struct a {
unsigned long a;
unsigned long b[23];
} _some_field;
typealias enum : unsigned long {
ZERO,
ONE,
TWO,
"the TEN" = 10,
ELEVEN,
"SOME RANGE" = 30...152,
} := my_enum;
struct a _field;
struct a _field2[stream.event.header.id][150];
my_enum _state;
variant named_variant <_state> _yeah;
};
};