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