doc: Fix bind address example for lttng-relayd
[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: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
87 <!-- Maps to the lttng_event_context_type enum -->
88 <xs:simpleType name="context_type_type">
89 <xs:restriction base="xs:string">
90 <xs:enumeration value="PID" />
91 <xs:enumeration value="PROCNAME" />
92 <xs:enumeration value="PRIO" />
93 <xs:enumeration value="NICE" />
94 <xs:enumeration value="VPID" />
95 <xs:enumeration value="TID" />
96 <xs:enumeration value="VTID" />
97 <xs:enumeration value="PPID" />
98 <xs:enumeration value="VPPID" />
99 <xs:enumeration value="PTHREAD_ID" />
100 <xs:enumeration value="HOSTNAME" />
101 <xs:enumeration value="IP" />
102 <xs:enumeration value="INTERRUPTIBLE" />
103 <xs:enumeration value="PREEMPTIBLE" />
104 <xs:enumeration value="NEED_RESCHEDULE" />
105 <xs:enumeration value="MIGRATABLE" />
106 </xs:restriction>
107 </xs:simpleType>
108
109 <!-- Maps to loglevel_string char * -->
110 <xs:simpleType name="loglevel_string_type">
111 <xs:restriction base="xs:string">
112 <xs:enumeration value="" />
113 <xs:enumeration value="TRACE_EMERG" />
114 <xs:enumeration value="TRACE_ALERT" />
115 <xs:enumeration value="TRACE_CRIT" />
116 <xs:enumeration value="TRACE_ERR" />
117 <xs:enumeration value="TRACE_WARNING" />
118 <xs:enumeration value="TRACE_NOTICE" />
119 <xs:enumeration value="TRACE_INFO" />
120 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
121 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
122 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
123 <xs:enumeration value="TRACE_DEBUG_MODULE" />
124 <xs:enumeration value="TRACE_DEBUG_UNIT" />
125 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
126 <xs:enumeration value="TRACE_DEBUG_LINE" />
127 <xs:enumeration value="TRACE_DEBUG" />
128 <xs:enumeration value="JUL_OFF" />
129 <xs:enumeration value="JUL_SEVERE" />
130 <xs:enumeration value="JUL_WARNING" />
131 <xs:enumeration value="JUL_INFO" />
132 <xs:enumeration value="JUL_CONFIG" />
133 <xs:enumeration value="JUL_FINE" />
134 <xs:enumeration value="JUL_FINER" />
135 <xs:enumeration value="JUL_FINEST" />
136 <xs:enumeration value="JUL_ALL" />
137 <xs:enumeration value="LOG4J_OFF" />
138 <xs:enumeration value="LOG4J_FATAL" />
139 <xs:enumeration value="LOG4J_ERROR" />
140 <xs:enumeration value="LOG4J_WARN" />
141 <xs:enumeration value="LOG4J_INFO" />
142 <xs:enumeration value="LOG4J_DEBUG" />
143 <xs:enumeration value="LOG4J_TRACE" />
144 <xs:enumeration value="LOG4J_ALL" />
145 <xs:enumeration value="PYTHON_CRITICAL" />
146 <xs:enumeration value="PYTHON_ERROR" />
147 <xs:enumeration value="PYTHON_WARNING" />
148 <xs:enumeration value="PYTHON_INFO" />
149 <xs:enumeration value="PYTHON_DEBUG" />
150 <xs:enumeration value="PYTHON_NOTSET" />
151 <xs:enumeration value="UNKNOWN" />
152 </xs:restriction>
153 </xs:simpleType>
154
155 <!-- Maps to the lttng_calibrate_type enum -->
156 <xs:simpleType name="calibrate_type_type">
157 <xs:restriction base="xs:string">
158 <xs:enumeration value="FUNCTION" />
159 </xs:restriction>
160 </xs:simpleType>
161
162 <!-- Maps to the lttng_event_probe_attr struct -->
163 <xs:complexType name="event_probe_attributes_type">
164 <xs:all>
165 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
166 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
167 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
168 </xs:all>
169 </xs:complexType>
170
171 <!-- Maps to the lttng_event_function_attr struct -->
172 <xs:complexType name="event_ftrace_attributes_type">
173 <xs:all>
174 <xs:element name="symbol_name" type="tns:name_type" />
175 </xs:all>
176 </xs:complexType>
177
178 <!-- Maps to per event type configuration -->
179 <xs:complexType name="event_attributes_type">
180 <xs:choice>
181 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
182 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
183 </xs:choice>
184 </xs:complexType>
185
186 <!-- Maps to exclusion type -->
187 <xs:complexType name="event_exclusion_list_type">
188 <xs:sequence>
189 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
190 </xs:sequence>
191 </xs:complexType>
192
193 <!-- Maps to lttng_event struct -->
194 <xs:complexType name="event_type">
195 <xs:all>
196 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
197 <xs:element name="name" type="tns:name_type" minOccurs="0" />
198 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
199 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
200 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
201 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
202 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
203 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
204 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
205 <xs:element name="success" type="xs:boolean" minOccurs="0" />
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="tns:name_type" />
213 <xs:element name="string" type="tns:name_type" />
214 <xs:element name="major" type="tns:uint32_type" />
215 <xs:element name="url" type="xs:string" />
216 <xs:element name="minor" type="tns:uint32_type" />
217 <xs:element name="commit" type="xs:string" />
218 <xs:element name="license" type="xs:string" />
219 <xs:element name="patchLevel" type="tns:uint32_type" />
220 <xs:element name="description" type="xs:string" />
221 </xs:all>
222 </xs:complexType>
223
224 <!-- Maps to an array of event -->
225 <xs:complexType name="event_list_type">
226 <xs:sequence>
227 <xs:element name="event" type="tns: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"/>
237 <xs:enumeration value="LOG4J"/>
238 <xs:enumeration value="PYTHON"/>
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
251 <!-- Maps to the type mode of a channel -->
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
267 <!-- map to a pid -->
268 <xs:complexType name="pid_type">
269 <xs:all>
270 <xs:element name="id" type="xs:int" />
271 <xs:element name="name" type="tns:name_type" />
272 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
273 </xs:all>
274 </xs:complexType>
275
276 <!-- maps to an array of pid -->
277 <xs:complexType name="pids_type">
278 <xs:sequence>
279 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
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="tns:pidbyint tns: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="tns: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="tns: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="tns:pid_tracker_type" maxOccurs="1" />
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>
333 <xs:element name="type" type="tns:domain_type_type" />
334 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
335 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
336 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
337 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
338 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
339 </xs:all>
340 </xs:complexType>
341
342 <!-- Maps to struct lttng_channel -->
343 <xs:complexType name="channel_type">
344 <xs:all>
345 <xs:element name="name" type="tns:name_type" />
346 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
347 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
348 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
349 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
350 </xs:all>
351 </xs:complexType>
352
353 <!-- Maps to struct lttng_channel_attr -->
354 <xs:complexType name="channel_attributes_type">
355 <xs:all>
356 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
357 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
358 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
359 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
360 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
361 <xs:element name="output_type" type="tns:event_output_type" />
362 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
363 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
364 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
365 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
366 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
367 </xs:all>
368 </xs:complexType>
369
370 <!-- Maps to struct lttng_snapshot_output -->
371 <xs:complexType name="snapshot_type">
372 <xs:all>
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="xs:string" minOccurs="0" />
378 <xs:element name="data_url" type="xs:string" minOccurs="0" />
379 </xs:all>
380 </xs:complexType>
381
382 <xs:complexType name="snapshots_type">
383 <xs:sequence>
384 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
385 </xs:sequence>
386 </xs:complexType>
387
388 <xs:complexType name="channels_type">
389 <xs:sequence>
390 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
391 </xs:sequence>
392 </xs:complexType>
393
394 <!-- Maps to a lttng_session -->
395 <xs:complexType name="session_type">
396 <xs:all>
397 <xs:element name="name" type="tns:name_type" />
398 <xs:element name="path" type="xs:string" minOccurs="0" />
399 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
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" />
405 </xs:all>
406 </xs:complexType>
407
408 <!-- Maps to a lttng_event_field -->
409 <xs:complexType name="event_field_type">
410 <xs:all>
411 <xs:element name="name" type="tns:name_type" />
412 <xs:element name="type" type="tns:event_field_type_type" />
413 <xs:element name="nowrite" type="xs:int" />
414 </xs:all>
415 </xs:complexType>
416
417 <!-- Maps to the save command -->
418 <xs:complexType name="save_type">
419 <xs:all>
420 <xs:element name="session" type="tns:session_type" />
421 <xs:element name="path" type="xs:string" />
422 </xs:all>
423 </xs:complexType>
424
425 <!-- Maps to the load command -->
426 <xs:complexType name="load_type">
427 <xs:all>
428 <xs:element name="session" type="tns:session_type" />
429 <xs:element name="path" type="xs:string" />
430 <xs:element name="overrides" type="tns:overrides_type" />
431 </xs:all>
432 </xs:complexType>
433
434 <!-- Maps to the override parameters of the load command -->
435 <xs:complexType name="overrides_type">
436 <xs:all>
437 <xs:element name="name" type="tns:name_type" minOccurs="0" />
438 <xs:element name="url" type="xs:string" minOccurs="0" />
439 </xs:all>
440 </xs:complexType>
441
442 <!-- Maps to struct lttng_calibrate -->
443 <xs:complexType name="calibrate_type">
444 <xs:all>
445 <xs:element name="type" type="tns:calibrate_type_type" />
446 </xs:all>
447 </xs:complexType>
448
449 <!-- Maps to lttng_event_perf_counter_ctx -->
450 <xs:complexType name="perf_counter_context_type">
451 <xs:all>
452 <xs:element name="type" type="tns:uint32_type" />
453 <xs:element name="config" type="tns:uint64_type" />
454 <xs:element name="name" type="tns:name_type" />
455 </xs:all>
456 </xs:complexType>
457
458 <!-- Maps to app_ctx -->
459 <xs:complexType name="app_context_type">
460 <xs:all>
461 <xs:element name="provider_name" type="xs:string"/>
462 <xs:element name="ctx_name" type="xs:string"/>
463 </xs:all>
464 </xs:complexType>
465
466 <!-- Maps to lttng_event_context -->
467 <xs:complexType name="context_type">
468 <xs:choice>
469 <xs:element name="type" type="tns:context_type_type"/>
470 <xs:element name="perf" type="tns:perf_counter_context_type"/>
471 <xs:element name="app" type="tns:app_context_type"/>
472 </xs:choice>
473 </xs:complexType>
474
475 <!-- Maps to an array of domain -->
476 <xs:complexType name="domains_type">
477 <xs:sequence>
478 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
479 </xs:sequence>
480 </xs:complexType>
481
482 <!-- Maps to an array of session -->
483 <xs:complexType name="sessions_type">
484 <xs:sequence>
485 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
486 </xs:sequence>
487 </xs:complexType>
488
489 <!-- Maps to an array of event_field -->
490 <xs:complexType name="event_fields_type">
491 <xs:sequence>
492 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
493 </xs:sequence>
494 </xs:complexType>
495
496 <!-- Maps to an array of context -->
497 <xs:complexType name="contexts_type">
498 <xs:sequence>
499 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
500 </xs:sequence>
501 </xs:complexType>
502
503 <!-- Maps to an action during snapshot command -->
504 <xs:complexType name="snapshot_cmd_type">
505 <xs:sequence>
506 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
507 <xs:element name="output" type="tns:output_type" minOccurs="0" />
508 </xs:sequence>
509 </xs:complexType>
510
511 <!-- Type of snapshot commands -->
512 <xs:simpleType name="snapshot_action_type">
513 <xs:restriction base="xs:string">
514 <xs:enumeration value="list-output" />
515 <xs:enumeration value="del-output" />
516 <xs:enumeration value="add-output" />
517 <xs:enumeration value="record-output" />
518 </xs:restriction>
519 </xs:simpleType>
520
521 <!-- Maps to an action during metadata command -->
522 <xs:complexType name="metadata_cmd_type">
523 <xs:sequence>
524 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
525 </xs:sequence>
526 </xs:complexType>
527
528 <!-- Type of metadata commands -->
529 <xs:simpleType name="metadata_action_type">
530 <xs:restriction base="xs:string">
531 <xs:enumeration value="regenerate" />
532 </xs:restriction>
533 </xs:simpleType>
534
535 <!-- Type of regenerate commands -->
536 <xs:simpleType name="regenerate_action_type">
537 <xs:restriction base="xs:string">
538 <xs:enumeration value="metadata" />
539 <xs:enumeration value="statedump" />
540 </xs:restriction>
541 </xs:simpleType>
542
543 <!-- Type of regenerate command -->
544 <xs:complexType name="regenerate_cmd_type">
545 <xs:sequence>
546 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
547 </xs:sequence>
548 </xs:complexType>
549
550 <xs:complexType name="output_type">
551 <xs:choice>
552 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
553 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
554 <xs:element name="session" type="tns:session_type" minOccurs="0" />
555 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
556 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
557 <xs:element name="version" type="tns:version_type" minOccurs="0" />
558 <xs:element name="save" type="tns:save_type" minOccurs="0" />
559 <xs:element name="load" type="tns:load_type" minOccurs="0" />
560 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
561 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
562 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
563 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
564 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
565 <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
566 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
567 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
568 </xs:choice>
569 </xs:complexType>
570
571 <!-- Maps to the mi_lttng commands -->
572 <xs:simpleType name="command_string_type">
573 <xs:restriction base="xs:string">
574 <xs:enumeration value="create" />
575 <xs:enumeration value="list" />
576 <xs:enumeration value="snapshot" />
577 <xs:enumeration value="version" />
578 <xs:enumeration value="save" />
579 <xs:enumeration value="load" />
580 <xs:enumeration value="start" />
581 <xs:enumeration value="stop" />
582 <xs:enumeration value="destroy" />
583 <xs:enumeration value="calibrate" />
584 <xs:enumeration value="add-context" />
585 <xs:enumeration value="enable-channel" />
586 <xs:enumeration value="enable-event" />
587 <xs:enumeration value="set-session" />
588 <xs:enumeration value="disable-event" />
589 <xs:enumeration value="disable-channel" />
590 <xs:enumeration value="track" />
591 <xs:enumeration value="untrack" />
592 <xs:enumeration value="metadata" />
593 <xs:enumeration value="regenerate" />
594 </xs:restriction>
595 </xs:simpleType>
596
597 <xs:element name="command">
598 <xs:complexType>
599 <xs:all>
600 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
601 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
602 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
603 </xs:all>
604 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
605 </xs:complexType>
606 </xs:element>
607 </xs:schema>
This page took 0.044492 seconds and 4 git commands to generate.