Commit | Line | Data |
---|---|---|
c5e38b74 JR |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!-- | |
3 | Copyright (c) 2014 - Oliver Cotte <olivier.cotte@polymtl.ca> | |
4 | - Jonathan Rajotte <jonathan.r.julien@gmail.com> | |
654f9f5e | 5 | Copyright (c) 2016 - Jérémie Galarneau <jeremie.galarneau@efficios.com> |
c5e38b74 JR |
6 | |
7 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
8 | of this software and associated documentation files (the "Software"), to deal | |
9 | in the Software without restriction, including without limitation the rights | |
10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
11 | copies of the Software, and to permit persons to whom the Software is | |
12 | furnished to do so, subject to the following conditions: | |
13 | ||
14 | The above copyright notice and this permission notice shall be included in | |
15 | all copies or substantial portions of the Software. | |
16 | ||
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
23 | THE SOFTWARE. | |
24 | --> | |
25 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
654f9f5e | 26 | elementFormDefault="qualified" version="3.0"> |
c5e38b74 JR |
27 | |
28 | <!-- Maps to the uint32_t type --> | |
29 | <xs:simpleType name="uint32_type"> | |
30 | <xs:restriction base="xs:integer"> | |
31 | <xs:minInclusive value="0" /> | |
32 | <xs:maxInclusive value="4294967295" /> | |
33 | </xs:restriction> | |
34 | </xs:simpleType> | |
35 | ||
36 | <!-- Maps to the uint64_t type --> | |
37 | <xs:simpleType name="uint64_type"> | |
38 | <xs:restriction base="xs:integer"> | |
39 | <xs:minInclusive value="0" /> | |
40 | <xs:maxInclusive value="18446744073709551615" /> | |
41 | </xs:restriction> | |
42 | </xs:simpleType> | |
43 | ||
44 | <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] --> | |
45 | <xs:simpleType name="name_type"> | |
46 | <xs:restriction base="xs:string"> | |
47 | <xs:maxLength value="255" /> | |
48 | </xs:restriction> | |
49 | </xs:simpleType> | |
50 | ||
51 | <!-- Maps to the lttng_event_type enum --> | |
52 | <xs:simpleType name="event_type_type"> | |
53 | <xs:restriction base="xs:string"> | |
54 | <xs:enumeration value="ALL" /> | |
55 | <xs:enumeration value="TRACEPOINT" /> | |
56 | <xs:enumeration value="PROBE" /> | |
57 | <xs:enumeration value="FUNCTION" /> | |
58 | <xs:enumeration value="FUNCTION_ENTRY" /> | |
59 | <xs:enumeration value="NOOP" /> | |
60 | <xs:enumeration value="SYSCALL" /> | |
61 | <xs:enumeration value="KPROBE" /> | |
62 | <xs:enumeration value="KRETPROBE" /> | |
63 | </xs:restriction> | |
64 | </xs:simpleType> | |
65 | ||
66 | <!-- Maps to the lttng_event_field_type enum --> | |
67 | <xs:simpleType name="event_field_type_type"> | |
68 | <xs:restriction base="xs:string"> | |
69 | <xs:enumeration value="OTHER" /> | |
70 | <xs:enumeration value="INTEGER" /> | |
71 | <xs:enumeration value="ENUM" /> | |
72 | <xs:enumeration value="FLOAT" /> | |
73 | <xs:enumeration value="STRING" /> | |
74 | </xs:restriction> | |
75 | </xs:simpleType> | |
76 | ||
77 | <!-- Maps to the lttng_loglevel_type enum --> | |
78 | <xs:simpleType name="loglevel_type"> | |
79 | <xs:restriction base="xs:string"> | |
80 | <xs:enumeration value="ALL" /> | |
81 | <xs:enumeration value="RANGE" /> | |
82 | <xs:enumeration value="SINGLE" /> | |
83 | <xs:enumeration value="UNKNOWN" /> | |
84 | </xs:restriction> | |
85 | </xs:simpleType> | |
86 | ||
c9ffe7f5 | 87 | <!-- Maps to the lttng_event_context_type enum --> |
89b72577 JRJ |
88 | <xs:simpleType name="context_type_type"> |
89 | <xs:restriction base="xs:string"> | |
90 | <xs:enumeration value="PERF_COUNTER" /> | |
91 | <xs:enumeration value="PERF_CPU_COUNTER" /> | |
92 | <xs:enumeration value="PERF_THREAD_COUNTER" /> | |
93 | <xs:enumeration value="PID" /> | |
94 | <xs:enumeration value="PROCNAME" /> | |
95 | <xs:enumeration value="PRIO" /> | |
96 | <xs:enumeration value="NICE" /> | |
97 | <xs:enumeration value="VPID" /> | |
98 | <xs:enumeration value="TID" /> | |
99 | <xs:enumeration value="VTID" /> | |
100 | <xs:enumeration value="PPID" /> | |
101 | <xs:enumeration value="VPPID" /> | |
102 | <xs:enumeration value="PTHREAD_ID" /> | |
103 | <xs:enumeration value="HOSTNAME" /> | |
104 | <xs:enumeration value="IP" /> | |
105 | </xs:restriction> | |
106 | </xs:simpleType> | |
107 | ||
c5e38b74 JR |
108 | <!-- Maps to loglevel_string char * --> |
109 | <xs:simpleType name="loglevel_string_type"> | |
110 | <xs:restriction base="xs:string"> | |
111 | <xs:enumeration value="" /> | |
112 | <xs:enumeration value="TRACE_EMERG" /> | |
113 | <xs:enumeration value="TRACE_ALERT" /> | |
114 | <xs:enumeration value="TRACE_CRIT" /> | |
115 | <xs:enumeration value="TRACE_ERR" /> | |
116 | <xs:enumeration value="TRACE_WARNING" /> | |
117 | <xs:enumeration value="TRACE_NOTICE" /> | |
118 | <xs:enumeration value="TRACE_INFO" /> | |
119 | <xs:enumeration value="TRACE_DEBUG_SYSTEM" /> | |
120 | <xs:enumeration value="TRACE_DEBUG_PROGRAM" /> | |
121 | <xs:enumeration value="TRACE_DEBUG_PROCESS" /> | |
122 | <xs:enumeration value="TRACE_DEBUG_MODULE" /> | |
123 | <xs:enumeration value="TRACE_DEBUG_UNIT" /> | |
124 | <xs:enumeration value="TRACE_DEBUG_FUNCTION" /> | |
125 | <xs:enumeration value="TRACE_DEBUG_LINE" /> | |
126 | <xs:enumeration value="TRACE_DEBUG" /> | |
136f2f81 JRJ |
127 | <xs:enumeration value="JUL_OFF" /> |
128 | <xs:enumeration value="JUL_SEVERE" /> | |
129 | <xs:enumeration value="JUL_WARNING" /> | |
130 | <xs:enumeration value="JUL_INFO" /> | |
131 | <xs:enumeration value="JUL_CONFIG" /> | |
132 | <xs:enumeration value="JUL_FINE" /> | |
133 | <xs:enumeration value="JUL_FINER" /> | |
134 | <xs:enumeration value="JUL_FINEST" /> | |
135 | <xs:enumeration value="JUL_ALL" /> | |
e4d12c27 DG |
136 | <xs:enumeration value="LOG4J_OFF" /> |
137 | <xs:enumeration value="LOG4J_FATAL" /> | |
138 | <xs:enumeration value="LOG4J_ERROR" /> | |
139 | <xs:enumeration value="LOG4J_WARN" /> | |
140 | <xs:enumeration value="LOG4J_INFO" /> | |
141 | <xs:enumeration value="LOG4J_DEBUG" /> | |
142 | <xs:enumeration value="LOG4J_TRACE" /> | |
143 | <xs:enumeration value="LOG4J_ALL" /> | |
0e115563 DG |
144 | <xs:enumeration value="PYTHON_CRITICAL" /> |
145 | <xs:enumeration value="PYTHON_ERROR" /> | |
146 | <xs:enumeration value="PYTHON_WARNING" /> | |
147 | <xs:enumeration value="PYTHON_INFO" /> | |
148 | <xs:enumeration value="PYTHON_DEBUG" /> | |
149 | <xs:enumeration value="PYTHON_NOTSET" /> | |
c5e38b74 JR |
150 | <xs:enumeration value="UNKNOWN" /> |
151 | </xs:restriction> | |
152 | </xs:simpleType> | |
153 | ||
7e66b1b0 JRJ |
154 | <!-- Maps to the lttng_calibrate_type enum --> |
155 | <xs:simpleType name="calibrate_type_type"> | |
156 | <xs:restriction base="xs:string"> | |
157 | <xs:enumeration value="FUNCTION" /> | |
158 | </xs:restriction> | |
159 | </xs:simpleType> | |
160 | ||
c5e38b74 JR |
161 | <!-- Maps to the lttng_event_probe_attr struct --> |
162 | <xs:complexType name="event_probe_attributes_type"> | |
163 | <xs:all> | |
3b4a6e40 JRJ |
164 | <xs:element name="address" type="uint64_type" minOccurs="0" /> |
165 | <xs:element name="offset" type="uint64_type" minOccurs="0" /> | |
166 | <xs:element name="symbol_name" type="name_type" minOccurs="0" /> | |
c5e38b74 JR |
167 | </xs:all> |
168 | </xs:complexType> | |
169 | ||
170 | <!-- Maps to the lttng_event_function_attr struct --> | |
171 | <xs:complexType name="event_ftrace_attributes_type"> | |
172 | <xs:all> | |
173 | <xs:element name="symbol_name" type="name_type" /> | |
174 | </xs:all> | |
175 | </xs:complexType> | |
176 | ||
177 | <!-- Maps to per event type configuration --> | |
178 | <xs:complexType name="event_attributes_type"> | |
179 | <xs:choice> | |
180 | <xs:element name="probe_attributes" type="event_probe_attributes_type" /> | |
181 | <xs:element name="function_attributes" type="event_ftrace_attributes_type" /> | |
182 | </xs:choice> | |
183 | </xs:complexType> | |
184 | ||
f4a088f7 | 185 | <!-- Maps to exclusion type --> |
89476427 JRJ |
186 | <xs:complexType name="event_exclusion_list_type"> |
187 | <xs:sequence> | |
188 | <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> | |
189 | </xs:sequence> | |
190 | </xs:complexType> | |
191 | ||
c5e38b74 JR |
192 | <!-- Maps to lttng_event struct --> |
193 | <xs:complexType name="event_type"> | |
194 | <xs:all> | |
195 | <xs:element name="type" type="event_type_type" default="TRACEPOINT" minOccurs="0" /> | |
196 | <xs:element name="name" type="name_type" minOccurs="0" /> | |
197 | <xs:element name="loglevel_type" type="loglevel_type" default="ALL" minOccurs="0" /> | |
198 | <xs:element name="loglevel" type="loglevel_string_type" default="" minOccurs="0" /> | |
199 | <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" /> | |
7b4aa11d | 200 | <xs:element name="filter_expression" type="xs:string" minOccurs="0" /> |
c5e38b74 | 201 | <xs:element name="exclusion" type="xs:boolean" minOccurs="0" /> |
89476427 | 202 | <xs:element name="exclusions" type="event_exclusion_list_type" minOccurs="0"/> |
c5e38b74 JR |
203 | <xs:element name="attributes" type="event_attributes_type" minOccurs="0" /> |
204 | <xs:element name="event_fields" type="event_fields_type" minOccurs="0" /> | |
89476427 | 205 | <xs:element name="success" type="xs:boolean" minOccurs="0" /> |
c5e38b74 JR |
206 | </xs:all> |
207 | </xs:complexType> | |
208 | ||
209 | <!-- Maps to mi_lttng_version struct --> | |
210 | <xs:complexType name="version_type"> | |
211 | <xs:all> | |
212 | <xs:element name="name" type="name_type" /> | |
213 | <xs:element name="string" type="name_type" /> | |
214 | <xs:element name="major" type="uint32_type" /> | |
215 | <xs:element name="url" type="xs:string" /> | |
216 | <xs:element name="minor" type="uint32_type" /> | |
314d5222 | 217 | <xs:element name="commit" type="xs:string" /> |
c5e38b74 JR |
218 | <xs:element name="license" type="xs:string" /> |
219 | <xs:element name="patchLevel" type="uint32_type" /> | |
220 | <xs:element name="description" type="xs:string" /> | |
221 | </xs:all> | |
222 | </xs:complexType> | |
223 | ||
f4a088f7 | 224 | <!-- Maps to an array of event --> |
c5e38b74 JR |
225 | <xs:complexType name="event_list_type"> |
226 | <xs:sequence> | |
227 | <xs:element name="event" type="event_type" minOccurs="0" maxOccurs="unbounded" /> | |
228 | </xs:sequence> | |
229 | </xs:complexType> | |
230 | ||
231 | <!-- Maps to the lttng_domain_type enum --> | |
232 | <xs:simpleType name="domain_type_type"> | |
233 | <xs:restriction base="xs:string"> | |
234 | <xs:enumeration value="KERNEL"/> | |
235 | <xs:enumeration value="UST"/> | |
236 | <xs:enumeration value="JUL"/> | |
e4d12c27 | 237 | <xs:enumeration value="LOG4J"/> |
0e115563 | 238 | <xs:enumeration value="PYTHON"/> |
c5e38b74 JR |
239 | </xs:restriction> |
240 | </xs:simpleType> | |
241 | ||
242 | <!-- Maps to the lttng_buffer_type enum --> | |
243 | <xs:simpleType name="domain_buffer_type"> | |
244 | <xs:restriction base="xs:string"> | |
245 | <xs:enumeration value="PER_PID"/> | |
246 | <xs:enumeration value="PER_UID"/> | |
247 | <xs:enumeration value="GLOBAL"/> | |
248 | </xs:restriction> | |
249 | </xs:simpleType> | |
250 | ||
f4a088f7 | 251 | <!-- Maps to the type mode of a channel --> |
c5e38b74 JR |
252 | <xs:simpleType name="channel_overwrite_mode_type"> |
253 | <xs:restriction base="xs:string"> | |
254 | <xs:enumeration value="DISCARD" /> | |
255 | <xs:enumeration value="OVERWRITE" /> | |
256 | </xs:restriction> | |
257 | </xs:simpleType> | |
258 | ||
259 | <!-- Maps to the lttng_event_output enum --> | |
260 | <xs:simpleType name="event_output_type"> | |
261 | <xs:restriction base="xs:string"> | |
262 | <xs:enumeration value="SPLICE" /> | |
263 | <xs:enumeration value="MMAP" /> | |
264 | </xs:restriction> | |
265 | </xs:simpleType> | |
266 | ||
bf239d4c JR |
267 | <!-- map to a pid --> |
268 | <xs:complexType name="pid_type"> | |
c5e38b74 | 269 | <xs:all> |
bf239d4c JR |
270 | <xs:element name="id" type="xs:int" /> |
271 | <xs:element name="name" type="name_type" /> | |
c5e38b74 JR |
272 | <xs:element name="events" type="event_list_type" minOccurs="0" /> |
273 | </xs:all> | |
274 | </xs:complexType> | |
275 | ||
bf239d4c | 276 | <!-- maps to an array of pid --> |
c5e38b74 JR |
277 | <xs:complexType name="pids_type"> |
278 | <xs:sequence> | |
bf239d4c | 279 | <xs:element name="pid" type="pid_type" minOccurs="0" maxOccurs="unbounded" /> |
c12fcec9 JG |
280 | </xs:sequence> |
281 | </xs:complexType> | |
282 | ||
283 | <xs:simpleType name="pidbyint"> | |
284 | <xs:restriction base="xs:integer"> | |
285 | <xs:minInclusive value="0"/> | |
286 | <xs:maxInclusive value="4294967295" /> | |
287 | </xs:restriction> | |
288 | </xs:simpleType> | |
289 | ||
290 | <xs:simpleType name="pidwildcard"> | |
291 | <xs:restriction base="xs:string"> | |
292 | <xs:enumeration value="*"/> | |
293 | </xs:restriction> | |
294 | </xs:simpleType> | |
295 | ||
296 | <xs:complexType name="pid_target_type"> | |
297 | <xs:all> | |
298 | <xs:element name="pid"> | |
299 | <xs:simpleType> | |
300 | <xs:union memberTypes="pidbyint pidwildcard" /> | |
301 | </xs:simpleType> | |
302 | </xs:element> | |
303 | <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" /> | |
304 | </xs:all> | |
305 | </xs:complexType> | |
306 | ||
307 | <!-- Maps to a list of pid_targets--> | |
308 | <xs:complexType name="targets_type"> | |
309 | <xs:sequence> | |
310 | <xs:choice> | |
311 | <xs:element name="pid_target" type="pid_target_type" minOccurs="0" maxOccurs="unbounded"/> | |
312 | </xs:choice> | |
313 | </xs:sequence> | |
314 | </xs:complexType> | |
315 | ||
316 | <!-- Maps to a pid_tracker--> | |
317 | <xs:complexType name="pid_tracker_type"> | |
318 | <xs:all> | |
319 | <xs:element name="targets" type="targets_type" /> | |
320 | </xs:all> | |
321 | </xs:complexType> | |
322 | ||
323 | <!-- Maps to a list of trackers--> | |
324 | <xs:complexType name="trackers_type"> | |
325 | <xs:sequence minOccurs="0" maxOccurs="unbounded"> | |
326 | <xs:element name="pid_tracker" type="pid_tracker_type" maxOccurs="1" /> | |
c5e38b74 JR |
327 | </xs:sequence> |
328 | </xs:complexType> | |
329 | ||
330 | <!-- Maps to struct lttng_domain and contains channels --> | |
331 | <xs:complexType name="domain_type"> | |
332 | <xs:all> | |
f4a088f7 | 333 | <xs:element name="type" type="domain_type_type" /> |
7e66b1b0 | 334 | <xs:element name="buffer_type" type="domain_buffer_type" /> |
bf239d4c | 335 | <xs:element name="pids" type="pids_type" minOccurs="0" /> |
c5e38b74 JR |
336 | <xs:element name="channels" type="channels_type" minOccurs="0" /> |
337 | <xs:element name="events" type="event_list_type" minOccurs="0" /> | |
c12fcec9 | 338 | <xs:element name="trackers" type="trackers_type" minOccurs="0" /> |
c5e38b74 JR |
339 | </xs:all> |
340 | </xs:complexType> | |
341 | ||
342 | <!-- Maps to struct lttng_channel --> | |
343 | <xs:complexType name="channel_type"> | |
344 | <xs:all> | |
f4a088f7 JRJ |
345 | <xs:element name="name" type="name_type" /> |
346 | <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" /> | |
347 | <xs:element name="attributes" type="channel_attributes_type" minOccurs="0" /> | |
348 | <xs:element name="events" type="event_list_type" minOccurs="0" /> | |
9618049b | 349 | <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" /> |
c5e38b74 JR |
350 | </xs:all> |
351 | </xs:complexType> | |
352 | ||
353 | <!-- Maps to struct lttng_channel_attr --> | |
354 | <xs:complexType name="channel_attributes_type"> | |
355 | <xs:all> | |
f4a088f7 JRJ |
356 | <xs:element name="overwrite_mode" type="channel_overwrite_mode_type" default="DISCARD" minOccurs="0" /> |
357 | <xs:element name="subbuffer_size" type="uint64_type" minOccurs="0" /> <!-- bytes --> | |
358 | <xs:element name="subbuffer_count" type="uint64_type" default="4" minOccurs="0" /> | |
359 | <xs:element name="switch_timer_interval" type="uint32_type" default="0" minOccurs="0" /> <!-- usec --> | |
360 | <xs:element name="read_timer_interval" type="uint32_type" /> <!-- usec --> | |
361 | <xs:element name="output_type" type="event_output_type" /> | |
362 | <xs:element name="tracefile_size" type="uint64_type" default="0" minOccurs="0" /> <!-- bytes --> | |
363 | <xs:element name="tracefile_count" type="uint64_type" default="0" minOccurs="0" /> | |
364 | <xs:element name="live_timer_interval" type="uint32_type" default="0" minOccurs="0" /> <!-- usec --> | |
c5e38b74 JR |
365 | </xs:all> |
366 | </xs:complexType> | |
367 | ||
50534d6f JRJ |
368 | <!-- Maps to struct lttng_snapshot_output --> |
369 | <xs:complexType name="snapshot_type"> | |
370 | <xs:all> | |
371 | <xs:element name="id" type="uint32_type" minOccurs="0" /> | |
372 | <xs:element name="max_size" type="uint64_type" minOccurs="0" /> | |
373 | <xs:element name="name" type="name_type" minOccurs="0" /> | |
374 | <xs:element name="session_name" type="name_type" minOccurs="0" /> | |
f4a088f7 JRJ |
375 | <xs:element name="ctrl_url" type="name_type" minOccurs="0" /> |
376 | <xs:element name="data_url" type="name_type" minOccurs="0" /> | |
50534d6f JRJ |
377 | </xs:all> |
378 | </xs:complexType> | |
379 | ||
380 | <xs:complexType name="snapshots_type"> | |
381 | <xs:sequence> | |
382 | <xs:element name="snapshot" type="snapshot_type" minOccurs="0" maxOccurs="unbounded" /> | |
383 | </xs:sequence> | |
384 | </xs:complexType> | |
385 | ||
c5e38b74 JR |
386 | <xs:complexType name="channels_type"> |
387 | <xs:sequence> | |
388 | <xs:element name="channel" type="channel_type" minOccurs="0" maxOccurs="unbounded" /> | |
389 | </xs:sequence> | |
390 | </xs:complexType> | |
391 | ||
f4a088f7 | 392 | <!-- Maps to a lttng_session --> |
c5e38b74 JR |
393 | <xs:complexType name="session_type"> |
394 | <xs:all> | |
395 | <xs:element name="name" type="name_type" /> | |
1734c658 JRJ |
396 | <xs:element name="path" type="name_type" minOccurs="0" /> |
397 | <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" /> | |
398 | <xs:element name="snapshot_mode" type="uint32_type" minOccurs="0" /> | |
399 | <xs:element name="live_timer_interval" type="uint32_type" minOccurs="0" /> | |
c5e38b74 JR |
400 | <xs:element name="channels" type="channels_type" minOccurs="0" /> |
401 | <xs:element name="domains" type="domains_type" minOccurs="0" /> | |
50534d6f | 402 | <xs:element name="snapshots" type="snapshots_type" minOccurs="0" /> |
c5e38b74 JR |
403 | </xs:all> |
404 | </xs:complexType> | |
405 | ||
f4a088f7 | 406 | <!-- Maps to a lttng_event_field --> |
c5e38b74 JR |
407 | <xs:complexType name="event_field_type"> |
408 | <xs:all> | |
409 | <xs:element name="name" type="name_type" /> | |
f4a088f7 JRJ |
410 | <xs:element name="type" type="event_field_type_type" /> |
411 | <xs:element name="nowrite" type="xs:int" /> | |
c5e38b74 JR |
412 | </xs:all> |
413 | </xs:complexType> | |
414 | ||
17c4550a | 415 | <!-- Maps to the save command --> |
1734c658 JRJ |
416 | <xs:complexType name="save_type"> |
417 | <xs:all> | |
418 | <xs:element name="session" type="session_type" /> | |
f4a088f7 | 419 | <xs:element name="path" type="name_type" /> |
1734c658 JRJ |
420 | </xs:all> |
421 | </xs:complexType> | |
422 | ||
17c4550a | 423 | <!-- Maps to the load command --> |
1734c658 JRJ |
424 | <xs:complexType name="load_type"> |
425 | <xs:all> | |
426 | <xs:element name="session" type="session_type" /> | |
f4a088f7 | 427 | <xs:element name="path" type="name_type" /> |
1734c658 JRJ |
428 | </xs:all> |
429 | </xs:complexType> | |
c5e38b74 | 430 | |
7e66b1b0 JRJ |
431 | <!-- Maps to struct lttng_calibrate --> |
432 | <xs:complexType name="calibrate_type"> | |
433 | <xs:all> | |
434 | <xs:element name="type" type="calibrate_type_type" /> | |
435 | </xs:all> | |
436 | </xs:complexType> | |
437 | ||
17c4550a | 438 | <!-- Maps to lttng_event_perf_counter_ctx --> |
89b72577 JRJ |
439 | <xs:complexType name="perf_counter_context_type"> |
440 | <xs:all> | |
441 | <xs:element name="type" type="uint32_type" /> | |
442 | <xs:element name="config" type="uint64_type" /> | |
443 | <xs:element name="name" type="name_type" /> | |
444 | </xs:all> | |
445 | </xs:complexType> | |
446 | ||
17c4550a | 447 | <!-- Maps to lttng_event_context --> |
89b72577 JRJ |
448 | <xs:complexType name="context_type"> |
449 | <xs:all> | |
450 | <xs:element name="type" type="context_type_type" /> | |
451 | <xs:element name="perf_counter_context" type="perf_counter_context_type" minOccurs="0" /> | |
89b72577 JRJ |
452 | <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" /> |
453 | </xs:all> | |
454 | </xs:complexType> | |
455 | ||
f4a088f7 | 456 | <!-- Maps to an array of domain --> |
c5e38b74 JR |
457 | <xs:complexType name="domains_type"> |
458 | <xs:sequence> | |
459 | <xs:element name="domain" type="domain_type" minOccurs="0" maxOccurs="unbounded" /> | |
460 | </xs:sequence> | |
461 | </xs:complexType> | |
462 | ||
f4a088f7 | 463 | <!-- Maps to an array of session --> |
c5e38b74 JR |
464 | <xs:complexType name="sessions_type"> |
465 | <xs:sequence> | |
466 | <xs:element name="session" type="session_type" minOccurs="0" maxOccurs="unbounded" /> | |
467 | </xs:sequence> | |
468 | </xs:complexType> | |
469 | ||
f4a088f7 | 470 | <!-- Maps to an array of event_field --> |
c5e38b74 JR |
471 | <xs:complexType name="event_fields_type"> |
472 | <xs:sequence> | |
473 | <xs:element name="event_field" type="event_field_type" minOccurs="0" maxOccurs="unbounded" /> | |
474 | </xs:sequence> | |
475 | </xs:complexType> | |
476 | ||
f4a088f7 | 477 | <!-- Maps to an array of context --> |
89b72577 JRJ |
478 | <xs:complexType name="contexts_type"> |
479 | <xs:sequence> | |
480 | <xs:element name="context" type="context_type" minOccurs="0" maxOccurs="unbounded" /> | |
481 | </xs:sequence> | |
482 | </xs:complexType> | |
483 | ||
f4a088f7 | 484 | <!-- Maps to an action dutring snapshot command --> |
50534d6f JRJ |
485 | <xs:complexType name="snapshot_action_type"> |
486 | <xs:sequence> | |
487 | <xs:element name="name" type="snapshot_actiontype_type" minOccurs="0" /> | |
488 | <xs:element name="output" type="output_type" minOccurs="0" /> | |
489 | </xs:sequence> | |
490 | </xs:complexType> | |
491 | ||
492 | <!-- Type of snapshot commands --> | |
493 | <xs:simpleType name="snapshot_actiontype_type"> | |
494 | <xs:restriction base="xs:string"> | |
f4a088f7 JRJ |
495 | <xs:enumeration value="list-output" /> |
496 | <xs:enumeration value="del-output" /> | |
497 | <xs:enumeration value="add-output" /> | |
498 | <xs:enumeration value="record-output" /> | |
50534d6f JRJ |
499 | </xs:restriction> |
500 | </xs:simpleType> | |
501 | ||
c5e38b74 JR |
502 | <xs:complexType name="output_type"> |
503 | <xs:choice> | |
504 | <xs:element name="domains" type="domains_type" minOccurs="0" /> | |
505 | <xs:element name="sessions" type="sessions_type" minOccurs="0" /> | |
37d03ff7 | 506 | <xs:element name="session" type="session_type" minOccurs="0" /> |
50534d6f | 507 | <xs:element name="snapshot_action" type="snapshot_action_type" minOccurs="0" /> |
99e88aea | 508 | <xs:element name="snapshot" type="snapshot_type" minOccurs="0" /> |
c5e38b74 | 509 | <xs:element name="version" type="version_type" minOccurs="0" /> |
1734c658 JRJ |
510 | <xs:element name="save" type="save_type" minOccurs="0" /> |
511 | <xs:element name="load" type="load_type" minOccurs="0" /> | |
7e66b1b0 | 512 | <xs:element name="calibrate" type="calibrate_type" minOccurs="0" /> |
89b72577 | 513 | <xs:element name="contexts" type="contexts_type" minOccurs="0" /> |
acc09215 | 514 | <xs:element name="channels" type="channels_type" minOccurs="0" /> |
89476427 | 515 | <xs:element name="events" type="event_list_type" minOccurs="0" /> |
e4d484a5 | 516 | <xs:element name="channel" type="channel_type" minOccurs="0" /> |
c12fcec9 | 517 | <xs:element name="targets" type="targets_type" minOccurs="0" /> |
c5e38b74 JR |
518 | </xs:choice> |
519 | </xs:complexType> | |
520 | ||
521 | <!-- Maps to the mi_lttng commands --> | |
522 | <xs:simpleType name="command_string_type"> | |
523 | <xs:restriction base="xs:string"> | |
37d03ff7 | 524 | <xs:enumeration value="create" /> |
c5e38b74 | 525 | <xs:enumeration value="list" /> |
50534d6f | 526 | <xs:enumeration value="snapshot" /> |
c5e38b74 | 527 | <xs:enumeration value="version" /> |
1734c658 JRJ |
528 | <xs:enumeration value="save" /> |
529 | <xs:enumeration value="load" /> | |
1cfc0bc8 | 530 | <xs:enumeration value="start" /> |
e5b83100 | 531 | <xs:enumeration value="stop" /> |
65f25c66 | 532 | <xs:enumeration value="destroy" /> |
7e66b1b0 | 533 | <xs:enumeration value="calibrate" /> |
89b72577 | 534 | <xs:enumeration value="add-context" /> |
acc09215 | 535 | <xs:enumeration value="enable-channel" /> |
89476427 | 536 | <xs:enumeration value="enable-event" /> |
ce91cd0b | 537 | <xs:enumeration value="set-session" /> |
e4d484a5 | 538 | <xs:enumeration value="disable-event" /> |
50534d6f | 539 | <xs:enumeration value="disable-channel" /> |
c12fcec9 JG |
540 | <xs:enumeration value="track" /> |
541 | <xs:enumeration value="untrack" /> | |
c5e38b74 JR |
542 | </xs:restriction> |
543 | </xs:simpleType> | |
544 | ||
545 | <xs:element name="command"> | |
546 | <xs:complexType> | |
547 | <xs:all> | |
548 | <xs:element name="name" type="command_string_type" maxOccurs="1" /> | |
549 | <xs:element name="output" type="output_type" maxOccurs="1" /> | |
1734c658 | 550 | <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" /> |
c5e38b74 JR |
551 | </xs:all> |
552 | </xs:complexType> | |
553 | </xs:element> | |
554 | </xs:schema> |