Remove error count property of lttng_condition_on_event
[lttng-tools.git] / src / common / mi-lttng-4.0.xsd
CommitLineData
c5e38b74
JR
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
ab5be9fa
MJ
3Copyright (C) 2014 Oliver Cotte <olivier.cotte@polymtl.ca>
4Copyright (C) 2014 Jonathan Rajotte <jonathan.r.julien@gmail.com>
5Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
c5e38b74 6
ab5be9fa 7SPDX-License-Identifier: MIT
c5e38b74 8
c5e38b74
JR
9-->
10<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
a18d9544
JG
11 targetNamespace="https://lttng.org/xml/ns/lttng-mi"
12 xmlns:tns="https://lttng.org/xml/ns/lttng-mi"
01fac814 13 elementFormDefault="qualified" version="4.0">
c5e38b74
JR
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
491d1539
MD
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
c5e38b74
JR
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" />
5a1c0a75 61 <xs:enumeration value="USERSPACE_PROBE" />
c5e38b74
JR
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
c9ffe7f5 86 <!-- Maps to the lttng_event_context_type enum -->
89b72577
JRJ
87 <xs:simpleType name="context_type_type">
88 <xs:restriction base="xs:string">
89b72577
JRJ
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" />
a72332c3
JR
101 <xs:enumeration value="INTERRUPTIBLE" />
102 <xs:enumeration value="PREEMPTIBLE" />
103 <xs:enumeration value="NEED_RESCHEDULE" />
104 <xs:enumeration value="MIGRATABLE" />
16c4c991
FD
105 <xs:enumeration value="CALLSTACK_USER" />
106 <xs:enumeration value="CALLSTACK_KERNEL" />
65ae1ae9
JR
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" />
d37ac3cd 112 <xs:enumeration value="TIME_NS" />
65ae1ae9
JR
113 <xs:enumeration value="USER_NS" />
114 <xs:enumeration value="UTS_NS" />
115 <xs:enumeration value="UID" />
116 <xs:enumeration value="EUID" />
117 <xs:enumeration value="SUID" />
118 <xs:enumeration value="GID" />
119 <xs:enumeration value="EGID" />
120 <xs:enumeration value="SGID" />
121 <xs:enumeration value="VUID" />
122 <xs:enumeration value="VEUID" />
123 <xs:enumeration value="VSUID" />
124 <xs:enumeration value="VGID" />
125 <xs:enumeration value="VEGID" />
126 <xs:enumeration value="VSGID" />
89b72577
JRJ
127 </xs:restriction>
128 </xs:simpleType>
129
c5e38b74
JR
130 <!-- Maps to loglevel_string char * -->
131 <xs:simpleType name="loglevel_string_type">
132 <xs:restriction base="xs:string">
133 <xs:enumeration value="" />
134 <xs:enumeration value="TRACE_EMERG" />
135 <xs:enumeration value="TRACE_ALERT" />
136 <xs:enumeration value="TRACE_CRIT" />
137 <xs:enumeration value="TRACE_ERR" />
138 <xs:enumeration value="TRACE_WARNING" />
139 <xs:enumeration value="TRACE_NOTICE" />
140 <xs:enumeration value="TRACE_INFO" />
141 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
142 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
143 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
144 <xs:enumeration value="TRACE_DEBUG_MODULE" />
145 <xs:enumeration value="TRACE_DEBUG_UNIT" />
146 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
147 <xs:enumeration value="TRACE_DEBUG_LINE" />
148 <xs:enumeration value="TRACE_DEBUG" />
136f2f81
JRJ
149 <xs:enumeration value="JUL_OFF" />
150 <xs:enumeration value="JUL_SEVERE" />
151 <xs:enumeration value="JUL_WARNING" />
152 <xs:enumeration value="JUL_INFO" />
153 <xs:enumeration value="JUL_CONFIG" />
154 <xs:enumeration value="JUL_FINE" />
155 <xs:enumeration value="JUL_FINER" />
156 <xs:enumeration value="JUL_FINEST" />
157 <xs:enumeration value="JUL_ALL" />
e4d12c27
DG
158 <xs:enumeration value="LOG4J_OFF" />
159 <xs:enumeration value="LOG4J_FATAL" />
160 <xs:enumeration value="LOG4J_ERROR" />
161 <xs:enumeration value="LOG4J_WARN" />
162 <xs:enumeration value="LOG4J_INFO" />
163 <xs:enumeration value="LOG4J_DEBUG" />
164 <xs:enumeration value="LOG4J_TRACE" />
165 <xs:enumeration value="LOG4J_ALL" />
0e115563
DG
166 <xs:enumeration value="PYTHON_CRITICAL" />
167 <xs:enumeration value="PYTHON_ERROR" />
168 <xs:enumeration value="PYTHON_WARNING" />
169 <xs:enumeration value="PYTHON_INFO" />
170 <xs:enumeration value="PYTHON_DEBUG" />
171 <xs:enumeration value="PYTHON_NOTSET" />
c5e38b74
JR
172 <xs:enumeration value="UNKNOWN" />
173 </xs:restriction>
174 </xs:simpleType>
175
91c4d516
JG
176 <!-- Maps to enum lttng_rotation_state -->
177 <xs:simpleType name="rotation_state_type">
178 <xs:restriction base="xs:string">
179 <xs:enumeration value="ONGOING" />
180 <xs:enumeration value="COMPLETED" />
181 <xs:enumeration value="EXPIRED" />
182 <xs:enumeration value="ERROR" />
183 </xs:restriction>
184 </xs:simpleType>
185
186 <!-- Maps to enum lttng_trace_archive_location_relay_protocol_type -->
187 <xs:simpleType name="location_relay_protocol_type">
188 <xs:restriction base="xs:string">
189 <xs:enumeration value="TCP" />
190 </xs:restriction>
191 </xs:simpleType>
192
7e66b1b0
JRJ
193 <!-- Maps to the lttng_calibrate_type enum -->
194 <xs:simpleType name="calibrate_type_type">
195 <xs:restriction base="xs:string">
196 <xs:enumeration value="FUNCTION" />
197 </xs:restriction>
198 </xs:simpleType>
199
c5e38b74
JR
200 <!-- Maps to the lttng_event_probe_attr struct -->
201 <xs:complexType name="event_probe_attributes_type">
202 <xs:all>
00440276
JG
203 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
204 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
205 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
c5e38b74
JR
206 </xs:all>
207 </xs:complexType>
208
209 <!-- Maps to the lttng_event_function_attr struct -->
210 <xs:complexType name="event_ftrace_attributes_type">
211 <xs:all>
00440276 212 <xs:element name="symbol_name" type="tns:name_type" />
c5e38b74
JR
213 </xs:all>
214 </xs:complexType>
215
216 <!-- Maps to per event type configuration -->
217 <xs:complexType name="event_attributes_type">
218 <xs:choice>
00440276
JG
219 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
220 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
c5e38b74
JR
221 </xs:choice>
222 </xs:complexType>
223
f4a088f7 224 <!-- Maps to exclusion type -->
89476427
JRJ
225 <xs:complexType name="event_exclusion_list_type">
226 <xs:sequence>
227 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
228 </xs:sequence>
229 </xs:complexType>
230
c5e38b74
JR
231 <!-- Maps to lttng_event struct -->
232 <xs:complexType name="event_type">
233 <xs:all>
00440276
JG
234 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
235 <xs:element name="name" type="tns:name_type" minOccurs="0" />
236 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
237 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
c5e38b74 238 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
7b4aa11d 239 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
00440276
JG
240 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
241 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
242 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
89476427 243 <xs:element name="success" type="xs:boolean" minOccurs="0" />
c5e38b74
JR
244 </xs:all>
245 </xs:complexType>
246
247 <!-- Maps to mi_lttng_version struct -->
248 <xs:complexType name="version_type">
249 <xs:all>
00440276
JG
250 <xs:element name="name" type="tns:name_type" />
251 <xs:element name="string" type="tns:name_type" />
252 <xs:element name="major" type="tns:uint32_type" />
c5e38b74 253 <xs:element name="url" type="xs:string" />
00440276 254 <xs:element name="minor" type="tns:uint32_type" />
314d5222 255 <xs:element name="commit" type="xs:string" />
c5e38b74 256 <xs:element name="license" type="xs:string" />
00440276 257 <xs:element name="patchLevel" type="tns:uint32_type" />
c5e38b74
JR
258 <xs:element name="description" type="xs:string" />
259 </xs:all>
260 </xs:complexType>
261
f4a088f7 262 <!-- Maps to an array of event -->
c5e38b74
JR
263 <xs:complexType name="event_list_type">
264 <xs:sequence>
00440276 265 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
266 </xs:sequence>
267 </xs:complexType>
268
269 <!-- Maps to the lttng_domain_type enum -->
270 <xs:simpleType name="domain_type_type">
271 <xs:restriction base="xs:string">
272 <xs:enumeration value="KERNEL"/>
273 <xs:enumeration value="UST"/>
274 <xs:enumeration value="JUL"/>
e4d12c27 275 <xs:enumeration value="LOG4J"/>
0e115563 276 <xs:enumeration value="PYTHON"/>
c5e38b74
JR
277 </xs:restriction>
278 </xs:simpleType>
279
280 <!-- Maps to the lttng_buffer_type enum -->
281 <xs:simpleType name="domain_buffer_type">
282 <xs:restriction base="xs:string">
283 <xs:enumeration value="PER_PID"/>
284 <xs:enumeration value="PER_UID"/>
285 <xs:enumeration value="GLOBAL"/>
286 </xs:restriction>
287 </xs:simpleType>
288
f4a088f7 289 <!-- Maps to the type mode of a channel -->
c5e38b74
JR
290 <xs:simpleType name="channel_overwrite_mode_type">
291 <xs:restriction base="xs:string">
292 <xs:enumeration value="DISCARD" />
293 <xs:enumeration value="OVERWRITE" />
294 </xs:restriction>
295 </xs:simpleType>
296
297 <!-- Maps to the lttng_event_output enum -->
298 <xs:simpleType name="event_output_type">
299 <xs:restriction base="xs:string">
300 <xs:enumeration value="SPLICE" />
301 <xs:enumeration value="MMAP" />
302 </xs:restriction>
303 </xs:simpleType>
304
bf239d4c
JR
305 <!-- map to a pid -->
306 <xs:complexType name="pid_type">
c5e38b74 307 <xs:all>
bf239d4c 308 <xs:element name="id" type="xs:int" />
00440276
JG
309 <xs:element name="name" type="tns:name_type" />
310 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
c5e38b74
JR
311 </xs:all>
312 </xs:complexType>
313
bf239d4c 314 <!-- maps to an array of pid -->
c5e38b74
JR
315 <xs:complexType name="pids_type">
316 <xs:sequence>
00440276 317 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
c12fcec9
JG
318 </xs:sequence>
319 </xs:complexType>
320
321 <xs:simpleType name="pidbyint">
322 <xs:restriction base="xs:integer">
323 <xs:minInclusive value="0"/>
324 <xs:maxInclusive value="4294967295" />
325 </xs:restriction>
326 </xs:simpleType>
327
159b042f 328 <xs:complexType name="pid_value_type_choice">
83d6d6c4
JR
329 <xs:choice>
330 <xs:element name="id" type="tns:pidbyint" />
83d6d6c4
JR
331 <xs:element name="all" type="xs:boolean" />
332 </xs:choice>
333 </xs:complexType>
c12fcec9 334
159b042f 335 <xs:complexType name="pid_value_type">
c12fcec9 336 <xs:all>
159b042f 337 <xs:element name="type" type="tns:pid_value_type_choice" />
c12fcec9
JG
338 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
339 </xs:all>
340 </xs:complexType>
341
159b042f
JG
342 <!-- Maps to a list of pid_process_attr_values-->
343 <xs:complexType name="pid_process_attr_values_type">
c12fcec9 344 <xs:sequence>
159b042f 345 <xs:element name="pid" type="tns:pid_value_type" minOccurs="0" maxOccurs="unbounded"/>
c12fcec9
JG
346 </xs:sequence>
347 </xs:complexType>
348
349 <!-- Maps to a pid_tracker-->
159b042f 350 <xs:complexType name="pid_process_attr_tracker_type">
c12fcec9 351 <xs:all>
159b042f 352 <xs:element name="process_attr_values" type="tns:pid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
353 </xs:all>
354 </xs:complexType>
355
356 <xs:simpleType name="vpidbyint">
357 <xs:restriction base="xs:integer">
358 <xs:minInclusive value="0"/>
359 <xs:maxInclusive value="4294967295" />
360 </xs:restriction>
361 </xs:simpleType>
362
159b042f 363 <xs:complexType name="vpid_value_type_choice">
83d6d6c4
JR
364 <xs:choice>
365 <xs:element name="id" type="tns:vpidbyint" />
83d6d6c4
JR
366 <xs:element name="all" type="xs:boolean" />
367 </xs:choice>
368 </xs:complexType>
369
159b042f 370 <xs:complexType name="vpid_value_type">
83d6d6c4 371 <xs:all>
159b042f 372 <xs:element name="type" type="tns:vpid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
373 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
374 </xs:all>
375 </xs:complexType>
376
159b042f
JG
377 <!-- Maps to a list of vpid_process_attr_values-->
378 <xs:complexType name="vpid_process_attr_values_type">
83d6d6c4 379 <xs:sequence>
159b042f 380 <xs:element name="vpid" type="tns:vpid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
381 </xs:sequence>
382 </xs:complexType>
383
384 <!-- Maps to a vpid_tracker-->
159b042f 385 <xs:complexType name="vpid_process_attr_tracker_type">
83d6d6c4 386 <xs:all>
159b042f 387 <xs:element name="process_attr_values" type="tns:vpid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
388 </xs:all>
389 </xs:complexType>
390
391 <xs:simpleType name="uidbyint">
392 <xs:restriction base="xs:integer">
393 <xs:minInclusive value="0"/>
394 <xs:maxInclusive value="4294967295" />
395 </xs:restriction>
396 </xs:simpleType>
397
159b042f 398 <xs:complexType name="uid_value_type_choice">
83d6d6c4
JR
399 <xs:choice>
400 <xs:element name="id" type="tns:uidbyint" />
401 <xs:element name="name" type="xs:string" />
402 <xs:element name="all" type="xs:boolean" />
403 </xs:choice>
404 </xs:complexType>
405
159b042f 406 <xs:complexType name="uid_value_type">
83d6d6c4 407 <xs:all>
159b042f 408 <xs:element name="type" type="tns:uid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
409 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
410 </xs:all>
411 </xs:complexType>
412
159b042f
JG
413 <!-- Maps to a list of uid_process_attr_values-->
414 <xs:complexType name="uid_process_attr_values_type">
83d6d6c4 415 <xs:sequence>
159b042f 416 <xs:element name="uid" type="tns:uid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
417 </xs:sequence>
418 </xs:complexType>
419
159b042f
JG
420 <!-- Maps to a uid_process_attr_tracker-->
421 <xs:complexType name="uid_process_attr_tracker_type">
83d6d6c4 422 <xs:all>
159b042f 423 <xs:element name="process_attr_values" type="tns:uid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
424 </xs:all>
425 </xs:complexType>
426
427 <xs:simpleType name="vuidbyint">
428 <xs:restriction base="xs:integer">
429 <xs:minInclusive value="0"/>
430 <xs:maxInclusive value="4294967295" />
431 </xs:restriction>
432 </xs:simpleType>
433
159b042f 434 <xs:complexType name="vuid_value_type_choice">
83d6d6c4
JR
435 <xs:choice>
436 <xs:element name="id" type="tns:vuidbyint" />
437 <xs:element name="name" type="xs:string" />
438 <xs:element name="all" type="xs:boolean" />
439 </xs:choice>
440 </xs:complexType>
441
159b042f 442 <xs:complexType name="vuid_value_type">
83d6d6c4 443 <xs:all>
159b042f 444 <xs:element name="type" type="tns:vuid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
445 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
446 </xs:all>
447 </xs:complexType>
448
159b042f
JG
449 <!-- Maps to a list of vuid_process_attr_values-->
450 <xs:complexType name="vuid_process_attr_values_type">
83d6d6c4 451 <xs:sequence>
159b042f 452 <xs:element name="vuid" type="tns:vuid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
453 </xs:sequence>
454 </xs:complexType>
455
159b042f
JG
456 <!-- Maps to a vuid_process_attr_tracker-->
457 <xs:complexType name="vuid_process_attr_tracker_type">
83d6d6c4 458 <xs:all>
159b042f 459 <xs:element name="process_attr_values" type="tns:vuid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
460 </xs:all>
461 </xs:complexType>
462
463 <xs:simpleType name="gidbyint">
464 <xs:restriction base="xs:integer">
465 <xs:minInclusive value="0"/>
466 <xs:maxInclusive value="4294967295" />
467 </xs:restriction>
468 </xs:simpleType>
469
159b042f 470 <xs:complexType name="gid_value_type_choice">
83d6d6c4
JR
471 <xs:choice>
472 <xs:element name="id" type="tns:gidbyint" />
473 <xs:element name="name" type="xs:string" />
474 <xs:element name="all" type="xs:boolean" />
475 </xs:choice>
476 </xs:complexType>
477
159b042f 478 <xs:complexType name="gid_value_type">
83d6d6c4 479 <xs:all>
159b042f 480 <xs:element name="type" type="tns:gid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
481 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
482 </xs:all>
483 </xs:complexType>
484
159b042f
JG
485 <!-- Maps to a list of gid_process_attr_values-->
486 <xs:complexType name="gid_process_attr_values_type">
83d6d6c4 487 <xs:sequence>
159b042f 488 <xs:element name="gid" type="tns:gid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
489 </xs:sequence>
490 </xs:complexType>
491
159b042f
JG
492 <!-- Maps to a gid_process_attr_tracker-->
493 <xs:complexType name="gid_process_attr_tracker_type">
83d6d6c4 494 <xs:all>
159b042f 495 <xs:element name="process_attr_values" type="tns:gid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
496 </xs:all>
497 </xs:complexType>
498
499 <xs:simpleType name="vgidbyint">
500 <xs:restriction base="xs:integer">
501 <xs:minInclusive value="0"/>
502 <xs:maxInclusive value="4294967295" />
503 </xs:restriction>
504 </xs:simpleType>
505
159b042f 506 <xs:complexType name="vgid_value_type_choice">
83d6d6c4
JR
507 <xs:choice>
508 <xs:element name="id" type="tns:vgidbyint" />
509 <xs:element name="name" type="xs:string" />
510 <xs:element name="all" type="xs:boolean" />
511 </xs:choice>
512 </xs:complexType>
513
159b042f 514 <xs:complexType name="vgid_value_type">
83d6d6c4 515 <xs:all>
159b042f 516 <xs:element name="type" type="tns:vgid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
517 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
518 </xs:all>
519 </xs:complexType>
520
159b042f
JG
521 <!-- Maps to a list of vgid_process_attr_values-->
522 <xs:complexType name="vgid_process_attr_values_type">
83d6d6c4 523 <xs:sequence>
159b042f 524 <xs:element name="vgid" type="tns:vgid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
525 </xs:sequence>
526 </xs:complexType>
527
159b042f
JG
528 <!-- Maps to a vgid_process_attr_tracker-->
529 <xs:complexType name="vgid_process_attr_tracker_type">
83d6d6c4 530 <xs:all>
159b042f 531 <xs:element name="process_attr_values" type="tns:vgid_process_attr_values_type" minOccurs="0" />
c12fcec9
JG
532 </xs:all>
533 </xs:complexType>
534
159b042f
JG
535 <!-- Maps to a list of process_attr_trackers-->
536 <xs:complexType name="process_attr_trackers_type">
83d6d6c4
JR
537 <xs:sequence>
538 <xs:choice minOccurs="0" maxOccurs="unbounded">
159b042f
JG
539 <xs:element name="pid_process_attr_tracker" type="tns:pid_process_attr_tracker_type" maxOccurs="1" />
540 <xs:element name="vpid_process_attr_tracker" type="tns:vpid_process_attr_tracker_type" maxOccurs="1" />
541 <xs:element name="uid_process_attr_tracker" type="tns:uid_process_attr_tracker_type" maxOccurs="1" />
542 <xs:element name="vuid_process_attr_tracker" type="tns:vuid_process_attr_tracker_type" maxOccurs="1" />
543 <xs:element name="gid_process_attr_tracker" type="tns:gid_process_attr_tracker_type" maxOccurs="1" />
544 <xs:element name="vgid_process_attr_tracker" type="tns:vgid_process_attr_tracker_type" maxOccurs="1" />
83d6d6c4 545 </xs:choice>
c5e38b74
JR
546 </xs:sequence>
547 </xs:complexType>
548
549 <!-- Maps to struct lttng_domain and contains channels -->
550 <xs:complexType name="domain_type">
551 <xs:all>
00440276
JG
552 <xs:element name="type" type="tns:domain_type_type" />
553 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
554 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
555 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
556 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
159b042f 557 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
c5e38b74
JR
558 </xs:all>
559 </xs:complexType>
560
561 <!-- Maps to struct lttng_channel -->
562 <xs:complexType name="channel_type">
563 <xs:all>
00440276 564 <xs:element name="name" type="tns:name_type" />
f4a088f7 565 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
00440276
JG
566 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
567 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
9618049b 568 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
c5e38b74
JR
569 </xs:all>
570 </xs:complexType>
571
572 <!-- Maps to struct lttng_channel_attr -->
573 <xs:complexType name="channel_attributes_type">
574 <xs:all>
00440276
JG
575 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
576 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
577 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
578 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
579 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
580 <xs:element name="output_type" type="tns:event_output_type" />
581 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
582 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
583 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
fb83fe64
JD
584 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
585 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
cf0bcb51 586 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
491d1539 587 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
c5e38b74
JR
588 </xs:all>
589 </xs:complexType>
590
50534d6f
JRJ
591 <!-- Maps to struct lttng_snapshot_output -->
592 <xs:complexType name="snapshot_type">
593 <xs:all>
00440276
JG
594 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
595 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
596 <xs:element name="name" type="tns:name_type" minOccurs="0" />
597 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
dd89693f
JR
598 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
599 <xs:element name="data_url" type="xs:string" minOccurs="0" />
50534d6f
JRJ
600 </xs:all>
601 </xs:complexType>
602
603 <xs:complexType name="snapshots_type">
604 <xs:sequence>
00440276 605 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
50534d6f
JRJ
606 </xs:sequence>
607 </xs:complexType>
608
66ea93b1
JG
609 <xs:complexType name="periodic_rotation_schedule_type">
610 <xs:all>
611 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
612 </xs:all>
613 </xs:complexType>
614
615 <xs:complexType name="size_threshold_rotation_schedule_type">
616 <xs:all>
617 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
618 </xs:all>
619 </xs:complexType>
620
621 <xs:complexType name="rotation_schedule_type">
622 <xs:sequence>
623 <xs:choice maxOccurs="unbounded">
624 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
625 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
626 </xs:choice>
627 </xs:sequence>
628 </xs:complexType>
629
c5e38b74
JR
630 <xs:complexType name="channels_type">
631 <xs:sequence>
00440276 632 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
633 </xs:sequence>
634 </xs:complexType>
635
f4a088f7 636 <!-- Maps to a lttng_session -->
c5e38b74
JR
637 <xs:complexType name="session_type">
638 <xs:all>
00440276 639 <xs:element name="name" type="tns:name_type" />
dd89693f 640 <xs:element name="path" type="xs:string" minOccurs="0" />
1734c658 641 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
00440276
JG
642 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
643 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
644 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
645 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
646 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
66ea93b1 647 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
c5e38b74
JR
648 </xs:all>
649 </xs:complexType>
650
f4a088f7 651 <!-- Maps to a lttng_event_field -->
c5e38b74
JR
652 <xs:complexType name="event_field_type">
653 <xs:all>
00440276
JG
654 <xs:element name="name" type="tns:name_type" />
655 <xs:element name="type" type="tns:event_field_type_type" />
f4a088f7 656 <xs:element name="nowrite" type="xs:int" />
c5e38b74
JR
657 </xs:all>
658 </xs:complexType>
659
17c4550a 660 <!-- Maps to the save command -->
1734c658
JRJ
661 <xs:complexType name="save_type">
662 <xs:all>
00440276 663 <xs:element name="session" type="tns:session_type" />
dd89693f 664 <xs:element name="path" type="xs:string" />
1734c658
JRJ
665 </xs:all>
666 </xs:complexType>
667
17c4550a 668 <!-- Maps to the load command -->
1734c658
JRJ
669 <xs:complexType name="load_type">
670 <xs:all>
00440276 671 <xs:element name="session" type="tns:session_type" />
dd89693f 672 <xs:element name="path" type="xs:string" />
23cb2d55
JR
673 <xs:element name="overrides" type="tns:overrides_type" />
674 </xs:all>
675 </xs:complexType>
676
677 <!-- Maps to the override parameters of the load command -->
678 <xs:complexType name="overrides_type">
679 <xs:all>
680 <xs:element name="name" type="tns:name_type" minOccurs="0" />
681 <xs:element name="url" type="xs:string" minOccurs="0" />
1734c658
JRJ
682 </xs:all>
683 </xs:complexType>
c5e38b74 684
7e66b1b0
JRJ
685 <!-- Maps to struct lttng_calibrate -->
686 <xs:complexType name="calibrate_type">
687 <xs:all>
00440276 688 <xs:element name="type" type="tns:calibrate_type_type" />
7e66b1b0
JRJ
689 </xs:all>
690 </xs:complexType>
691
17c4550a 692 <!-- Maps to lttng_event_perf_counter_ctx -->
89b72577
JRJ
693 <xs:complexType name="perf_counter_context_type">
694 <xs:all>
8d40c39b
JG
695 <xs:element name="type" type="tns:uint32_type" />
696 <xs:element name="config" type="tns:uint64_type" />
697 <xs:element name="name" type="tns:name_type" />
89b72577
JRJ
698 </xs:all>
699 </xs:complexType>
700
8d40c39b
JG
701 <!-- Maps to app_ctx -->
702 <xs:complexType name="app_context_type">
89b72577 703 <xs:all>
8d40c39b
JG
704 <xs:element name="provider_name" type="xs:string"/>
705 <xs:element name="ctx_name" type="xs:string"/>
89b72577
JRJ
706 </xs:all>
707 </xs:complexType>
708
8d40c39b
JG
709 <!-- Maps to lttng_event_context -->
710 <xs:complexType name="context_type">
59deec0c
JR
711 <xs:sequence>
712 <xs:choice>
713 <xs:element name="type" type="tns:context_type_type"/>
714 <xs:element name="perf" type="tns:perf_counter_context_type"/>
715 <xs:element name="app" type="tns:app_context_type"/>
716 </xs:choice>
717 <xs:element name="symbol" type="xs:string" minOccurs="0" />
718 </xs:sequence>
8d40c39b
JG
719 </xs:complexType>
720
f4a088f7 721 <!-- Maps to an array of domain -->
c5e38b74
JR
722 <xs:complexType name="domains_type">
723 <xs:sequence>
00440276 724 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
725 </xs:sequence>
726 </xs:complexType>
727
f4a088f7 728 <!-- Maps to an array of session -->
c5e38b74
JR
729 <xs:complexType name="sessions_type">
730 <xs:sequence>
00440276 731 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
732 </xs:sequence>
733 </xs:complexType>
734
f4a088f7 735 <!-- Maps to an array of event_field -->
c5e38b74
JR
736 <xs:complexType name="event_fields_type">
737 <xs:sequence>
00440276 738 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
739 </xs:sequence>
740 </xs:complexType>
741
f4a088f7 742 <!-- Maps to an array of context -->
89b72577
JRJ
743 <xs:complexType name="contexts_type">
744 <xs:sequence>
00440276 745 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
89b72577
JRJ
746 </xs:sequence>
747 </xs:complexType>
748
54897b57 749 <!-- Maps to an action during snapshot command -->
d0adede2 750 <xs:complexType name="snapshot_cmd_type">
50534d6f 751 <xs:sequence>
d0adede2 752 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
00440276 753 <xs:element name="output" type="tns:output_type" minOccurs="0" />
50534d6f
JRJ
754 </xs:sequence>
755 </xs:complexType>
756
757 <!-- Type of snapshot commands -->
d0adede2 758 <xs:simpleType name="snapshot_action_type">
50534d6f 759 <xs:restriction base="xs:string">
f4a088f7
JRJ
760 <xs:enumeration value="list-output" />
761 <xs:enumeration value="del-output" />
762 <xs:enumeration value="add-output" />
763 <xs:enumeration value="record-output" />
50534d6f
JRJ
764 </xs:restriction>
765 </xs:simpleType>
766
54897b57 767 <!-- Maps to an action during metadata command -->
d0adede2 768 <xs:complexType name="metadata_cmd_type">
54897b57 769 <xs:sequence>
d0adede2 770 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
54897b57
JD
771 </xs:sequence>
772 </xs:complexType>
773
774 <!-- Type of metadata commands -->
d0adede2 775 <xs:simpleType name="metadata_action_type">
54897b57
JD
776 <xs:restriction base="xs:string">
777 <xs:enumeration value="regenerate" />
778 </xs:restriction>
779 </xs:simpleType>
780
d0adede2
JG
781 <!-- Type of regenerate commands -->
782 <xs:simpleType name="regenerate_action_type">
783 <xs:restriction base="xs:string">
784 <xs:enumeration value="metadata" />
785 <xs:enumeration value="statedump" />
786 </xs:restriction>
787 </xs:simpleType>
788
789 <!-- Type of regenerate command -->
790 <xs:complexType name="regenerate_cmd_type">
791 <xs:sequence>
792 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
793 </xs:sequence>
794 </xs:complexType>
795
91c4d516
JG
796 <xs:complexType name="local_location_type">
797 <xs:sequence>
798 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
799 </xs:sequence>
800 </xs:complexType>
801
802 <xs:complexType name="relay_location_type">
803 <xs:sequence>
804 <xs:element name="host" type="xs:string" minOccurs="1" />
805 <xs:element name="control_port" type="xs:int" minOccurs="0" />
806 <xs:element name="data_port" type="xs:int" minOccurs="0" />
807 <xs:element name="protocol" type="tns:location_relay_protocol_type" minOccurs="1" />
808 <xs:element name="relative_path" type="xs:string" minOccurs="0" />
809 </xs:sequence>
810 </xs:complexType>
811
812 <xs:complexType name="location_type">
813 <xs:choice>
814 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
815 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
816 </xs:choice>
817 </xs:complexType>
818
79344fee 819 <!-- Maps to the rotate command -->
91c4d516
JG
820 <xs:complexType name="rotate_type">
821 <xs:sequence>
822 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
823 <xs:element name="state" type="tns:rotation_state_type" minOccurs="1" />
824 <xs:element name="location" type="tns:location_type" minOccurs="0" />
825 </xs:sequence>
79344fee
JG
826 </xs:complexType>
827
66ea93b1 828 <xs:complexType name="rotation_schedule_result_type">
79344fee 829 <xs:sequence>
66ea93b1
JG
830 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
831 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
79344fee
JG
832 </xs:sequence>
833 </xs:complexType>
834
66ea93b1
JG
835 <!-- Maps to the enable/disable-rotation commands -->
836 <xs:complexType name="rotation_schedule_cmd_type">
79344fee 837 <xs:sequence>
66ea93b1
JG
838 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
839 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
79344fee
JG
840 </xs:sequence>
841 </xs:complexType>
842
c5e38b74
JR
843 <xs:complexType name="output_type">
844 <xs:choice>
00440276
JG
845 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
846 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
847 <xs:element name="session" type="tns:session_type" minOccurs="0" />
d0adede2 848 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
00440276
JG
849 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
850 <xs:element name="version" type="tns:version_type" minOccurs="0" />
851 <xs:element name="save" type="tns:save_type" minOccurs="0" />
852 <xs:element name="load" type="tns:load_type" minOccurs="0" />
853 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
854 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
855 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
856 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
857 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
159b042f 858 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
d0adede2
JG
859 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
860 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
91c4d516 861 <xs:element name="rotation" type="tns:rotate_type" minOccurs="0" />
66ea93b1 862 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
c5e38b74
JR
863 </xs:choice>
864 </xs:complexType>
865
866 <!-- Maps to the mi_lttng commands -->
867 <xs:simpleType name="command_string_type">
868 <xs:restriction base="xs:string">
37d03ff7 869 <xs:enumeration value="create" />
c5e38b74 870 <xs:enumeration value="list" />
50534d6f 871 <xs:enumeration value="snapshot" />
c5e38b74 872 <xs:enumeration value="version" />
1734c658
JRJ
873 <xs:enumeration value="save" />
874 <xs:enumeration value="load" />
1cfc0bc8 875 <xs:enumeration value="start" />
e5b83100 876 <xs:enumeration value="stop" />
65f25c66 877 <xs:enumeration value="destroy" />
7e66b1b0 878 <xs:enumeration value="calibrate" />
89b72577 879 <xs:enumeration value="add-context" />
acc09215 880 <xs:enumeration value="enable-channel" />
89476427 881 <xs:enumeration value="enable-event" />
ce91cd0b 882 <xs:enumeration value="set-session" />
e4d484a5 883 <xs:enumeration value="disable-event" />
50534d6f 884 <xs:enumeration value="disable-channel" />
c12fcec9
JG
885 <xs:enumeration value="track" />
886 <xs:enumeration value="untrack" />
54897b57 887 <xs:enumeration value="metadata" />
d0adede2 888 <xs:enumeration value="regenerate" />
d68c9a04 889 <xs:enumeration value="rotate" />
79344fee
JG
890 <xs:enumeration value="enable-rotation" />
891 <xs:enumeration value="disable-rotation" />
511ed4e2 892 <xs:enumeration value="clear" />
c5e38b74
JR
893 </xs:restriction>
894 </xs:simpleType>
895
896 <xs:element name="command">
897 <xs:complexType>
898 <xs:all>
00440276
JG
899 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
900 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
1734c658 901 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
c5e38b74 902 </xs:all>
8a7db2af 903 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
c5e38b74
JR
904 </xs:complexType>
905 </xs:element>
906</xs:schema>
This page took 0.094135 seconds and 4 git commands to generate.