Fix: relayd vs consumerd compatibility
[lttng-tools.git] / src / common / mi-lttng-3.0.xsd
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>
5 Copyright (c) 2016 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
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"
26 targetNamespace="http://lttng.org/xml/ns/lttng-mi"
27 xmlns:tns="http://lttng.org/xml/ns/lttng-mi"
28 elementFormDefault="qualified" version="3.0">
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
89 <!-- Maps to the lttng_event_context_type enum -->
90 <xs:simpleType name="context_type_type">
91 <xs:restriction base="xs:string">
92 <xs:enumeration value="PID" />
93 <xs:enumeration value="PROCNAME" />
94 <xs:enumeration value="PRIO" />
95 <xs:enumeration value="NICE" />
96 <xs:enumeration value="VPID" />
97 <xs:enumeration value="TID" />
98 <xs:enumeration value="VTID" />
99 <xs:enumeration value="PPID" />
100 <xs:enumeration value="VPPID" />
101 <xs:enumeration value="PTHREAD_ID" />
102 <xs:enumeration value="HOSTNAME" />
103 <xs:enumeration value="IP" />
104 </xs:restriction>
105 </xs:simpleType>
106
107 <!-- Maps to loglevel_string char * -->
108 <xs:simpleType name="loglevel_string_type">
109 <xs:restriction base="xs:string">
110 <xs:enumeration value="" />
111 <xs:enumeration value="TRACE_EMERG" />
112 <xs:enumeration value="TRACE_ALERT" />
113 <xs:enumeration value="TRACE_CRIT" />
114 <xs:enumeration value="TRACE_ERR" />
115 <xs:enumeration value="TRACE_WARNING" />
116 <xs:enumeration value="TRACE_NOTICE" />
117 <xs:enumeration value="TRACE_INFO" />
118 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
119 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
120 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
121 <xs:enumeration value="TRACE_DEBUG_MODULE" />
122 <xs:enumeration value="TRACE_DEBUG_UNIT" />
123 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
124 <xs:enumeration value="TRACE_DEBUG_LINE" />
125 <xs:enumeration value="TRACE_DEBUG" />
126 <xs:enumeration value="JUL_OFF" />
127 <xs:enumeration value="JUL_SEVERE" />
128 <xs:enumeration value="JUL_WARNING" />
129 <xs:enumeration value="JUL_INFO" />
130 <xs:enumeration value="JUL_CONFIG" />
131 <xs:enumeration value="JUL_FINE" />
132 <xs:enumeration value="JUL_FINER" />
133 <xs:enumeration value="JUL_FINEST" />
134 <xs:enumeration value="JUL_ALL" />
135 <xs:enumeration value="LOG4J_OFF" />
136 <xs:enumeration value="LOG4J_FATAL" />
137 <xs:enumeration value="LOG4J_ERROR" />
138 <xs:enumeration value="LOG4J_WARN" />
139 <xs:enumeration value="LOG4J_INFO" />
140 <xs:enumeration value="LOG4J_DEBUG" />
141 <xs:enumeration value="LOG4J_TRACE" />
142 <xs:enumeration value="LOG4J_ALL" />
143 <xs:enumeration value="PYTHON_CRITICAL" />
144 <xs:enumeration value="PYTHON_ERROR" />
145 <xs:enumeration value="PYTHON_WARNING" />
146 <xs:enumeration value="PYTHON_INFO" />
147 <xs:enumeration value="PYTHON_DEBUG" />
148 <xs:enumeration value="PYTHON_NOTSET" />
149 <xs:enumeration value="UNKNOWN" />
150 </xs:restriction>
151 </xs:simpleType>
152
153 <!-- Maps to the lttng_calibrate_type enum -->
154 <xs:simpleType name="calibrate_type_type">
155 <xs:restriction base="xs:string">
156 <xs:enumeration value="FUNCTION" />
157 </xs:restriction>
158 </xs:simpleType>
159
160 <!-- Maps to the lttng_event_probe_attr struct -->
161 <xs:complexType name="event_probe_attributes_type">
162 <xs:all>
163 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
164 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
165 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
166 </xs:all>
167 </xs:complexType>
168
169 <!-- Maps to the lttng_event_function_attr struct -->
170 <xs:complexType name="event_ftrace_attributes_type">
171 <xs:all>
172 <xs:element name="symbol_name" type="tns:name_type" />
173 </xs:all>
174 </xs:complexType>
175
176 <!-- Maps to per event type configuration -->
177 <xs:complexType name="event_attributes_type">
178 <xs:choice>
179 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
180 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
181 </xs:choice>
182 </xs:complexType>
183
184 <!-- Maps to exclusion type -->
185 <xs:complexType name="event_exclusion_list_type">
186 <xs:sequence>
187 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
188 </xs:sequence>
189 </xs:complexType>
190
191 <!-- Maps to lttng_event struct -->
192 <xs:complexType name="event_type">
193 <xs:all>
194 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
195 <xs:element name="name" type="tns:name_type" minOccurs="0" />
196 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
197 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
198 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
199 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
200 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
201 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
202 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
203 <xs:element name="success" type="xs:boolean" minOccurs="0" />
204 </xs:all>
205 </xs:complexType>
206
207 <!-- Maps to mi_lttng_version struct -->
208 <xs:complexType name="version_type">
209 <xs:all>
210 <xs:element name="name" type="tns:name_type" />
211 <xs:element name="string" type="tns:name_type" />
212 <xs:element name="major" type="tns:uint32_type" />
213 <xs:element name="url" type="xs:string" />
214 <xs:element name="minor" type="tns:uint32_type" />
215 <xs:element name="commit" type="xs:string" />
216 <xs:element name="license" type="xs:string" />
217 <xs:element name="patchLevel" type="tns:uint32_type" />
218 <xs:element name="description" type="xs:string" />
219 </xs:all>
220 </xs:complexType>
221
222 <!-- Maps to an array of event -->
223 <xs:complexType name="event_list_type">
224 <xs:sequence>
225 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
226 </xs:sequence>
227 </xs:complexType>
228
229 <!-- Maps to the lttng_domain_type enum -->
230 <xs:simpleType name="domain_type_type">
231 <xs:restriction base="xs:string">
232 <xs:enumeration value="KERNEL"/>
233 <xs:enumeration value="UST"/>
234 <xs:enumeration value="JUL"/>
235 <xs:enumeration value="LOG4J"/>
236 <xs:enumeration value="PYTHON"/>
237 </xs:restriction>
238 </xs:simpleType>
239
240 <!-- Maps to the lttng_buffer_type enum -->
241 <xs:simpleType name="domain_buffer_type">
242 <xs:restriction base="xs:string">
243 <xs:enumeration value="PER_PID"/>
244 <xs:enumeration value="PER_UID"/>
245 <xs:enumeration value="GLOBAL"/>
246 </xs:restriction>
247 </xs:simpleType>
248
249 <!-- Maps to the type mode of a channel -->
250 <xs:simpleType name="channel_overwrite_mode_type">
251 <xs:restriction base="xs:string">
252 <xs:enumeration value="DISCARD" />
253 <xs:enumeration value="OVERWRITE" />
254 </xs:restriction>
255 </xs:simpleType>
256
257 <!-- Maps to the lttng_event_output enum -->
258 <xs:simpleType name="event_output_type">
259 <xs:restriction base="xs:string">
260 <xs:enumeration value="SPLICE" />
261 <xs:enumeration value="MMAP" />
262 </xs:restriction>
263 </xs:simpleType>
264
265 <!-- map to a pid -->
266 <xs:complexType name="pid_type">
267 <xs:all>
268 <xs:element name="id" type="xs:int" />
269 <xs:element name="name" type="tns:name_type" />
270 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
271 </xs:all>
272 </xs:complexType>
273
274 <!-- maps to an array of pid -->
275 <xs:complexType name="pids_type">
276 <xs:sequence>
277 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
278 </xs:sequence>
279 </xs:complexType>
280
281 <xs:simpleType name="pidbyint">
282 <xs:restriction base="xs:integer">
283 <xs:minInclusive value="0"/>
284 <xs:maxInclusive value="4294967295" />
285 </xs:restriction>
286 </xs:simpleType>
287
288 <xs:simpleType name="pidwildcard">
289 <xs:restriction base="xs:string">
290 <xs:enumeration value="*"/>
291 </xs:restriction>
292 </xs:simpleType>
293
294 <xs:complexType name="pid_target_type">
295 <xs:all>
296 <xs:element name="pid">
297 <xs:simpleType>
298 <xs:union memberTypes="tns:pidbyint tns:pidwildcard" />
299 </xs:simpleType>
300 </xs:element>
301 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
302 </xs:all>
303 </xs:complexType>
304
305 <!-- Maps to a list of pid_targets-->
306 <xs:complexType name="targets_type">
307 <xs:sequence>
308 <xs:choice>
309 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
310 </xs:choice>
311 </xs:sequence>
312 </xs:complexType>
313
314 <!-- Maps to a pid_tracker-->
315 <xs:complexType name="pid_tracker_type">
316 <xs:all>
317 <xs:element name="targets" type="tns:targets_type" />
318 </xs:all>
319 </xs:complexType>
320
321 <!-- Maps to a list of trackers-->
322 <xs:complexType name="trackers_type">
323 <xs:sequence minOccurs="0" maxOccurs="unbounded">
324 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
325 </xs:sequence>
326 </xs:complexType>
327
328 <!-- Maps to struct lttng_domain and contains channels -->
329 <xs:complexType name="domain_type">
330 <xs:all>
331 <xs:element name="type" type="tns:domain_type_type" />
332 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
333 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
334 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
335 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
336 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
337 </xs:all>
338 </xs:complexType>
339
340 <!-- Maps to struct lttng_channel -->
341 <xs:complexType name="channel_type">
342 <xs:all>
343 <xs:element name="name" type="tns:name_type" />
344 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
345 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
346 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
347 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
348 </xs:all>
349 </xs:complexType>
350
351 <!-- Maps to struct lttng_channel_attr -->
352 <xs:complexType name="channel_attributes_type">
353 <xs:all>
354 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
355 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
356 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
357 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
358 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
359 <xs:element name="output_type" type="tns:event_output_type" />
360 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
361 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
362 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
363 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
364 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
365 </xs:all>
366 </xs:complexType>
367
368 <!-- Maps to struct lttng_snapshot_output -->
369 <xs:complexType name="snapshot_type">
370 <xs:all>
371 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
372 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
373 <xs:element name="name" type="tns:name_type" minOccurs="0" />
374 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
375 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
376 <xs:element name="data_url" type="xs:string" minOccurs="0" />
377 </xs:all>
378 </xs:complexType>
379
380 <xs:complexType name="snapshots_type">
381 <xs:sequence>
382 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
383 </xs:sequence>
384 </xs:complexType>
385
386 <xs:complexType name="channels_type">
387 <xs:sequence>
388 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
389 </xs:sequence>
390 </xs:complexType>
391
392 <!-- Maps to a lttng_session -->
393 <xs:complexType name="session_type">
394 <xs:all>
395 <xs:element name="name" type="tns:name_type" />
396 <xs:element name="path" type="xs:string" minOccurs="0" />
397 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
398 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
399 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
400 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
401 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
402 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
403 </xs:all>
404 </xs:complexType>
405
406 <!-- Maps to a lttng_event_field -->
407 <xs:complexType name="event_field_type">
408 <xs:all>
409 <xs:element name="name" type="tns:name_type" />
410 <xs:element name="type" type="tns:event_field_type_type" />
411 <xs:element name="nowrite" type="xs:int" />
412 </xs:all>
413 </xs:complexType>
414
415 <!-- Maps to the save command -->
416 <xs:complexType name="save_type">
417 <xs:all>
418 <xs:element name="session" type="tns:session_type" />
419 <xs:element name="path" type="xs:string" />
420 </xs:all>
421 </xs:complexType>
422
423 <!-- Maps to the load command -->
424 <xs:complexType name="load_type">
425 <xs:all>
426 <xs:element name="session" type="tns:session_type" />
427 <xs:element name="path" type="xs:string" />
428 <xs:element name="overrides" type="tns:overrides_type" />
429 </xs:all>
430 </xs:complexType>
431
432 <!-- Maps to the override parameters of the load command -->
433 <xs:complexType name="overrides_type">
434 <xs:all>
435 <xs:element name="name" type="tns:name_type" minOccurs="0" />
436 <xs:element name="url" type="xs:string" minOccurs="0" />
437 </xs:all>
438 </xs:complexType>
439
440 <!-- Maps to struct lttng_calibrate -->
441 <xs:complexType name="calibrate_type">
442 <xs:all>
443 <xs:element name="type" type="tns:calibrate_type_type" />
444 </xs:all>
445 </xs:complexType>
446
447 <!-- Maps to lttng_event_perf_counter_ctx -->
448 <xs:complexType name="perf_counter_context_type">
449 <xs:all>
450 <xs:element name="type" type="tns:uint32_type" />
451 <xs:element name="config" type="tns:uint64_type" />
452 <xs:element name="name" type="tns:name_type" />
453 </xs:all>
454 </xs:complexType>
455
456 <!-- Maps to app_ctx -->
457 <xs:complexType name="app_context_type">
458 <xs:all>
459 <xs:element name="provider_name" type="xs:string"/>
460 <xs:element name="ctx_name" type="xs:string"/>
461 </xs:all>
462 </xs:complexType>
463
464 <!-- Maps to lttng_event_context -->
465 <xs:complexType name="context_type">
466 <xs:choice>
467 <xs:element name="type" type="tns:context_type_type"/>
468 <xs:element name="perf" type="tns:perf_counter_context_type"/>
469 <xs:element name="app" type="tns:app_context_type"/>
470 </xs:choice>
471 </xs:complexType>
472
473 <!-- Maps to an array of domain -->
474 <xs:complexType name="domains_type">
475 <xs:sequence>
476 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
477 </xs:sequence>
478 </xs:complexType>
479
480 <!-- Maps to an array of session -->
481 <xs:complexType name="sessions_type">
482 <xs:sequence>
483 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
484 </xs:sequence>
485 </xs:complexType>
486
487 <!-- Maps to an array of event_field -->
488 <xs:complexType name="event_fields_type">
489 <xs:sequence>
490 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
491 </xs:sequence>
492 </xs:complexType>
493
494 <!-- Maps to an array of context -->
495 <xs:complexType name="contexts_type">
496 <xs:sequence>
497 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
498 </xs:sequence>
499 </xs:complexType>
500
501 <!-- Maps to an action during snapshot command -->
502 <xs:complexType name="snapshot_cmd_type">
503 <xs:sequence>
504 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
505 <xs:element name="output" type="tns:output_type" minOccurs="0" />
506 </xs:sequence>
507 </xs:complexType>
508
509 <!-- Type of snapshot commands -->
510 <xs:simpleType name="snapshot_action_type">
511 <xs:restriction base="xs:string">
512 <xs:enumeration value="list-output" />
513 <xs:enumeration value="del-output" />
514 <xs:enumeration value="add-output" />
515 <xs:enumeration value="record-output" />
516 </xs:restriction>
517 </xs:simpleType>
518
519 <!-- Maps to an action during metadata command -->
520 <xs:complexType name="metadata_cmd_type">
521 <xs:sequence>
522 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
523 </xs:sequence>
524 </xs:complexType>
525
526 <!-- Type of metadata commands -->
527 <xs:simpleType name="metadata_action_type">
528 <xs:restriction base="xs:string">
529 <xs:enumeration value="regenerate" />
530 </xs:restriction>
531 </xs:simpleType>
532
533 <!-- Type of regenerate commands -->
534 <xs:simpleType name="regenerate_action_type">
535 <xs:restriction base="xs:string">
536 <xs:enumeration value="metadata" />
537 <xs:enumeration value="statedump" />
538 </xs:restriction>
539 </xs:simpleType>
540
541 <!-- Type of regenerate command -->
542 <xs:complexType name="regenerate_cmd_type">
543 <xs:sequence>
544 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
545 </xs:sequence>
546 </xs:complexType>
547
548 <xs:complexType name="output_type">
549 <xs:choice>
550 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
551 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
552 <xs:element name="session" type="tns:session_type" minOccurs="0" />
553 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
554 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
555 <xs:element name="version" type="tns:version_type" minOccurs="0" />
556 <xs:element name="save" type="tns:save_type" minOccurs="0" />
557 <xs:element name="load" type="tns:load_type" minOccurs="0" />
558 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
559 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
560 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
561 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
562 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
563 <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
564 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
565 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
566 </xs:choice>
567 </xs:complexType>
568
569 <!-- Maps to the mi_lttng commands -->
570 <xs:simpleType name="command_string_type">
571 <xs:restriction base="xs:string">
572 <xs:enumeration value="create" />
573 <xs:enumeration value="list" />
574 <xs:enumeration value="snapshot" />
575 <xs:enumeration value="version" />
576 <xs:enumeration value="save" />
577 <xs:enumeration value="load" />
578 <xs:enumeration value="start" />
579 <xs:enumeration value="stop" />
580 <xs:enumeration value="destroy" />
581 <xs:enumeration value="calibrate" />
582 <xs:enumeration value="add-context" />
583 <xs:enumeration value="enable-channel" />
584 <xs:enumeration value="enable-event" />
585 <xs:enumeration value="set-session" />
586 <xs:enumeration value="disable-event" />
587 <xs:enumeration value="disable-channel" />
588 <xs:enumeration value="track" />
589 <xs:enumeration value="untrack" />
590 <xs:enumeration value="metadata" />
591 <xs:enumeration value="regenerate" />
592 </xs:restriction>
593 </xs:simpleType>
594
595 <xs:element name="command">
596 <xs:complexType>
597 <xs:all>
598 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
599 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
600 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
601 </xs:all>
602 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
603 </xs:complexType>
604 </xs:element>
605 </xs:schema>
This page took 0.042117 seconds and 4 git commands to generate.