Tests: Fix: Use '.logfile' instead of '.log' for test app output
[lttng-tools.git] / 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:element name="rotation_schedule_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
421 <xs:element name="rotation_schedule_timer_period" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- usec -->
422 </xs:all>
423 </xs:complexType>
424
425 <!-- Maps to a lttng_event_field -->
426 <xs:complexType name="event_field_type">
427 <xs:all>
428 <xs:element name="name" type="tns:name_type" />
429 <xs:element name="type" type="tns:event_field_type_type" />
430 <xs:element name="nowrite" type="xs:int" />
431 </xs:all>
432 </xs:complexType>
433
434 <!-- Maps to the save command -->
435 <xs:complexType name="save_type">
436 <xs:all>
437 <xs:element name="session" type="tns:session_type" />
438 <xs:element name="path" type="xs:string" />
439 </xs:all>
440 </xs:complexType>
441
442 <!-- Maps to the load command -->
443 <xs:complexType name="load_type">
444 <xs:all>
445 <xs:element name="session" type="tns:session_type" />
446 <xs:element name="path" type="xs:string" />
447 <xs:element name="overrides" type="tns:overrides_type" />
448 </xs:all>
449 </xs:complexType>
450
451 <!-- Maps to the override parameters of the load command -->
452 <xs:complexType name="overrides_type">
453 <xs:all>
454 <xs:element name="name" type="tns:name_type" minOccurs="0" />
455 <xs:element name="url" type="xs:string" minOccurs="0" />
456 </xs:all>
457 </xs:complexType>
458
459 <!-- Maps to struct lttng_calibrate -->
460 <xs:complexType name="calibrate_type">
461 <xs:all>
462 <xs:element name="type" type="tns:calibrate_type_type" />
463 </xs:all>
464 </xs:complexType>
465
466 <!-- Maps to lttng_event_perf_counter_ctx -->
467 <xs:complexType name="perf_counter_context_type">
468 <xs:all>
469 <xs:element name="type" type="tns:uint32_type" />
470 <xs:element name="config" type="tns:uint64_type" />
471 <xs:element name="name" type="tns:name_type" />
472 </xs:all>
473 </xs:complexType>
474
475 <!-- Maps to app_ctx -->
476 <xs:complexType name="app_context_type">
477 <xs:all>
478 <xs:element name="provider_name" type="xs:string"/>
479 <xs:element name="ctx_name" type="xs:string"/>
480 </xs:all>
481 </xs:complexType>
482
483 <!-- Maps to lttng_event_context -->
484 <xs:complexType name="context_type">
485 <xs:sequence>
486 <xs:choice>
487 <xs:element name="type" type="tns:context_type_type"/>
488 <xs:element name="perf" type="tns:perf_counter_context_type"/>
489 <xs:element name="app" type="tns:app_context_type"/>
490 </xs:choice>
491 <xs:element name="symbol" type="xs:string" minOccurs="0" />
492 </xs:sequence>
493 </xs:complexType>
494
495 <!-- Maps to an array of domain -->
496 <xs:complexType name="domains_type">
497 <xs:sequence>
498 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
499 </xs:sequence>
500 </xs:complexType>
501
502 <!-- Maps to an array of session -->
503 <xs:complexType name="sessions_type">
504 <xs:sequence>
505 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
506 </xs:sequence>
507 </xs:complexType>
508
509 <!-- Maps to an array of event_field -->
510 <xs:complexType name="event_fields_type">
511 <xs:sequence>
512 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
513 </xs:sequence>
514 </xs:complexType>
515
516 <!-- Maps to an array of context -->
517 <xs:complexType name="contexts_type">
518 <xs:sequence>
519 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
520 </xs:sequence>
521 </xs:complexType>
522
523 <!-- Maps to an action during snapshot command -->
524 <xs:complexType name="snapshot_cmd_type">
525 <xs:sequence>
526 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
527 <xs:element name="output" type="tns:output_type" minOccurs="0" />
528 </xs:sequence>
529 </xs:complexType>
530
531 <!-- Type of snapshot commands -->
532 <xs:simpleType name="snapshot_action_type">
533 <xs:restriction base="xs:string">
534 <xs:enumeration value="list-output" />
535 <xs:enumeration value="del-output" />
536 <xs:enumeration value="add-output" />
537 <xs:enumeration value="record-output" />
538 </xs:restriction>
539 </xs:simpleType>
540
541 <!-- Maps to an action during metadata command -->
542 <xs:complexType name="metadata_cmd_type">
543 <xs:sequence>
544 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
545 </xs:sequence>
546 </xs:complexType>
547
548 <!-- Type of metadata commands -->
549 <xs:simpleType name="metadata_action_type">
550 <xs:restriction base="xs:string">
551 <xs:enumeration value="regenerate" />
552 </xs:restriction>
553 </xs:simpleType>
554
555 <!-- Type of regenerate commands -->
556 <xs:simpleType name="regenerate_action_type">
557 <xs:restriction base="xs:string">
558 <xs:enumeration value="metadata" />
559 <xs:enumeration value="statedump" />
560 </xs:restriction>
561 </xs:simpleType>
562
563 <!-- Type of regenerate command -->
564 <xs:complexType name="regenerate_cmd_type">
565 <xs:sequence>
566 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
567 </xs:sequence>
568 </xs:complexType>
569
570 <!-- Maps to the rotate command -->
571 <xs:complexType name="rotation_type">
572 <xs:all>
573 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
574 <xs:element name="status" type="xs:string" />
575 <xs:element name="path" type="xs:string" minOccurs="0" />
576 </xs:all>
577 </xs:complexType>
578
579 <!-- Maps to an array of rotations -->
580 <xs:complexType name="rotations_type">
581 <xs:sequence>
582 <xs:element name="rotation" type="tns:rotation_type" minOccurs="0" maxOccurs="unbounded" />
583 </xs:sequence>
584 </xs:complexType>
585
586 <!-- Maps to the enable-rotation command -->
587 <xs:complexType name="rotation_schedule_type">
588 <xs:sequence>
589 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
590 <xs:element name="rotation_schedule_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
591 <xs:element name="rotation_schedule_timer_period" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- usec -->
592 <xs:element name="status" type="xs:string" minOccurs="0"/>
593 </xs:sequence>
594 </xs:complexType>
595
596 <xs:complexType name="output_type">
597 <xs:choice>
598 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
599 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
600 <xs:element name="session" type="tns:session_type" minOccurs="0" />
601 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
602 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
603 <xs:element name="version" type="tns:version_type" minOccurs="0" />
604 <xs:element name="save" type="tns:save_type" minOccurs="0" />
605 <xs:element name="load" type="tns:load_type" minOccurs="0" />
606 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
607 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
608 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
609 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
610 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
611 <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
612 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
613 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
614 <xs:element name="rotations" type="tns:rotations_type" minOccurs="0" />
615 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="0" />
616 </xs:choice>
617 </xs:complexType>
618
619 <!-- Maps to the mi_lttng commands -->
620 <xs:simpleType name="command_string_type">
621 <xs:restriction base="xs:string">
622 <xs:enumeration value="create" />
623 <xs:enumeration value="list" />
624 <xs:enumeration value="snapshot" />
625 <xs:enumeration value="version" />
626 <xs:enumeration value="save" />
627 <xs:enumeration value="load" />
628 <xs:enumeration value="start" />
629 <xs:enumeration value="stop" />
630 <xs:enumeration value="destroy" />
631 <xs:enumeration value="calibrate" />
632 <xs:enumeration value="add-context" />
633 <xs:enumeration value="enable-channel" />
634 <xs:enumeration value="enable-event" />
635 <xs:enumeration value="set-session" />
636 <xs:enumeration value="disable-event" />
637 <xs:enumeration value="disable-channel" />
638 <xs:enumeration value="track" />
639 <xs:enumeration value="untrack" />
640 <xs:enumeration value="metadata" />
641 <xs:enumeration value="regenerate" />
642 <xs:enumeration value="rotate" />
643 <xs:enumeration value="enable-rotation" />
644 <xs:enumeration value="disable-rotation" />
645 </xs:restriction>
646 </xs:simpleType>
647
648 <xs:element name="command">
649 <xs:complexType>
650 <xs:all>
651 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
652 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
653 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
654 </xs:all>
655 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
656 </xs:complexType>
657 </xs:element>
658 </xs:schema>
This page took 0.068391 seconds and 4 git commands to generate.