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