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