lttng: list: replace domain headers with the official names
[lttng-tools.git] / src / common / mi-lttng-4.0.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2014 Oliver Cotte <olivier.cotte@polymtl.ca>
4 Copyright (C) 2014 Jonathan Rajotte <jonathan.r.julien@gmail.com>
5 Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6
7 SPDX-License-Identifier: MIT
8
9 -->
10 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
11 targetNamespace="https://lttng.org/xml/ns/lttng-mi"
12 xmlns:tns="https://lttng.org/xml/ns/lttng-mi"
13 elementFormDefault="qualified" version="4.0">
14
15 <!-- Maps to the uint32_t type -->
16 <xs:simpleType name="uint32_type">
17 <xs:restriction base="xs:integer">
18 <xs:minInclusive value="0" />
19 <xs:maxInclusive value="4294967295" />
20 </xs:restriction>
21 </xs:simpleType>
22
23 <!-- Maps to the uint64_t type -->
24 <xs:simpleType name="uint64_type">
25 <xs:restriction base="xs:integer">
26 <xs:minInclusive value="0" />
27 <xs:maxInclusive value="18446744073709551615" />
28 </xs:restriction>
29 </xs:simpleType>
30
31 <!--
32 Maps to the range allowed for blocking timeout: -1 (block
33 forever), 0 (do not block), positive integer value (blocking
34 time in usec) limited by its signed 32-bit representation when
35 converted to msec.
36 -->
37 <xs:simpleType name="blocking_timeout_type">
38 <xs:restriction base="xs:integer">
39 <xs:minInclusive value="-1" />
40 <xs:maxInclusive value="2147483648000" />
41 </xs:restriction>
42 </xs:simpleType>
43
44 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
45 <xs:simpleType name="name_type">
46 <xs:restriction base="xs:string">
47 <xs:maxLength value="255" />
48 </xs:restriction>
49 </xs:simpleType>
50
51 <!-- Maps to the lttng_event_type enum -->
52 <xs:simpleType name="event_type_type">
53 <xs:restriction base="xs:string">
54 <xs:enumeration value="ALL" />
55 <xs:enumeration value="TRACEPOINT" />
56 <xs:enumeration value="PROBE" />
57 <xs:enumeration value="FUNCTION" />
58 <xs:enumeration value="FUNCTION_ENTRY" />
59 <xs:enumeration value="NOOP" />
60 <xs:enumeration value="SYSCALL" />
61 <xs:enumeration value="USERSPACE_PROBE" />
62 </xs:restriction>
63 </xs:simpleType>
64
65 <!-- Maps to the lttng_event_field_type enum -->
66 <xs:simpleType name="event_field_type_type">
67 <xs:restriction base="xs:string">
68 <xs:enumeration value="OTHER" />
69 <xs:enumeration value="INTEGER" />
70 <xs:enumeration value="ENUM" />
71 <xs:enumeration value="FLOAT" />
72 <xs:enumeration value="STRING" />
73 </xs:restriction>
74 </xs:simpleType>
75
76 <!-- Maps to the lttng_loglevel_type enum -->
77 <xs:simpleType name="loglevel_type">
78 <xs:restriction base="xs:string">
79 <xs:enumeration value="ALL" />
80 <xs:enumeration value="RANGE" />
81 <xs:enumeration value="SINGLE" />
82 <xs:enumeration value="UNKNOWN" />
83 </xs:restriction>
84 </xs:simpleType>
85
86 <!-- Maps to the lttng_event_context_type enum -->
87 <xs:simpleType name="context_type_type">
88 <xs:restriction base="xs:string">
89 <xs:enumeration value="PID" />
90 <xs:enumeration value="PROCNAME" />
91 <xs:enumeration value="PRIO" />
92 <xs:enumeration value="NICE" />
93 <xs:enumeration value="VPID" />
94 <xs:enumeration value="TID" />
95 <xs:enumeration value="VTID" />
96 <xs:enumeration value="PPID" />
97 <xs:enumeration value="VPPID" />
98 <xs:enumeration value="PTHREAD_ID" />
99 <xs:enumeration value="HOSTNAME" />
100 <xs:enumeration value="IP" />
101 <xs:enumeration value="INTERRUPTIBLE" />
102 <xs:enumeration value="PREEMPTIBLE" />
103 <xs:enumeration value="NEED_RESCHEDULE" />
104 <xs:enumeration value="MIGRATABLE" />
105 <xs:enumeration value="CALLSTACK_USER" />
106 <xs:enumeration value="CALLSTACK_KERNEL" />
107 <xs:enumeration value="CGROUP_NS" />
108 <xs:enumeration value="IPC_NS" />
109 <xs:enumeration value="MNT_NS" />
110 <xs:enumeration value="NET_NS" />
111 <xs:enumeration value="PID_NS" />
112 <xs:enumeration value="USER_NS" />
113 <xs:enumeration value="UTS_NS" />
114 <xs:enumeration value="UID" />
115 <xs:enumeration value="EUID" />
116 <xs:enumeration value="SUID" />
117 <xs:enumeration value="GID" />
118 <xs:enumeration value="EGID" />
119 <xs:enumeration value="SGID" />
120 <xs:enumeration value="VUID" />
121 <xs:enumeration value="VEUID" />
122 <xs:enumeration value="VSUID" />
123 <xs:enumeration value="VGID" />
124 <xs:enumeration value="VEGID" />
125 <xs:enumeration value="VSGID" />
126 </xs:restriction>
127 </xs:simpleType>
128
129 <!-- Maps to loglevel_string char * -->
130 <xs:simpleType name="loglevel_string_type">
131 <xs:restriction base="xs:string">
132 <xs:enumeration value="" />
133 <xs:enumeration value="TRACE_EMERG" />
134 <xs:enumeration value="TRACE_ALERT" />
135 <xs:enumeration value="TRACE_CRIT" />
136 <xs:enumeration value="TRACE_ERR" />
137 <xs:enumeration value="TRACE_WARNING" />
138 <xs:enumeration value="TRACE_NOTICE" />
139 <xs:enumeration value="TRACE_INFO" />
140 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
141 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
142 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
143 <xs:enumeration value="TRACE_DEBUG_MODULE" />
144 <xs:enumeration value="TRACE_DEBUG_UNIT" />
145 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
146 <xs:enumeration value="TRACE_DEBUG_LINE" />
147 <xs:enumeration value="TRACE_DEBUG" />
148 <xs:enumeration value="JUL_OFF" />
149 <xs:enumeration value="JUL_SEVERE" />
150 <xs:enumeration value="JUL_WARNING" />
151 <xs:enumeration value="JUL_INFO" />
152 <xs:enumeration value="JUL_CONFIG" />
153 <xs:enumeration value="JUL_FINE" />
154 <xs:enumeration value="JUL_FINER" />
155 <xs:enumeration value="JUL_FINEST" />
156 <xs:enumeration value="JUL_ALL" />
157 <xs:enumeration value="LOG4J_OFF" />
158 <xs:enumeration value="LOG4J_FATAL" />
159 <xs:enumeration value="LOG4J_ERROR" />
160 <xs:enumeration value="LOG4J_WARN" />
161 <xs:enumeration value="LOG4J_INFO" />
162 <xs:enumeration value="LOG4J_DEBUG" />
163 <xs:enumeration value="LOG4J_TRACE" />
164 <xs:enumeration value="LOG4J_ALL" />
165 <xs:enumeration value="PYTHON_CRITICAL" />
166 <xs:enumeration value="PYTHON_ERROR" />
167 <xs:enumeration value="PYTHON_WARNING" />
168 <xs:enumeration value="PYTHON_INFO" />
169 <xs:enumeration value="PYTHON_DEBUG" />
170 <xs:enumeration value="PYTHON_NOTSET" />
171 <xs:enumeration value="UNKNOWN" />
172 </xs:restriction>
173 </xs:simpleType>
174
175 <!-- Maps to enum lttng_rotation_state -->
176 <xs:simpleType name="rotation_state_type">
177 <xs:restriction base="xs:string">
178 <xs:enumeration value="ONGOING" />
179 <xs:enumeration value="COMPLETED" />
180 <xs:enumeration value="EXPIRED" />
181 <xs:enumeration value="ERROR" />
182 </xs:restriction>
183 </xs:simpleType>
184
185 <!-- Maps to enum lttng_trace_archive_location_relay_protocol_type -->
186 <xs:simpleType name="location_relay_protocol_type">
187 <xs:restriction base="xs:string">
188 <xs:enumeration value="TCP" />
189 </xs:restriction>
190 </xs:simpleType>
191
192 <!-- Maps to the lttng_calibrate_type enum -->
193 <xs:simpleType name="calibrate_type_type">
194 <xs:restriction base="xs:string">
195 <xs:enumeration value="FUNCTION" />
196 </xs:restriction>
197 </xs:simpleType>
198
199 <!-- Maps to the lttng_event_probe_attr struct -->
200 <xs:complexType name="event_probe_attributes_type">
201 <xs:all>
202 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
203 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
204 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
205 </xs:all>
206 </xs:complexType>
207
208 <!-- Maps to the lttng_event_function_attr struct -->
209 <xs:complexType name="event_ftrace_attributes_type">
210 <xs:all>
211 <xs:element name="symbol_name" type="tns:name_type" />
212 </xs:all>
213 </xs:complexType>
214
215 <!-- Maps to per event type configuration -->
216 <xs:complexType name="event_attributes_type">
217 <xs:choice>
218 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
219 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
220 </xs:choice>
221 </xs:complexType>
222
223 <!-- Maps to exclusion type -->
224 <xs:complexType name="event_exclusion_list_type">
225 <xs:sequence>
226 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
227 </xs:sequence>
228 </xs:complexType>
229
230 <!-- Maps to lttng_event struct -->
231 <xs:complexType name="event_type">
232 <xs:all>
233 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
234 <xs:element name="name" type="tns:name_type" minOccurs="0" />
235 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
236 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
237 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
238 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
239 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
240 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
241 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
242 <xs:element name="success" type="xs:boolean" minOccurs="0" />
243 </xs:all>
244 </xs:complexType>
245
246 <!-- Maps to mi_lttng_version struct -->
247 <xs:complexType name="version_type">
248 <xs:all>
249 <xs:element name="name" type="tns:name_type" />
250 <xs:element name="string" type="tns:name_type" />
251 <xs:element name="major" type="tns:uint32_type" />
252 <xs:element name="url" type="xs:string" />
253 <xs:element name="minor" type="tns:uint32_type" />
254 <xs:element name="commit" type="xs:string" />
255 <xs:element name="license" type="xs:string" />
256 <xs:element name="patchLevel" type="tns:uint32_type" />
257 <xs:element name="description" type="xs:string" />
258 </xs:all>
259 </xs:complexType>
260
261 <!-- Maps to an array of event -->
262 <xs:complexType name="event_list_type">
263 <xs:sequence>
264 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
265 </xs:sequence>
266 </xs:complexType>
267
268 <!-- Maps to the lttng_domain_type enum -->
269 <xs:simpleType name="domain_type_type">
270 <xs:restriction base="xs:string">
271 <xs:enumeration value="KERNEL"/>
272 <xs:enumeration value="UST"/>
273 <xs:enumeration value="JUL"/>
274 <xs:enumeration value="LOG4J"/>
275 <xs:enumeration value="PYTHON"/>
276 </xs:restriction>
277 </xs:simpleType>
278
279 <!-- Maps to the lttng_buffer_type enum -->
280 <xs:simpleType name="domain_buffer_type">
281 <xs:restriction base="xs:string">
282 <xs:enumeration value="PER_PID"/>
283 <xs:enumeration value="PER_UID"/>
284 <xs:enumeration value="GLOBAL"/>
285 </xs:restriction>
286 </xs:simpleType>
287
288 <!-- Maps to the type mode of a channel -->
289 <xs:simpleType name="channel_overwrite_mode_type">
290 <xs:restriction base="xs:string">
291 <xs:enumeration value="DISCARD" />
292 <xs:enumeration value="OVERWRITE" />
293 </xs:restriction>
294 </xs:simpleType>
295
296 <!-- Maps to the lttng_event_output enum -->
297 <xs:simpleType name="event_output_type">
298 <xs:restriction base="xs:string">
299 <xs:enumeration value="SPLICE" />
300 <xs:enumeration value="MMAP" />
301 </xs:restriction>
302 </xs:simpleType>
303
304 <!-- map to a pid -->
305 <xs:complexType name="pid_type">
306 <xs:all>
307 <xs:element name="id" type="xs:int" />
308 <xs:element name="name" type="tns:name_type" />
309 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
310 </xs:all>
311 </xs:complexType>
312
313 <!-- maps to an array of pid -->
314 <xs:complexType name="pids_type">
315 <xs:sequence>
316 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
317 </xs:sequence>
318 </xs:complexType>
319
320 <xs:simpleType name="tracker_target_type">
321 <xs:restriction base="xs:string">
322 <xs:enumeration value="ALL" />
323 <xs:enumeration value="NONE" />
324 <xs:enumeration value="LIST" />
325 </xs:restriction>
326 </xs:simpleType>
327
328 <xs:simpleType name="pidbyint">
329 <xs:restriction base="xs:integer">
330 <xs:minInclusive value="0"/>
331 <xs:maxInclusive value="4294967295" />
332 </xs:restriction>
333 </xs:simpleType>
334
335 <xs:complexType name="pid_target_type_choice">
336 <xs:choice>
337 <xs:element name="id" type="tns:pidbyint" />
338 <xs:element name="name" type="xs:string" />
339 <xs:element name="all" type="xs:boolean" />
340 </xs:choice>
341 </xs:complexType>
342
343 <xs:complexType name="pid_target_type">
344 <xs:all>
345 <xs:element name="type" type="tns:pid_target_type_choice" />
346 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
347 </xs:all>
348 </xs:complexType>
349
350 <!-- Maps to a list of pid_targets-->
351 <xs:complexType name="pid_targets_type">
352 <xs:sequence>
353 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
354 </xs:sequence>
355 </xs:complexType>
356
357 <!-- Maps to a pid_tracker-->
358 <xs:complexType name="pid_tracker_type">
359 <xs:all>
360 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
361 <xs:element name="targets" type="tns:pid_targets_type" minOccurs="0" />
362 </xs:all>
363 </xs:complexType>
364
365 <xs:simpleType name="vpidbyint">
366 <xs:restriction base="xs:integer">
367 <xs:minInclusive value="0"/>
368 <xs:maxInclusive value="4294967295" />
369 </xs:restriction>
370 </xs:simpleType>
371
372 <xs:complexType name="vpid_target_type_choice">
373 <xs:choice>
374 <xs:element name="id" type="tns:vpidbyint" />
375 <xs:element name="name" type="xs:string" />
376 <xs:element name="all" type="xs:boolean" />
377 </xs:choice>
378 </xs:complexType>
379
380 <xs:complexType name="vpid_target_type">
381 <xs:all>
382 <xs:element name="type" type="tns:vpid_target_type_choice" minOccurs="0" maxOccurs="1" />
383 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
384 </xs:all>
385 </xs:complexType>
386
387 <!-- Maps to a list of vpid_targets-->
388 <xs:complexType name="vpid_targets_type">
389 <xs:sequence>
390 <xs:element name="vpid_target" type="tns:vpid_target_type" minOccurs="0" maxOccurs="unbounded"/>
391 </xs:sequence>
392 </xs:complexType>
393
394 <!-- Maps to a vpid_tracker-->
395 <xs:complexType name="vpid_tracker_type">
396 <xs:all>
397 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
398 <xs:element name="targets" type="tns:vpid_targets_type" minOccurs="0" />
399 </xs:all>
400 </xs:complexType>
401
402 <xs:simpleType name="uidbyint">
403 <xs:restriction base="xs:integer">
404 <xs:minInclusive value="0"/>
405 <xs:maxInclusive value="4294967295" />
406 </xs:restriction>
407 </xs:simpleType>
408
409 <xs:complexType name="uid_target_type_choice">
410 <xs:choice>
411 <xs:element name="id" type="tns:uidbyint" />
412 <xs:element name="name" type="xs:string" />
413 <xs:element name="all" type="xs:boolean" />
414 </xs:choice>
415 </xs:complexType>
416
417 <xs:complexType name="uid_target_type">
418 <xs:all>
419 <xs:element name="type" type="tns:uid_target_type_choice" minOccurs="0" maxOccurs="1" />
420 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
421 </xs:all>
422 </xs:complexType>
423
424 <!-- Maps to a list of uid_targets-->
425 <xs:complexType name="uid_targets_type">
426 <xs:sequence>
427 <xs:element name="uid_target" type="tns:uid_target_type" minOccurs="0" maxOccurs="unbounded"/>
428 </xs:sequence>
429 </xs:complexType>
430
431 <!-- Maps to a uid_tracker-->
432 <xs:complexType name="uid_tracker_type">
433 <xs:all>
434 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
435 <xs:element name="targets" type="tns:uid_targets_type" minOccurs="0" />
436 </xs:all>
437 </xs:complexType>
438
439 <xs:simpleType name="vuidbyint">
440 <xs:restriction base="xs:integer">
441 <xs:minInclusive value="0"/>
442 <xs:maxInclusive value="4294967295" />
443 </xs:restriction>
444 </xs:simpleType>
445
446 <xs:complexType name="vuid_target_type_choice">
447 <xs:choice>
448 <xs:element name="id" type="tns:vuidbyint" />
449 <xs:element name="name" type="xs:string" />
450 <xs:element name="all" type="xs:boolean" />
451 </xs:choice>
452 </xs:complexType>
453
454 <xs:complexType name="vuid_target_type">
455 <xs:all>
456 <xs:element name="type" type="tns:vuid_target_type_choice" minOccurs="0" maxOccurs="1" />
457 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
458 </xs:all>
459 </xs:complexType>
460
461 <!-- Maps to a list of vuid_targets-->
462 <xs:complexType name="vuid_targets_type">
463 <xs:sequence>
464 <xs:element name="vuid_target" type="tns:vuid_target_type" minOccurs="0" maxOccurs="unbounded"/>
465 </xs:sequence>
466 </xs:complexType>
467
468 <!-- Maps to a vuid_tracker-->
469 <xs:complexType name="vuid_tracker_type">
470 <xs:all>
471 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
472 <xs:element name="targets" type="tns:vuid_targets_type" minOccurs="0" />
473 </xs:all>
474 </xs:complexType>
475
476 <xs:simpleType name="gidbyint">
477 <xs:restriction base="xs:integer">
478 <xs:minInclusive value="0"/>
479 <xs:maxInclusive value="4294967295" />
480 </xs:restriction>
481 </xs:simpleType>
482
483 <xs:complexType name="gid_target_type_choice">
484 <xs:choice>
485 <xs:element name="id" type="tns:gidbyint" />
486 <xs:element name="name" type="xs:string" />
487 <xs:element name="all" type="xs:boolean" />
488 </xs:choice>
489 </xs:complexType>
490
491 <xs:complexType name="gid_target_type">
492 <xs:all>
493 <xs:element name="type" type="tns:gid_target_type_choice" minOccurs="0" maxOccurs="1" />
494 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
495 </xs:all>
496 </xs:complexType>
497
498 <!-- Maps to a list of gid_targets-->
499 <xs:complexType name="gid_targets_type">
500 <xs:sequence>
501 <xs:element name="gid_target" type="tns:gid_target_type" minOccurs="0" maxOccurs="unbounded"/>
502 </xs:sequence>
503 </xs:complexType>
504
505 <!-- Maps to a gid_tracker-->
506 <xs:complexType name="gid_tracker_type">
507 <xs:all>
508 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
509 <xs:element name="targets" type="tns:gid_targets_type" minOccurs="0" />
510 </xs:all>
511 </xs:complexType>
512
513 <xs:simpleType name="vgidbyint">
514 <xs:restriction base="xs:integer">
515 <xs:minInclusive value="0"/>
516 <xs:maxInclusive value="4294967295" />
517 </xs:restriction>
518 </xs:simpleType>
519
520 <xs:complexType name="vgid_target_type_choice">
521 <xs:choice>
522 <xs:element name="id" type="tns:vgidbyint" />
523 <xs:element name="name" type="xs:string" />
524 <xs:element name="all" type="xs:boolean" />
525 </xs:choice>
526 </xs:complexType>
527
528 <xs:complexType name="vgid_target_type">
529 <xs:all>
530 <xs:element name="type" type="tns:vgid_target_type_choice" minOccurs="0" maxOccurs="1" />
531 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
532 </xs:all>
533 </xs:complexType>
534
535 <!-- Maps to a list of vgid_targets-->
536 <xs:complexType name="vgid_targets_type">
537 <xs:sequence>
538 <xs:element name="vgid_target" type="tns:vgid_target_type" minOccurs="0" maxOccurs="unbounded"/>
539 </xs:sequence>
540 </xs:complexType>
541
542 <!-- Maps to a vgid_tracker-->
543 <xs:complexType name="vgid_tracker_type">
544 <xs:all>
545 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
546 <xs:element name="targets" type="tns:vgid_targets_type" minOccurs="0" />
547 </xs:all>
548 </xs:complexType>
549
550 <!-- Maps to a list of trackers-->
551 <xs:complexType name="trackers_type">
552 <xs:sequence>
553 <xs:choice minOccurs="0" maxOccurs="unbounded">
554 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
555 <xs:element name="vpid_tracker" type="tns:vpid_tracker_type" maxOccurs="1" />
556 <xs:element name="uid_tracker" type="tns:uid_tracker_type" maxOccurs="1" />
557 <xs:element name="vuid_tracker" type="tns:vuid_tracker_type" maxOccurs="1" />
558 <xs:element name="gid_tracker" type="tns:gid_tracker_type" maxOccurs="1" />
559 <xs:element name="vgid_tracker" type="tns:vgid_tracker_type" maxOccurs="1" />
560 </xs:choice>
561 </xs:sequence>
562 </xs:complexType>
563
564 <!-- Maps to struct lttng_domain and contains channels -->
565 <xs:complexType name="domain_type">
566 <xs:all>
567 <xs:element name="type" type="tns:domain_type_type" />
568 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
569 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
570 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
571 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
572 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
573 </xs:all>
574 </xs:complexType>
575
576 <!-- Maps to struct lttng_channel -->
577 <xs:complexType name="channel_type">
578 <xs:all>
579 <xs:element name="name" type="tns:name_type" />
580 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
581 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
582 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
583 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
584 </xs:all>
585 </xs:complexType>
586
587 <!-- Maps to struct lttng_channel_attr -->
588 <xs:complexType name="channel_attributes_type">
589 <xs:all>
590 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
591 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
592 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
593 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
594 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
595 <xs:element name="output_type" type="tns:event_output_type" />
596 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
597 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
598 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
599 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
600 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
601 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
602 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
603 </xs:all>
604 </xs:complexType>
605
606 <!-- Maps to struct lttng_snapshot_output -->
607 <xs:complexType name="snapshot_type">
608 <xs:all>
609 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
610 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
611 <xs:element name="name" type="tns:name_type" minOccurs="0" />
612 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
613 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
614 <xs:element name="data_url" type="xs:string" minOccurs="0" />
615 </xs:all>
616 </xs:complexType>
617
618 <xs:complexType name="snapshots_type">
619 <xs:sequence>
620 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
621 </xs:sequence>
622 </xs:complexType>
623
624 <xs:complexType name="periodic_rotation_schedule_type">
625 <xs:all>
626 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
627 </xs:all>
628 </xs:complexType>
629
630 <xs:complexType name="size_threshold_rotation_schedule_type">
631 <xs:all>
632 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
633 </xs:all>
634 </xs:complexType>
635
636 <xs:complexType name="rotation_schedule_type">
637 <xs:sequence>
638 <xs:choice maxOccurs="unbounded">
639 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
640 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
641 </xs:choice>
642 </xs:sequence>
643 </xs:complexType>
644
645 <xs:complexType name="channels_type">
646 <xs:sequence>
647 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
648 </xs:sequence>
649 </xs:complexType>
650
651 <!-- Maps to a lttng_session -->
652 <xs:complexType name="session_type">
653 <xs:all>
654 <xs:element name="name" type="tns:name_type" />
655 <xs:element name="path" type="xs:string" minOccurs="0" />
656 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
657 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
658 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
659 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
660 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
661 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
662 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
663 </xs:all>
664 </xs:complexType>
665
666 <!-- Maps to a lttng_event_field -->
667 <xs:complexType name="event_field_type">
668 <xs:all>
669 <xs:element name="name" type="tns:name_type" />
670 <xs:element name="type" type="tns:event_field_type_type" />
671 <xs:element name="nowrite" type="xs:int" />
672 </xs:all>
673 </xs:complexType>
674
675 <!-- Maps to the save command -->
676 <xs:complexType name="save_type">
677 <xs:all>
678 <xs:element name="session" type="tns:session_type" />
679 <xs:element name="path" type="xs:string" />
680 </xs:all>
681 </xs:complexType>
682
683 <!-- Maps to the load command -->
684 <xs:complexType name="load_type">
685 <xs:all>
686 <xs:element name="session" type="tns:session_type" />
687 <xs:element name="path" type="xs:string" />
688 <xs:element name="overrides" type="tns:overrides_type" />
689 </xs:all>
690 </xs:complexType>
691
692 <!-- Maps to the override parameters of the load command -->
693 <xs:complexType name="overrides_type">
694 <xs:all>
695 <xs:element name="name" type="tns:name_type" minOccurs="0" />
696 <xs:element name="url" type="xs:string" minOccurs="0" />
697 </xs:all>
698 </xs:complexType>
699
700 <!-- Maps to struct lttng_calibrate -->
701 <xs:complexType name="calibrate_type">
702 <xs:all>
703 <xs:element name="type" type="tns:calibrate_type_type" />
704 </xs:all>
705 </xs:complexType>
706
707 <!-- Maps to lttng_event_perf_counter_ctx -->
708 <xs:complexType name="perf_counter_context_type">
709 <xs:all>
710 <xs:element name="type" type="tns:uint32_type" />
711 <xs:element name="config" type="tns:uint64_type" />
712 <xs:element name="name" type="tns:name_type" />
713 </xs:all>
714 </xs:complexType>
715
716 <!-- Maps to app_ctx -->
717 <xs:complexType name="app_context_type">
718 <xs:all>
719 <xs:element name="provider_name" type="xs:string"/>
720 <xs:element name="ctx_name" type="xs:string"/>
721 </xs:all>
722 </xs:complexType>
723
724 <!-- Maps to lttng_event_context -->
725 <xs:complexType name="context_type">
726 <xs:sequence>
727 <xs:choice>
728 <xs:element name="type" type="tns:context_type_type"/>
729 <xs:element name="perf" type="tns:perf_counter_context_type"/>
730 <xs:element name="app" type="tns:app_context_type"/>
731 </xs:choice>
732 <xs:element name="symbol" type="xs:string" minOccurs="0" />
733 </xs:sequence>
734 </xs:complexType>
735
736 <!-- Maps to an array of domain -->
737 <xs:complexType name="domains_type">
738 <xs:sequence>
739 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
740 </xs:sequence>
741 </xs:complexType>
742
743 <!-- Maps to an array of session -->
744 <xs:complexType name="sessions_type">
745 <xs:sequence>
746 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
747 </xs:sequence>
748 </xs:complexType>
749
750 <!-- Maps to an array of event_field -->
751 <xs:complexType name="event_fields_type">
752 <xs:sequence>
753 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
754 </xs:sequence>
755 </xs:complexType>
756
757 <!-- Maps to an array of context -->
758 <xs:complexType name="contexts_type">
759 <xs:sequence>
760 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
761 </xs:sequence>
762 </xs:complexType>
763
764 <!-- Maps to an action during snapshot command -->
765 <xs:complexType name="snapshot_cmd_type">
766 <xs:sequence>
767 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
768 <xs:element name="output" type="tns:output_type" minOccurs="0" />
769 </xs:sequence>
770 </xs:complexType>
771
772 <!-- Type of snapshot commands -->
773 <xs:simpleType name="snapshot_action_type">
774 <xs:restriction base="xs:string">
775 <xs:enumeration value="list-output" />
776 <xs:enumeration value="del-output" />
777 <xs:enumeration value="add-output" />
778 <xs:enumeration value="record-output" />
779 </xs:restriction>
780 </xs:simpleType>
781
782 <!-- Maps to an action during metadata command -->
783 <xs:complexType name="metadata_cmd_type">
784 <xs:sequence>
785 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
786 </xs:sequence>
787 </xs:complexType>
788
789 <!-- Type of metadata commands -->
790 <xs:simpleType name="metadata_action_type">
791 <xs:restriction base="xs:string">
792 <xs:enumeration value="regenerate" />
793 </xs:restriction>
794 </xs:simpleType>
795
796 <!-- Type of regenerate commands -->
797 <xs:simpleType name="regenerate_action_type">
798 <xs:restriction base="xs:string">
799 <xs:enumeration value="metadata" />
800 <xs:enumeration value="statedump" />
801 </xs:restriction>
802 </xs:simpleType>
803
804 <!-- Type of regenerate command -->
805 <xs:complexType name="regenerate_cmd_type">
806 <xs:sequence>
807 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
808 </xs:sequence>
809 </xs:complexType>
810
811 <xs:complexType name="local_location_type">
812 <xs:sequence>
813 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
814 </xs:sequence>
815 </xs:complexType>
816
817 <xs:complexType name="relay_location_type">
818 <xs:sequence>
819 <xs:element name="host" type="xs:string" minOccurs="1" />
820 <xs:element name="control_port" type="xs:int" minOccurs="0" />
821 <xs:element name="data_port" type="xs:int" minOccurs="0" />
822 <xs:element name="protocol" type="tns:location_relay_protocol_type" minOccurs="1" />
823 <xs:element name="relative_path" type="xs:string" minOccurs="0" />
824 </xs:sequence>
825 </xs:complexType>
826
827 <xs:complexType name="location_type">
828 <xs:choice>
829 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
830 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
831 </xs:choice>
832 </xs:complexType>
833
834 <!-- Maps to the rotate command -->
835 <xs:complexType name="rotate_type">
836 <xs:sequence>
837 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
838 <xs:element name="state" type="tns:rotation_state_type" minOccurs="1" />
839 <xs:element name="location" type="tns:location_type" minOccurs="0" />
840 </xs:sequence>
841 </xs:complexType>
842
843 <xs:complexType name="rotation_schedule_result_type">
844 <xs:sequence>
845 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
846 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
847 </xs:sequence>
848 </xs:complexType>
849
850 <!-- Maps to the enable/disable-rotation commands -->
851 <xs:complexType name="rotation_schedule_cmd_type">
852 <xs:sequence>
853 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
854 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
855 </xs:sequence>
856 </xs:complexType>
857
858 <xs:complexType name="output_type">
859 <xs:choice>
860 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
861 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
862 <xs:element name="session" type="tns:session_type" minOccurs="0" />
863 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
864 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
865 <xs:element name="version" type="tns:version_type" minOccurs="0" />
866 <xs:element name="save" type="tns:save_type" minOccurs="0" />
867 <xs:element name="load" type="tns:load_type" minOccurs="0" />
868 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
869 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
870 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
871 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
872 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
873 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
874 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
875 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
876 <xs:element name="rotation" type="tns:rotate_type" minOccurs="0" />
877 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
878 </xs:choice>
879 </xs:complexType>
880
881 <!-- Maps to the mi_lttng commands -->
882 <xs:simpleType name="command_string_type">
883 <xs:restriction base="xs:string">
884 <xs:enumeration value="create" />
885 <xs:enumeration value="list" />
886 <xs:enumeration value="snapshot" />
887 <xs:enumeration value="version" />
888 <xs:enumeration value="save" />
889 <xs:enumeration value="load" />
890 <xs:enumeration value="start" />
891 <xs:enumeration value="stop" />
892 <xs:enumeration value="destroy" />
893 <xs:enumeration value="calibrate" />
894 <xs:enumeration value="add-context" />
895 <xs:enumeration value="enable-channel" />
896 <xs:enumeration value="enable-event" />
897 <xs:enumeration value="set-session" />
898 <xs:enumeration value="disable-event" />
899 <xs:enumeration value="disable-channel" />
900 <xs:enumeration value="track" />
901 <xs:enumeration value="untrack" />
902 <xs:enumeration value="metadata" />
903 <xs:enumeration value="regenerate" />
904 <xs:enumeration value="rotate" />
905 <xs:enumeration value="enable-rotation" />
906 <xs:enumeration value="disable-rotation" />
907 <xs:enumeration value="clear" />
908 </xs:restriction>
909 </xs:simpleType>
910
911 <xs:element name="command">
912 <xs:complexType>
913 <xs:all>
914 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
915 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
916 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
917 </xs:all>
918 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
919 </xs:complexType>
920 </xs:element>
921 </xs:schema>
This page took 0.05549 seconds and 5 git commands to generate.