trackers: update MI to new xsd schema
[deliverable/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="https://lttng.org/xml/ns/lttng-mi"
27 xmlns:tns="https://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="tracker_target_type">
297 <xs:restriction base="xs:string">
298 <xs:enumeration value="ALL" />
299 <xs:enumeration value="NONE" />
300 <xs:enumeration value="LIST" />
301 </xs:restriction>
302 </xs:simpleType>
303
304 <xs:simpleType name="pidbyint">
305 <xs:restriction base="xs:integer">
306 <xs:minInclusive value="0"/>
307 <xs:maxInclusive value="4294967295" />
308 </xs:restriction>
309 </xs:simpleType>
310
311 <xs:complexType name="pid_target_type_choice">
312 <xs:choice>
313 <xs:element name="id" type="tns:pidbyint" />
314 <xs:element name="name" type="xs:string" />
315 <xs:element name="all" type="xs:boolean" />
316 </xs:choice>
317 </xs:complexType>
318
319 <xs:complexType name="pid_target_type">
320 <xs:all>
321 <xs:element name="type" type="tns:pid_target_type_choice" />
322 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
323 </xs:all>
324 </xs:complexType>
325
326 <!-- Maps to a list of pid_targets-->
327 <xs:complexType name="pid_targets_type">
328 <xs:sequence>
329 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
330 </xs:sequence>
331 </xs:complexType>
332
333 <!-- Maps to a pid_tracker-->
334 <xs:complexType name="pid_tracker_type">
335 <xs:all>
336 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
337 <xs:element name="targets" type="tns:pid_targets_type" minOccurs="0" />
338 </xs:all>
339 </xs:complexType>
340
341 <xs:simpleType name="vpidbyint">
342 <xs:restriction base="xs:integer">
343 <xs:minInclusive value="0"/>
344 <xs:maxInclusive value="4294967295" />
345 </xs:restriction>
346 </xs:simpleType>
347
348 <xs:complexType name="vpid_target_type_choice">
349 <xs:choice>
350 <xs:element name="id" type="tns:vpidbyint" />
351 <xs:element name="name" type="xs:string" />
352 <xs:element name="all" type="xs:boolean" />
353 </xs:choice>
354 </xs:complexType>
355
356 <xs:complexType name="vpid_target_type">
357 <xs:all>
358 <xs:element name="type" type="tns:vpid_target_type_choice" minOccurs="0" maxOccurs="1" />
359 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
360 </xs:all>
361 </xs:complexType>
362
363 <!-- Maps to a list of vpid_targets-->
364 <xs:complexType name="vpid_targets_type">
365 <xs:sequence>
366 <xs:element name="vpid_target" type="tns:vpid_target_type" minOccurs="0" maxOccurs="unbounded"/>
367 </xs:sequence>
368 </xs:complexType>
369
370 <!-- Maps to a vpid_tracker-->
371 <xs:complexType name="vpid_tracker_type">
372 <xs:all>
373 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
374 <xs:element name="targets" type="tns:vpid_targets_type" minOccurs="0" />
375 </xs:all>
376 </xs:complexType>
377
378 <xs:simpleType name="uidbyint">
379 <xs:restriction base="xs:integer">
380 <xs:minInclusive value="0"/>
381 <xs:maxInclusive value="4294967295" />
382 </xs:restriction>
383 </xs:simpleType>
384
385 <xs:complexType name="uid_target_type_choice">
386 <xs:choice>
387 <xs:element name="id" type="tns:uidbyint" />
388 <xs:element name="name" type="xs:string" />
389 <xs:element name="all" type="xs:boolean" />
390 </xs:choice>
391 </xs:complexType>
392
393 <xs:complexType name="uid_target_type">
394 <xs:all>
395 <xs:element name="type" type="tns:uid_target_type_choice" minOccurs="0" maxOccurs="1" />
396 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
397 </xs:all>
398 </xs:complexType>
399
400 <!-- Maps to a list of uid_targets-->
401 <xs:complexType name="uid_targets_type">
402 <xs:sequence>
403 <xs:element name="uid_target" type="tns:uid_target_type" minOccurs="0" maxOccurs="unbounded"/>
404 </xs:sequence>
405 </xs:complexType>
406
407 <!-- Maps to a uid_tracker-->
408 <xs:complexType name="uid_tracker_type">
409 <xs:all>
410 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
411 <xs:element name="targets" type="tns:uid_targets_type" minOccurs="0" />
412 </xs:all>
413 </xs:complexType>
414
415 <xs:simpleType name="vuidbyint">
416 <xs:restriction base="xs:integer">
417 <xs:minInclusive value="0"/>
418 <xs:maxInclusive value="4294967295" />
419 </xs:restriction>
420 </xs:simpleType>
421
422 <xs:complexType name="vuid_target_type_choice">
423 <xs:choice>
424 <xs:element name="id" type="tns:vuidbyint" />
425 <xs:element name="name" type="xs:string" />
426 <xs:element name="all" type="xs:boolean" />
427 </xs:choice>
428 </xs:complexType>
429
430 <xs:complexType name="vuid_target_type">
431 <xs:all>
432 <xs:element name="type" type="tns:vuid_target_type_choice" minOccurs="0" maxOccurs="1" />
433 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
434 </xs:all>
435 </xs:complexType>
436
437 <!-- Maps to a list of vuid_targets-->
438 <xs:complexType name="vuid_targets_type">
439 <xs:sequence>
440 <xs:element name="vuid_target" type="tns:vuid_target_type" minOccurs="0" maxOccurs="unbounded"/>
441 </xs:sequence>
442 </xs:complexType>
443
444 <!-- Maps to a vuid_tracker-->
445 <xs:complexType name="vuid_tracker_type">
446 <xs:all>
447 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
448 <xs:element name="targets" type="tns:vuid_targets_type" minOccurs="0" />
449 </xs:all>
450 </xs:complexType>
451
452 <xs:simpleType name="gidbyint">
453 <xs:restriction base="xs:integer">
454 <xs:minInclusive value="0"/>
455 <xs:maxInclusive value="4294967295" />
456 </xs:restriction>
457 </xs:simpleType>
458
459 <xs:complexType name="gid_target_type_choice">
460 <xs:choice>
461 <xs:element name="id" type="tns:gidbyint" />
462 <xs:element name="name" type="xs:string" />
463 <xs:element name="all" type="xs:boolean" />
464 </xs:choice>
465 </xs:complexType>
466
467 <xs:complexType name="gid_target_type">
468 <xs:all>
469 <xs:element name="type" type="tns:gid_target_type_choice" minOccurs="0" maxOccurs="1" />
470 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
471 </xs:all>
472 </xs:complexType>
473
474 <!-- Maps to a list of gid_targets-->
475 <xs:complexType name="gid_targets_type">
476 <xs:sequence>
477 <xs:element name="gid_target" type="tns:gid_target_type" minOccurs="0" maxOccurs="unbounded"/>
478 </xs:sequence>
479 </xs:complexType>
480
481 <!-- Maps to a gid_tracker-->
482 <xs:complexType name="gid_tracker_type">
483 <xs:all>
484 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
485 <xs:element name="targets" type="tns:gid_targets_type" minOccurs="0" />
486 </xs:all>
487 </xs:complexType>
488
489 <xs:simpleType name="vgidbyint">
490 <xs:restriction base="xs:integer">
491 <xs:minInclusive value="0"/>
492 <xs:maxInclusive value="4294967295" />
493 </xs:restriction>
494 </xs:simpleType>
495
496 <xs:complexType name="vgid_target_type_choice">
497 <xs:choice>
498 <xs:element name="id" type="tns:vgidbyint" />
499 <xs:element name="name" type="xs:string" />
500 <xs:element name="all" type="xs:boolean" />
501 </xs:choice>
502 </xs:complexType>
503
504 <xs:complexType name="vgid_target_type">
505 <xs:all>
506 <xs:element name="type" type="tns:vgid_target_type_choice" minOccurs="0" maxOccurs="1" />
507 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
508 </xs:all>
509 </xs:complexType>
510
511 <!-- Maps to a list of vgid_targets-->
512 <xs:complexType name="vgid_targets_type">
513 <xs:sequence>
514 <xs:element name="vgid_target" type="tns:vgid_target_type" minOccurs="0" maxOccurs="unbounded"/>
515 </xs:sequence>
516 </xs:complexType>
517
518 <!-- Maps to a vgid_tracker-->
519 <xs:complexType name="vgid_tracker_type">
520 <xs:all>
521 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
522 <xs:element name="targets" type="tns:vgid_targets_type" minOccurs="0" />
523 </xs:all>
524 </xs:complexType>
525
526 <!-- Maps to a list of trackers-->
527 <xs:complexType name="trackers_type">
528 <xs:sequence>
529 <xs:choice minOccurs="0" maxOccurs="unbounded">
530 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
531 <xs:element name="vpid_tracker" type="tns:vpid_tracker_type" maxOccurs="1" />
532 <xs:element name="uid_tracker" type="tns:uid_tracker_type" maxOccurs="1" />
533 <xs:element name="vuid_tracker" type="tns:vuid_tracker_type" maxOccurs="1" />
534 <xs:element name="gid_tracker" type="tns:gid_tracker_type" maxOccurs="1" />
535 <xs:element name="vgid_tracker" type="tns:vgid_tracker_type" maxOccurs="1" />
536 </xs:choice>
537 </xs:sequence>
538 </xs:complexType>
539
540 <!-- Maps to struct lttng_domain and contains channels -->
541 <xs:complexType name="domain_type">
542 <xs:all>
543 <xs:element name="type" type="tns:domain_type_type" />
544 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
545 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
546 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
547 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
548 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
549 </xs:all>
550 </xs:complexType>
551
552 <!-- Maps to struct lttng_channel -->
553 <xs:complexType name="channel_type">
554 <xs:all>
555 <xs:element name="name" type="tns:name_type" />
556 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
557 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
558 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
559 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
560 </xs:all>
561 </xs:complexType>
562
563 <!-- Maps to struct lttng_channel_attr -->
564 <xs:complexType name="channel_attributes_type">
565 <xs:all>
566 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
567 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
568 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
569 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
570 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
571 <xs:element name="output_type" type="tns:event_output_type" />
572 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
573 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
574 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
575 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
576 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
577 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
578 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
579 </xs:all>
580 </xs:complexType>
581
582 <!-- Maps to struct lttng_snapshot_output -->
583 <xs:complexType name="snapshot_type">
584 <xs:all>
585 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
586 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
587 <xs:element name="name" type="tns:name_type" minOccurs="0" />
588 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
589 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
590 <xs:element name="data_url" type="xs:string" minOccurs="0" />
591 </xs:all>
592 </xs:complexType>
593
594 <xs:complexType name="snapshots_type">
595 <xs:sequence>
596 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
597 </xs:sequence>
598 </xs:complexType>
599
600 <xs:complexType name="channels_type">
601 <xs:sequence>
602 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
603 </xs:sequence>
604 </xs:complexType>
605
606 <!-- Maps to a lttng_session -->
607 <xs:complexType name="session_type">
608 <xs:all>
609 <xs:element name="name" type="tns:name_type" />
610 <xs:element name="path" type="xs:string" minOccurs="0" />
611 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
612 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
613 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
614 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
615 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
616 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
617 <xs:element name="rotation_schedule_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
618 <xs:element name="rotation_schedule_timer_period" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- usec -->
619 </xs:all>
620 </xs:complexType>
621
622 <!-- Maps to a lttng_event_field -->
623 <xs:complexType name="event_field_type">
624 <xs:all>
625 <xs:element name="name" type="tns:name_type" />
626 <xs:element name="type" type="tns:event_field_type_type" />
627 <xs:element name="nowrite" type="xs:int" />
628 </xs:all>
629 </xs:complexType>
630
631 <!-- Maps to the save command -->
632 <xs:complexType name="save_type">
633 <xs:all>
634 <xs:element name="session" type="tns:session_type" />
635 <xs:element name="path" type="xs:string" />
636 </xs:all>
637 </xs:complexType>
638
639 <!-- Maps to the load command -->
640 <xs:complexType name="load_type">
641 <xs:all>
642 <xs:element name="session" type="tns:session_type" />
643 <xs:element name="path" type="xs:string" />
644 <xs:element name="overrides" type="tns:overrides_type" />
645 </xs:all>
646 </xs:complexType>
647
648 <!-- Maps to the override parameters of the load command -->
649 <xs:complexType name="overrides_type">
650 <xs:all>
651 <xs:element name="name" type="tns:name_type" minOccurs="0" />
652 <xs:element name="url" type="xs:string" minOccurs="0" />
653 </xs:all>
654 </xs:complexType>
655
656 <!-- Maps to struct lttng_calibrate -->
657 <xs:complexType name="calibrate_type">
658 <xs:all>
659 <xs:element name="type" type="tns:calibrate_type_type" />
660 </xs:all>
661 </xs:complexType>
662
663 <!-- Maps to lttng_event_perf_counter_ctx -->
664 <xs:complexType name="perf_counter_context_type">
665 <xs:all>
666 <xs:element name="type" type="tns:uint32_type" />
667 <xs:element name="config" type="tns:uint64_type" />
668 <xs:element name="name" type="tns:name_type" />
669 </xs:all>
670 </xs:complexType>
671
672 <!-- Maps to app_ctx -->
673 <xs:complexType name="app_context_type">
674 <xs:all>
675 <xs:element name="provider_name" type="xs:string"/>
676 <xs:element name="ctx_name" type="xs:string"/>
677 </xs:all>
678 </xs:complexType>
679
680 <!-- Maps to lttng_event_context -->
681 <xs:complexType name="context_type">
682 <xs:sequence>
683 <xs:choice>
684 <xs:element name="type" type="tns:context_type_type"/>
685 <xs:element name="perf" type="tns:perf_counter_context_type"/>
686 <xs:element name="app" type="tns:app_context_type"/>
687 </xs:choice>
688 <xs:element name="symbol" type="xs:string" minOccurs="0" />
689 </xs:sequence>
690 </xs:complexType>
691
692 <!-- Maps to an array of domain -->
693 <xs:complexType name="domains_type">
694 <xs:sequence>
695 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
696 </xs:sequence>
697 </xs:complexType>
698
699 <!-- Maps to an array of session -->
700 <xs:complexType name="sessions_type">
701 <xs:sequence>
702 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
703 </xs:sequence>
704 </xs:complexType>
705
706 <!-- Maps to an array of event_field -->
707 <xs:complexType name="event_fields_type">
708 <xs:sequence>
709 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
710 </xs:sequence>
711 </xs:complexType>
712
713 <!-- Maps to an array of context -->
714 <xs:complexType name="contexts_type">
715 <xs:sequence>
716 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
717 </xs:sequence>
718 </xs:complexType>
719
720 <!-- Maps to an action during snapshot command -->
721 <xs:complexType name="snapshot_cmd_type">
722 <xs:sequence>
723 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
724 <xs:element name="output" type="tns:output_type" minOccurs="0" />
725 </xs:sequence>
726 </xs:complexType>
727
728 <!-- Type of snapshot commands -->
729 <xs:simpleType name="snapshot_action_type">
730 <xs:restriction base="xs:string">
731 <xs:enumeration value="list-output" />
732 <xs:enumeration value="del-output" />
733 <xs:enumeration value="add-output" />
734 <xs:enumeration value="record-output" />
735 </xs:restriction>
736 </xs:simpleType>
737
738 <!-- Maps to an action during metadata command -->
739 <xs:complexType name="metadata_cmd_type">
740 <xs:sequence>
741 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
742 </xs:sequence>
743 </xs:complexType>
744
745 <!-- Type of metadata commands -->
746 <xs:simpleType name="metadata_action_type">
747 <xs:restriction base="xs:string">
748 <xs:enumeration value="regenerate" />
749 </xs:restriction>
750 </xs:simpleType>
751
752 <!-- Type of regenerate commands -->
753 <xs:simpleType name="regenerate_action_type">
754 <xs:restriction base="xs:string">
755 <xs:enumeration value="metadata" />
756 <xs:enumeration value="statedump" />
757 </xs:restriction>
758 </xs:simpleType>
759
760 <!-- Type of regenerate command -->
761 <xs:complexType name="regenerate_cmd_type">
762 <xs:sequence>
763 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
764 </xs:sequence>
765 </xs:complexType>
766
767 <!-- Maps to the rotate command -->
768 <xs:complexType name="rotation_type">
769 <xs:all>
770 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
771 <xs:element name="status" type="xs:string" />
772 <xs:element name="path" type="xs:string" minOccurs="0" />
773 </xs:all>
774 </xs:complexType>
775
776 <!-- Maps to an array of rotations -->
777 <xs:complexType name="rotations_type">
778 <xs:sequence>
779 <xs:element name="rotation" type="tns:rotation_type" minOccurs="0" maxOccurs="unbounded" />
780 </xs:sequence>
781 </xs:complexType>
782
783 <!-- Maps to the enable-rotation command -->
784 <xs:complexType name="rotation_schedule_type">
785 <xs:sequence>
786 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
787 <xs:element name="rotation_schedule_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
788 <xs:element name="rotation_schedule_timer_period" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- usec -->
789 <xs:element name="status" type="xs:string" minOccurs="0"/>
790 </xs:sequence>
791 </xs:complexType>
792
793 <xs:complexType name="output_type">
794 <xs:choice>
795 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
796 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
797 <xs:element name="session" type="tns:session_type" minOccurs="0" />
798 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
799 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
800 <xs:element name="version" type="tns:version_type" minOccurs="0" />
801 <xs:element name="save" type="tns:save_type" minOccurs="0" />
802 <xs:element name="load" type="tns:load_type" minOccurs="0" />
803 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
804 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
805 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
806 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
807 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
808 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
809 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
810 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
811 <xs:element name="rotations" type="tns:rotations_type" minOccurs="0" />
812 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="0" />
813 </xs:choice>
814 </xs:complexType>
815
816 <!-- Maps to the mi_lttng commands -->
817 <xs:simpleType name="command_string_type">
818 <xs:restriction base="xs:string">
819 <xs:enumeration value="create" />
820 <xs:enumeration value="list" />
821 <xs:enumeration value="snapshot" />
822 <xs:enumeration value="version" />
823 <xs:enumeration value="save" />
824 <xs:enumeration value="load" />
825 <xs:enumeration value="start" />
826 <xs:enumeration value="stop" />
827 <xs:enumeration value="destroy" />
828 <xs:enumeration value="calibrate" />
829 <xs:enumeration value="add-context" />
830 <xs:enumeration value="enable-channel" />
831 <xs:enumeration value="enable-event" />
832 <xs:enumeration value="set-session" />
833 <xs:enumeration value="disable-event" />
834 <xs:enumeration value="disable-channel" />
835 <xs:enumeration value="track" />
836 <xs:enumeration value="untrack" />
837 <xs:enumeration value="metadata" />
838 <xs:enumeration value="regenerate" />
839 <xs:enumeration value="rotate" />
840 <xs:enumeration value="enable-rotation" />
841 <xs:enumeration value="disable-rotation" />
842 </xs:restriction>
843 </xs:simpleType>
844
845 <xs:element name="command">
846 <xs:complexType>
847 <xs:all>
848 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
849 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
850 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
851 </xs:all>
852 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
853 </xs:complexType>
854 </xs:element>
855 </xs:schema>
This page took 0.049997 seconds and 5 git commands to generate.