Change backing type of lttng_uuid to std::array
[lttng-tools.git] / src / common / mi-lttng-4.1.xsd
CommitLineData
c5e38b74
JR
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
4b2b86f2 3Copyright (C) 2014 EfficiOS Inc.
ab5be9fa 4Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
c5e38b74 5
ab5be9fa 6SPDX-License-Identifier: MIT
c5e38b74 7
c5e38b74
JR
8-->
9<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
a18d9544
JG
10 targetNamespace="https://lttng.org/xml/ns/lttng-mi"
11 xmlns:tns="https://lttng.org/xml/ns/lttng-mi"
1f1f7e35 12 elementFormDefault="qualified" version="4.1">
c5e38b74
JR
13
14 <!-- Maps to the uint32_t type -->
15 <xs:simpleType name="uint32_type">
16 <xs:restriction base="xs:integer">
17 <xs:minInclusive value="0" />
18 <xs:maxInclusive value="4294967295" />
19 </xs:restriction>
20 </xs:simpleType>
21
22 <!-- Maps to the uint64_t type -->
23 <xs:simpleType name="uint64_type">
24 <xs:restriction base="xs:integer">
25 <xs:minInclusive value="0" />
26 <xs:maxInclusive value="18446744073709551615" />
27 </xs:restriction>
28 </xs:simpleType>
29
252bb128
JR
30 <!-- Maps to the uint64_t type -->
31 <xs:simpleType name="ratio_type">
32 <xs:restriction base="xs:double">
33 <xs:minInclusive value="0" />
34 <xs:maxInclusive value="1" />
35 </xs:restriction>
36 </xs:simpleType>
37
491d1539
MD
38 <!--
39 Maps to the range allowed for blocking timeout: -1 (block
40 forever), 0 (do not block), positive integer value (blocking
41 time in usec) limited by its signed 32-bit representation when
42 converted to msec.
43 -->
44 <xs:simpleType name="blocking_timeout_type">
45 <xs:restriction base="xs:integer">
46 <xs:minInclusive value="-1" />
47 <xs:maxInclusive value="2147483648000" />
48 </xs:restriction>
49 </xs:simpleType>
50
c5e38b74
JR
51 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
52 <xs:simpleType name="name_type">
53 <xs:restriction base="xs:string">
54 <xs:maxLength value="255" />
55 </xs:restriction>
56 </xs:simpleType>
57
58 <!-- Maps to the lttng_event_type enum -->
59 <xs:simpleType name="event_type_type">
60 <xs:restriction base="xs:string">
61 <xs:enumeration value="ALL" />
62 <xs:enumeration value="TRACEPOINT" />
63 <xs:enumeration value="PROBE" />
64 <xs:enumeration value="FUNCTION" />
65 <xs:enumeration value="FUNCTION_ENTRY" />
66 <xs:enumeration value="NOOP" />
67 <xs:enumeration value="SYSCALL" />
5a1c0a75 68 <xs:enumeration value="USERSPACE_PROBE" />
c5e38b74
JR
69 </xs:restriction>
70 </xs:simpleType>
71
72 <!-- Maps to the lttng_event_field_type enum -->
73 <xs:simpleType name="event_field_type_type">
74 <xs:restriction base="xs:string">
75 <xs:enumeration value="OTHER" />
76 <xs:enumeration value="INTEGER" />
77 <xs:enumeration value="ENUM" />
78 <xs:enumeration value="FLOAT" />
79 <xs:enumeration value="STRING" />
80 </xs:restriction>
81 </xs:simpleType>
82
83 <!-- Maps to the lttng_loglevel_type enum -->
84 <xs:simpleType name="loglevel_type">
85 <xs:restriction base="xs:string">
86 <xs:enumeration value="ALL" />
87 <xs:enumeration value="RANGE" />
88 <xs:enumeration value="SINGLE" />
89 <xs:enumeration value="UNKNOWN" />
90 </xs:restriction>
91 </xs:simpleType>
92
c9ffe7f5 93 <!-- Maps to the lttng_event_context_type enum -->
89b72577
JRJ
94 <xs:simpleType name="context_type_type">
95 <xs:restriction base="xs:string">
89b72577
JRJ
96 <xs:enumeration value="PID" />
97 <xs:enumeration value="PROCNAME" />
98 <xs:enumeration value="PRIO" />
99 <xs:enumeration value="NICE" />
100 <xs:enumeration value="VPID" />
101 <xs:enumeration value="TID" />
102 <xs:enumeration value="VTID" />
103 <xs:enumeration value="PPID" />
104 <xs:enumeration value="VPPID" />
105 <xs:enumeration value="PTHREAD_ID" />
106 <xs:enumeration value="HOSTNAME" />
107 <xs:enumeration value="IP" />
a72332c3
JR
108 <xs:enumeration value="INTERRUPTIBLE" />
109 <xs:enumeration value="PREEMPTIBLE" />
110 <xs:enumeration value="NEED_RESCHEDULE" />
111 <xs:enumeration value="MIGRATABLE" />
16c4c991
FD
112 <xs:enumeration value="CALLSTACK_USER" />
113 <xs:enumeration value="CALLSTACK_KERNEL" />
65ae1ae9
JR
114 <xs:enumeration value="CGROUP_NS" />
115 <xs:enumeration value="IPC_NS" />
116 <xs:enumeration value="MNT_NS" />
117 <xs:enumeration value="NET_NS" />
118 <xs:enumeration value="PID_NS" />
d37ac3cd 119 <xs:enumeration value="TIME_NS" />
65ae1ae9
JR
120 <xs:enumeration value="USER_NS" />
121 <xs:enumeration value="UTS_NS" />
122 <xs:enumeration value="UID" />
123 <xs:enumeration value="EUID" />
124 <xs:enumeration value="SUID" />
125 <xs:enumeration value="GID" />
126 <xs:enumeration value="EGID" />
127 <xs:enumeration value="SGID" />
128 <xs:enumeration value="VUID" />
129 <xs:enumeration value="VEUID" />
130 <xs:enumeration value="VSUID" />
131 <xs:enumeration value="VGID" />
132 <xs:enumeration value="VEGID" />
133 <xs:enumeration value="VSGID" />
89b72577
JRJ
134 </xs:restriction>
135 </xs:simpleType>
136
c5e38b74
JR
137 <!-- Maps to loglevel_string char * -->
138 <xs:simpleType name="loglevel_string_type">
139 <xs:restriction base="xs:string">
140 <xs:enumeration value="" />
141 <xs:enumeration value="TRACE_EMERG" />
142 <xs:enumeration value="TRACE_ALERT" />
143 <xs:enumeration value="TRACE_CRIT" />
144 <xs:enumeration value="TRACE_ERR" />
145 <xs:enumeration value="TRACE_WARNING" />
146 <xs:enumeration value="TRACE_NOTICE" />
147 <xs:enumeration value="TRACE_INFO" />
148 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
149 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
150 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
151 <xs:enumeration value="TRACE_DEBUG_MODULE" />
152 <xs:enumeration value="TRACE_DEBUG_UNIT" />
153 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
154 <xs:enumeration value="TRACE_DEBUG_LINE" />
155 <xs:enumeration value="TRACE_DEBUG" />
136f2f81
JRJ
156 <xs:enumeration value="JUL_OFF" />
157 <xs:enumeration value="JUL_SEVERE" />
158 <xs:enumeration value="JUL_WARNING" />
159 <xs:enumeration value="JUL_INFO" />
160 <xs:enumeration value="JUL_CONFIG" />
161 <xs:enumeration value="JUL_FINE" />
162 <xs:enumeration value="JUL_FINER" />
163 <xs:enumeration value="JUL_FINEST" />
164 <xs:enumeration value="JUL_ALL" />
e4d12c27
DG
165 <xs:enumeration value="LOG4J_OFF" />
166 <xs:enumeration value="LOG4J_FATAL" />
167 <xs:enumeration value="LOG4J_ERROR" />
168 <xs:enumeration value="LOG4J_WARN" />
169 <xs:enumeration value="LOG4J_INFO" />
170 <xs:enumeration value="LOG4J_DEBUG" />
171 <xs:enumeration value="LOG4J_TRACE" />
172 <xs:enumeration value="LOG4J_ALL" />
0e115563
DG
173 <xs:enumeration value="PYTHON_CRITICAL" />
174 <xs:enumeration value="PYTHON_ERROR" />
175 <xs:enumeration value="PYTHON_WARNING" />
176 <xs:enumeration value="PYTHON_INFO" />
177 <xs:enumeration value="PYTHON_DEBUG" />
178 <xs:enumeration value="PYTHON_NOTSET" />
c5e38b74
JR
179 <xs:enumeration value="UNKNOWN" />
180 </xs:restriction>
181 </xs:simpleType>
182
91c4d516
JG
183 <!-- Maps to enum lttng_rotation_state -->
184 <xs:simpleType name="rotation_state_type">
185 <xs:restriction base="xs:string">
186 <xs:enumeration value="ONGOING" />
187 <xs:enumeration value="COMPLETED" />
188 <xs:enumeration value="EXPIRED" />
189 <xs:enumeration value="ERROR" />
190 </xs:restriction>
191 </xs:simpleType>
192
193 <!-- Maps to enum lttng_trace_archive_location_relay_protocol_type -->
194 <xs:simpleType name="location_relay_protocol_type">
195 <xs:restriction base="xs:string">
196 <xs:enumeration value="TCP" />
197 </xs:restriction>
198 </xs:simpleType>
199
7e66b1b0
JRJ
200 <!-- Maps to the lttng_calibrate_type enum -->
201 <xs:simpleType name="calibrate_type_type">
202 <xs:restriction base="xs:string">
203 <xs:enumeration value="FUNCTION" />
204 </xs:restriction>
205 </xs:simpleType>
206
252bb128
JR
207 <!-- Maps to the lttng_event_rule_kernel_syscall_emission_site enum -->
208 <xs:simpleType name="event_rule_kernel_syscall_emission_site">
209 <xs:restriction base="xs:string">
210 <xs:enumeration value="entry+exit" />
211 <xs:enumeration value="entry" />
212 <xs:enumeration value="exit" />
213 </xs:restriction>
214 </xs:simpleType>
215
216 <!-- Maps to the lttng_userspace_probe_location_function_instrumentation_type enum -->
217 <xs:simpleType name="userspace_probe_location_function_instrumentation">
218 <xs:restriction base="xs:string">
219 <xs:enumeration value="ENTRY" />
220 </xs:restriction>
221 </xs:simpleType>
222
223 <!-- Maps to the lttng_userspace_probe_location_lookup_method enum -->
224 <xs:simpleType name="userspace_probe_location_lookup_method">
225 <xs:restriction base="xs:string">
226 <xs:enumeration value="FUNCTION-DEFAULT" />
227 <xs:enumeration value="FUNCTION-ELF" />
228 <xs:enumeration value="TRACEPOINT-SDT" />
229 </xs:restriction>
230 </xs:simpleType>
231
c5e38b74
JR
232 <!-- Maps to the lttng_event_probe_attr struct -->
233 <xs:complexType name="event_probe_attributes_type">
234 <xs:all>
00440276
JG
235 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
236 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
237 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
c5e38b74
JR
238 </xs:all>
239 </xs:complexType>
240
241 <!-- Maps to the lttng_event_function_attr struct -->
242 <xs:complexType name="event_ftrace_attributes_type">
243 <xs:all>
00440276 244 <xs:element name="symbol_name" type="tns:name_type" />
c5e38b74
JR
245 </xs:all>
246 </xs:complexType>
247
248 <!-- Maps to per event type configuration -->
249 <xs:complexType name="event_attributes_type">
250 <xs:choice>
00440276
JG
251 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
252 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
c5e38b74
JR
253 </xs:choice>
254 </xs:complexType>
255
f4a088f7 256 <!-- Maps to exclusion type -->
89476427
JRJ
257 <xs:complexType name="event_exclusion_list_type">
258 <xs:sequence>
259 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
260 </xs:sequence>
261 </xs:complexType>
262
c5e38b74
JR
263 <!-- Maps to lttng_event struct -->
264 <xs:complexType name="event_type">
265 <xs:all>
00440276
JG
266 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
267 <xs:element name="name" type="tns:name_type" minOccurs="0" />
268 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
269 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
c5e38b74 270 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
7b4aa11d 271 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
00440276
JG
272 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
273 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
274 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
89476427 275 <xs:element name="success" type="xs:boolean" minOccurs="0" />
c5e38b74
JR
276 </xs:all>
277 </xs:complexType>
278
279 <!-- Maps to mi_lttng_version struct -->
280 <xs:complexType name="version_type">
281 <xs:all>
00440276
JG
282 <xs:element name="name" type="tns:name_type" />
283 <xs:element name="string" type="tns:name_type" />
284 <xs:element name="major" type="tns:uint32_type" />
c5e38b74 285 <xs:element name="url" type="xs:string" />
00440276 286 <xs:element name="minor" type="tns:uint32_type" />
314d5222 287 <xs:element name="commit" type="xs:string" />
c5e38b74 288 <xs:element name="license" type="xs:string" />
00440276 289 <xs:element name="patchLevel" type="tns:uint32_type" />
c5e38b74
JR
290 <xs:element name="description" type="xs:string" />
291 </xs:all>
292 </xs:complexType>
293
f4a088f7 294 <!-- Maps to an array of event -->
c5e38b74
JR
295 <xs:complexType name="event_list_type">
296 <xs:sequence>
00440276 297 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
298 </xs:sequence>
299 </xs:complexType>
300
301 <!-- Maps to the lttng_domain_type enum -->
302 <xs:simpleType name="domain_type_type">
303 <xs:restriction base="xs:string">
304 <xs:enumeration value="KERNEL"/>
305 <xs:enumeration value="UST"/>
306 <xs:enumeration value="JUL"/>
e4d12c27 307 <xs:enumeration value="LOG4J"/>
0e115563 308 <xs:enumeration value="PYTHON"/>
c5e38b74
JR
309 </xs:restriction>
310 </xs:simpleType>
311
312 <!-- Maps to the lttng_buffer_type enum -->
313 <xs:simpleType name="domain_buffer_type">
314 <xs:restriction base="xs:string">
315 <xs:enumeration value="PER_PID"/>
316 <xs:enumeration value="PER_UID"/>
317 <xs:enumeration value="GLOBAL"/>
318 </xs:restriction>
319 </xs:simpleType>
320
f4a088f7 321 <!-- Maps to the type mode of a channel -->
c5e38b74
JR
322 <xs:simpleType name="channel_overwrite_mode_type">
323 <xs:restriction base="xs:string">
324 <xs:enumeration value="DISCARD" />
325 <xs:enumeration value="OVERWRITE" />
326 </xs:restriction>
327 </xs:simpleType>
328
329 <!-- Maps to the lttng_event_output enum -->
330 <xs:simpleType name="event_output_type">
331 <xs:restriction base="xs:string">
332 <xs:enumeration value="SPLICE" />
333 <xs:enumeration value="MMAP" />
334 </xs:restriction>
335 </xs:simpleType>
336
bf239d4c
JR
337 <!-- map to a pid -->
338 <xs:complexType name="pid_type">
c5e38b74 339 <xs:all>
bf239d4c 340 <xs:element name="id" type="xs:int" />
00440276
JG
341 <xs:element name="name" type="tns:name_type" />
342 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
c5e38b74
JR
343 </xs:all>
344 </xs:complexType>
345
bf239d4c 346 <!-- maps to an array of pid -->
c5e38b74
JR
347 <xs:complexType name="pids_type">
348 <xs:sequence>
00440276 349 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
c12fcec9
JG
350 </xs:sequence>
351 </xs:complexType>
352
353 <xs:simpleType name="pidbyint">
354 <xs:restriction base="xs:integer">
355 <xs:minInclusive value="0"/>
356 <xs:maxInclusive value="4294967295" />
357 </xs:restriction>
358 </xs:simpleType>
359
159b042f 360 <xs:complexType name="pid_value_type_choice">
83d6d6c4
JR
361 <xs:choice>
362 <xs:element name="id" type="tns:pidbyint" />
83d6d6c4
JR
363 <xs:element name="all" type="xs:boolean" />
364 </xs:choice>
365 </xs:complexType>
c12fcec9 366
159b042f 367 <xs:complexType name="pid_value_type">
c12fcec9 368 <xs:all>
159b042f 369 <xs:element name="type" type="tns:pid_value_type_choice" />
c12fcec9
JG
370 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
371 </xs:all>
372 </xs:complexType>
373
159b042f
JG
374 <!-- Maps to a list of pid_process_attr_values-->
375 <xs:complexType name="pid_process_attr_values_type">
c12fcec9 376 <xs:sequence>
159b042f 377 <xs:element name="pid" type="tns:pid_value_type" minOccurs="0" maxOccurs="unbounded"/>
c12fcec9
JG
378 </xs:sequence>
379 </xs:complexType>
380
381 <!-- Maps to a pid_tracker-->
159b042f 382 <xs:complexType name="pid_process_attr_tracker_type">
c12fcec9 383 <xs:all>
159b042f 384 <xs:element name="process_attr_values" type="tns:pid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
385 </xs:all>
386 </xs:complexType>
387
388 <xs:simpleType name="vpidbyint">
389 <xs:restriction base="xs:integer">
390 <xs:minInclusive value="0"/>
391 <xs:maxInclusive value="4294967295" />
392 </xs:restriction>
393 </xs:simpleType>
394
159b042f 395 <xs:complexType name="vpid_value_type_choice">
83d6d6c4
JR
396 <xs:choice>
397 <xs:element name="id" type="tns:vpidbyint" />
83d6d6c4
JR
398 <xs:element name="all" type="xs:boolean" />
399 </xs:choice>
400 </xs:complexType>
401
159b042f 402 <xs:complexType name="vpid_value_type">
83d6d6c4 403 <xs:all>
159b042f 404 <xs:element name="type" type="tns:vpid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
405 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
406 </xs:all>
407 </xs:complexType>
408
159b042f
JG
409 <!-- Maps to a list of vpid_process_attr_values-->
410 <xs:complexType name="vpid_process_attr_values_type">
83d6d6c4 411 <xs:sequence>
159b042f 412 <xs:element name="vpid" type="tns:vpid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
413 </xs:sequence>
414 </xs:complexType>
415
416 <!-- Maps to a vpid_tracker-->
159b042f 417 <xs:complexType name="vpid_process_attr_tracker_type">
83d6d6c4 418 <xs:all>
159b042f 419 <xs:element name="process_attr_values" type="tns:vpid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
420 </xs:all>
421 </xs:complexType>
422
423 <xs:simpleType name="uidbyint">
424 <xs:restriction base="xs:integer">
425 <xs:minInclusive value="0"/>
426 <xs:maxInclusive value="4294967295" />
427 </xs:restriction>
428 </xs:simpleType>
429
159b042f 430 <xs:complexType name="uid_value_type_choice">
83d6d6c4
JR
431 <xs:choice>
432 <xs:element name="id" type="tns:uidbyint" />
433 <xs:element name="name" type="xs:string" />
434 <xs:element name="all" type="xs:boolean" />
435 </xs:choice>
436 </xs:complexType>
437
159b042f 438 <xs:complexType name="uid_value_type">
83d6d6c4 439 <xs:all>
159b042f 440 <xs:element name="type" type="tns:uid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
441 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
442 </xs:all>
443 </xs:complexType>
444
159b042f
JG
445 <!-- Maps to a list of uid_process_attr_values-->
446 <xs:complexType name="uid_process_attr_values_type">
83d6d6c4 447 <xs:sequence>
159b042f 448 <xs:element name="uid" type="tns:uid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
449 </xs:sequence>
450 </xs:complexType>
451
159b042f
JG
452 <!-- Maps to a uid_process_attr_tracker-->
453 <xs:complexType name="uid_process_attr_tracker_type">
83d6d6c4 454 <xs:all>
159b042f 455 <xs:element name="process_attr_values" type="tns:uid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
456 </xs:all>
457 </xs:complexType>
458
459 <xs:simpleType name="vuidbyint">
460 <xs:restriction base="xs:integer">
461 <xs:minInclusive value="0"/>
462 <xs:maxInclusive value="4294967295" />
463 </xs:restriction>
464 </xs:simpleType>
465
159b042f 466 <xs:complexType name="vuid_value_type_choice">
83d6d6c4
JR
467 <xs:choice>
468 <xs:element name="id" type="tns:vuidbyint" />
469 <xs:element name="name" type="xs:string" />
470 <xs:element name="all" type="xs:boolean" />
471 </xs:choice>
472 </xs:complexType>
473
159b042f 474 <xs:complexType name="vuid_value_type">
83d6d6c4 475 <xs:all>
159b042f 476 <xs:element name="type" type="tns:vuid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
477 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
478 </xs:all>
479 </xs:complexType>
480
159b042f
JG
481 <!-- Maps to a list of vuid_process_attr_values-->
482 <xs:complexType name="vuid_process_attr_values_type">
83d6d6c4 483 <xs:sequence>
159b042f 484 <xs:element name="vuid" type="tns:vuid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
485 </xs:sequence>
486 </xs:complexType>
487
159b042f
JG
488 <!-- Maps to a vuid_process_attr_tracker-->
489 <xs:complexType name="vuid_process_attr_tracker_type">
83d6d6c4 490 <xs:all>
159b042f 491 <xs:element name="process_attr_values" type="tns:vuid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
492 </xs:all>
493 </xs:complexType>
494
495 <xs:simpleType name="gidbyint">
496 <xs:restriction base="xs:integer">
497 <xs:minInclusive value="0"/>
498 <xs:maxInclusive value="4294967295" />
499 </xs:restriction>
500 </xs:simpleType>
501
159b042f 502 <xs:complexType name="gid_value_type_choice">
83d6d6c4
JR
503 <xs:choice>
504 <xs:element name="id" type="tns:gidbyint" />
505 <xs:element name="name" type="xs:string" />
506 <xs:element name="all" type="xs:boolean" />
507 </xs:choice>
508 </xs:complexType>
509
159b042f 510 <xs:complexType name="gid_value_type">
83d6d6c4 511 <xs:all>
159b042f 512 <xs:element name="type" type="tns:gid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
513 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
514 </xs:all>
515 </xs:complexType>
516
159b042f
JG
517 <!-- Maps to a list of gid_process_attr_values-->
518 <xs:complexType name="gid_process_attr_values_type">
83d6d6c4 519 <xs:sequence>
159b042f 520 <xs:element name="gid" type="tns:gid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
521 </xs:sequence>
522 </xs:complexType>
523
159b042f
JG
524 <!-- Maps to a gid_process_attr_tracker-->
525 <xs:complexType name="gid_process_attr_tracker_type">
83d6d6c4 526 <xs:all>
159b042f 527 <xs:element name="process_attr_values" type="tns:gid_process_attr_values_type" minOccurs="0" />
83d6d6c4
JR
528 </xs:all>
529 </xs:complexType>
530
531 <xs:simpleType name="vgidbyint">
532 <xs:restriction base="xs:integer">
533 <xs:minInclusive value="0"/>
534 <xs:maxInclusive value="4294967295" />
535 </xs:restriction>
536 </xs:simpleType>
537
159b042f 538 <xs:complexType name="vgid_value_type_choice">
83d6d6c4
JR
539 <xs:choice>
540 <xs:element name="id" type="tns:vgidbyint" />
541 <xs:element name="name" type="xs:string" />
542 <xs:element name="all" type="xs:boolean" />
543 </xs:choice>
544 </xs:complexType>
545
159b042f 546 <xs:complexType name="vgid_value_type">
83d6d6c4 547 <xs:all>
159b042f 548 <xs:element name="type" type="tns:vgid_value_type_choice" minOccurs="0" maxOccurs="1" />
83d6d6c4
JR
549 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
550 </xs:all>
551 </xs:complexType>
552
159b042f
JG
553 <!-- Maps to a list of vgid_process_attr_values-->
554 <xs:complexType name="vgid_process_attr_values_type">
83d6d6c4 555 <xs:sequence>
159b042f 556 <xs:element name="vgid" type="tns:vgid_value_type" minOccurs="0" maxOccurs="unbounded"/>
83d6d6c4
JR
557 </xs:sequence>
558 </xs:complexType>
559
159b042f
JG
560 <!-- Maps to a vgid_process_attr_tracker-->
561 <xs:complexType name="vgid_process_attr_tracker_type">
83d6d6c4 562 <xs:all>
159b042f 563 <xs:element name="process_attr_values" type="tns:vgid_process_attr_values_type" minOccurs="0" />
c12fcec9
JG
564 </xs:all>
565 </xs:complexType>
566
159b042f
JG
567 <!-- Maps to a list of process_attr_trackers-->
568 <xs:complexType name="process_attr_trackers_type">
83d6d6c4
JR
569 <xs:sequence>
570 <xs:choice minOccurs="0" maxOccurs="unbounded">
159b042f
JG
571 <xs:element name="pid_process_attr_tracker" type="tns:pid_process_attr_tracker_type" maxOccurs="1" />
572 <xs:element name="vpid_process_attr_tracker" type="tns:vpid_process_attr_tracker_type" maxOccurs="1" />
573 <xs:element name="uid_process_attr_tracker" type="tns:uid_process_attr_tracker_type" maxOccurs="1" />
574 <xs:element name="vuid_process_attr_tracker" type="tns:vuid_process_attr_tracker_type" maxOccurs="1" />
575 <xs:element name="gid_process_attr_tracker" type="tns:gid_process_attr_tracker_type" maxOccurs="1" />
576 <xs:element name="vgid_process_attr_tracker" type="tns:vgid_process_attr_tracker_type" maxOccurs="1" />
83d6d6c4 577 </xs:choice>
c5e38b74
JR
578 </xs:sequence>
579 </xs:complexType>
580
581 <!-- Maps to struct lttng_domain and contains channels -->
582 <xs:complexType name="domain_type">
583 <xs:all>
00440276
JG
584 <xs:element name="type" type="tns:domain_type_type" />
585 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
586 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
587 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
588 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
159b042f 589 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
c5e38b74
JR
590 </xs:all>
591 </xs:complexType>
592
593 <!-- Maps to struct lttng_channel -->
594 <xs:complexType name="channel_type">
595 <xs:all>
00440276 596 <xs:element name="name" type="tns:name_type" />
f4a088f7 597 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
00440276
JG
598 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
599 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
9618049b 600 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
c5e38b74
JR
601 </xs:all>
602 </xs:complexType>
603
604 <!-- Maps to struct lttng_channel_attr -->
605 <xs:complexType name="channel_attributes_type">
606 <xs:all>
00440276
JG
607 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
608 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
609 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
610 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
611 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
612 <xs:element name="output_type" type="tns:event_output_type" />
613 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
614 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
615 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
fb83fe64
JD
616 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
617 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
cf0bcb51 618 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
491d1539 619 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
c5e38b74
JR
620 </xs:all>
621 </xs:complexType>
622
50534d6f
JRJ
623 <!-- Maps to struct lttng_snapshot_output -->
624 <xs:complexType name="snapshot_type">
625 <xs:all>
00440276
JG
626 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
627 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
628 <xs:element name="name" type="tns:name_type" minOccurs="0" />
629 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
dd89693f
JR
630 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
631 <xs:element name="data_url" type="xs:string" minOccurs="0" />
50534d6f
JRJ
632 </xs:all>
633 </xs:complexType>
634
635 <xs:complexType name="snapshots_type">
636 <xs:sequence>
00440276 637 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
50534d6f
JRJ
638 </xs:sequence>
639 </xs:complexType>
640
66ea93b1
JG
641 <xs:complexType name="periodic_rotation_schedule_type">
642 <xs:all>
643 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
644 </xs:all>
645 </xs:complexType>
646
647 <xs:complexType name="size_threshold_rotation_schedule_type">
648 <xs:all>
649 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
650 </xs:all>
651 </xs:complexType>
652
653 <xs:complexType name="rotation_schedule_type">
654 <xs:sequence>
655 <xs:choice maxOccurs="unbounded">
656 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
657 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
658 </xs:choice>
659 </xs:sequence>
660 </xs:complexType>
661
c5e38b74
JR
662 <xs:complexType name="channels_type">
663 <xs:sequence>
00440276 664 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
665 </xs:sequence>
666 </xs:complexType>
667
f4a088f7 668 <!-- Maps to a lttng_session -->
c5e38b74
JR
669 <xs:complexType name="session_type">
670 <xs:all>
00440276 671 <xs:element name="name" type="tns:name_type" />
dd89693f 672 <xs:element name="path" type="xs:string" minOccurs="0" />
1734c658 673 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
00440276
JG
674 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
675 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
676 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
677 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
678 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
66ea93b1 679 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
c5e38b74
JR
680 </xs:all>
681 </xs:complexType>
682
f4a088f7 683 <!-- Maps to a lttng_event_field -->
c5e38b74
JR
684 <xs:complexType name="event_field_type">
685 <xs:all>
00440276
JG
686 <xs:element name="name" type="tns:name_type" />
687 <xs:element name="type" type="tns:event_field_type_type" />
f4a088f7 688 <xs:element name="nowrite" type="xs:int" />
c5e38b74
JR
689 </xs:all>
690 </xs:complexType>
691
17c4550a 692 <!-- Maps to the save command -->
1734c658
JRJ
693 <xs:complexType name="save_type">
694 <xs:all>
00440276 695 <xs:element name="session" type="tns:session_type" />
dd89693f 696 <xs:element name="path" type="xs:string" />
1734c658
JRJ
697 </xs:all>
698 </xs:complexType>
699
17c4550a 700 <!-- Maps to the load command -->
1734c658
JRJ
701 <xs:complexType name="load_type">
702 <xs:all>
00440276 703 <xs:element name="session" type="tns:session_type" />
dd89693f 704 <xs:element name="path" type="xs:string" />
23cb2d55
JR
705 <xs:element name="overrides" type="tns:overrides_type" />
706 </xs:all>
707 </xs:complexType>
708
709 <!-- Maps to the override parameters of the load command -->
710 <xs:complexType name="overrides_type">
711 <xs:all>
712 <xs:element name="name" type="tns:name_type" minOccurs="0" />
713 <xs:element name="url" type="xs:string" minOccurs="0" />
1734c658
JRJ
714 </xs:all>
715 </xs:complexType>
c5e38b74 716
7e66b1b0
JRJ
717 <!-- Maps to struct lttng_calibrate -->
718 <xs:complexType name="calibrate_type">
719 <xs:all>
00440276 720 <xs:element name="type" type="tns:calibrate_type_type" />
7e66b1b0
JRJ
721 </xs:all>
722 </xs:complexType>
723
17c4550a 724 <!-- Maps to lttng_event_perf_counter_ctx -->
89b72577
JRJ
725 <xs:complexType name="perf_counter_context_type">
726 <xs:all>
8d40c39b
JG
727 <xs:element name="type" type="tns:uint32_type" />
728 <xs:element name="config" type="tns:uint64_type" />
729 <xs:element name="name" type="tns:name_type" />
89b72577
JRJ
730 </xs:all>
731 </xs:complexType>
732
8d40c39b
JG
733 <!-- Maps to app_ctx -->
734 <xs:complexType name="app_context_type">
89b72577 735 <xs:all>
8d40c39b
JG
736 <xs:element name="provider_name" type="xs:string"/>
737 <xs:element name="ctx_name" type="xs:string"/>
89b72577
JRJ
738 </xs:all>
739 </xs:complexType>
740
8d40c39b
JG
741 <!-- Maps to lttng_event_context -->
742 <xs:complexType name="context_type">
59deec0c
JR
743 <xs:sequence>
744 <xs:choice>
745 <xs:element name="type" type="tns:context_type_type"/>
746 <xs:element name="perf" type="tns:perf_counter_context_type"/>
747 <xs:element name="app" type="tns:app_context_type"/>
748 </xs:choice>
749 <xs:element name="symbol" type="xs:string" minOccurs="0" />
750 </xs:sequence>
8d40c39b
JG
751 </xs:complexType>
752
f4a088f7 753 <!-- Maps to an array of domain -->
c5e38b74
JR
754 <xs:complexType name="domains_type">
755 <xs:sequence>
00440276 756 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
757 </xs:sequence>
758 </xs:complexType>
759
f4a088f7 760 <!-- Maps to an array of session -->
c5e38b74
JR
761 <xs:complexType name="sessions_type">
762 <xs:sequence>
00440276 763 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
764 </xs:sequence>
765 </xs:complexType>
766
f4a088f7 767 <!-- Maps to an array of event_field -->
c5e38b74
JR
768 <xs:complexType name="event_fields_type">
769 <xs:sequence>
00440276 770 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
771 </xs:sequence>
772 </xs:complexType>
773
f4a088f7 774 <!-- Maps to an array of context -->
89b72577
JRJ
775 <xs:complexType name="contexts_type">
776 <xs:sequence>
00440276 777 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
89b72577
JRJ
778 </xs:sequence>
779 </xs:complexType>
780
54897b57 781 <!-- Maps to an action during snapshot command -->
d0adede2 782 <xs:complexType name="snapshot_cmd_type">
50534d6f 783 <xs:sequence>
d0adede2 784 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
00440276 785 <xs:element name="output" type="tns:output_type" minOccurs="0" />
50534d6f
JRJ
786 </xs:sequence>
787 </xs:complexType>
788
789 <!-- Type of snapshot commands -->
d0adede2 790 <xs:simpleType name="snapshot_action_type">
50534d6f 791 <xs:restriction base="xs:string">
f4a088f7
JRJ
792 <xs:enumeration value="list-output" />
793 <xs:enumeration value="del-output" />
794 <xs:enumeration value="add-output" />
795 <xs:enumeration value="record-output" />
50534d6f
JRJ
796 </xs:restriction>
797 </xs:simpleType>
798
54897b57 799 <!-- Maps to an action during metadata command -->
d0adede2 800 <xs:complexType name="metadata_cmd_type">
54897b57 801 <xs:sequence>
d0adede2 802 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
54897b57
JD
803 </xs:sequence>
804 </xs:complexType>
805
806 <!-- Type of metadata commands -->
d0adede2 807 <xs:simpleType name="metadata_action_type">
54897b57
JD
808 <xs:restriction base="xs:string">
809 <xs:enumeration value="regenerate" />
810 </xs:restriction>
811 </xs:simpleType>
812
d0adede2
JG
813 <!-- Type of regenerate commands -->
814 <xs:simpleType name="regenerate_action_type">
815 <xs:restriction base="xs:string">
816 <xs:enumeration value="metadata" />
817 <xs:enumeration value="statedump" />
818 </xs:restriction>
819 </xs:simpleType>
820
821 <!-- Type of regenerate command -->
822 <xs:complexType name="regenerate_cmd_type">
823 <xs:sequence>
824 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
825 </xs:sequence>
826 </xs:complexType>
827
91c4d516
JG
828 <xs:complexType name="local_location_type">
829 <xs:sequence>
830 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
831 </xs:sequence>
832 </xs:complexType>
833
834 <xs:complexType name="relay_location_type">
835 <xs:sequence>
836 <xs:element name="host" type="xs:string" minOccurs="1" />
837 <xs:element name="control_port" type="xs:int" minOccurs="0" />
838 <xs:element name="data_port" type="xs:int" minOccurs="0" />
839 <xs:element name="protocol" type="tns:location_relay_protocol_type" minOccurs="1" />
840 <xs:element name="relative_path" type="xs:string" minOccurs="0" />
841 </xs:sequence>
842 </xs:complexType>
843
844 <xs:complexType name="location_type">
845 <xs:choice>
846 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
847 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
848 </xs:choice>
849 </xs:complexType>
850
79344fee 851 <!-- Maps to the rotate command -->
91c4d516
JG
852 <xs:complexType name="rotate_type">
853 <xs:sequence>
854 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
855 <xs:element name="state" type="tns:rotation_state_type" minOccurs="1" />
856 <xs:element name="location" type="tns:location_type" minOccurs="0" />
857 </xs:sequence>
79344fee
JG
858 </xs:complexType>
859
66ea93b1 860 <xs:complexType name="rotation_schedule_result_type">
79344fee 861 <xs:sequence>
66ea93b1
JG
862 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
863 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
79344fee
JG
864 </xs:sequence>
865 </xs:complexType>
866
66ea93b1
JG
867 <!-- Maps to the enable/disable-rotation commands -->
868 <xs:complexType name="rotation_schedule_cmd_type">
79344fee 869 <xs:sequence>
66ea93b1
JG
870 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
871 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
79344fee
JG
872 </xs:sequence>
873 </xs:complexType>
874
252bb128
JR
875 <!-- Maps to a lttng_rate_policy subtypes -->
876 <xs:element name="rate_policy_sub_type" abstract="true"/>
877 <xs:element name="rate_policy_every_n" type="tns:rate_policy_every_n_type" substitutionGroup="tns:rate_policy_sub_type" />
878 <xs:element name="rate_policy_once_after_n" type="tns:rate_policy_once_after_n_type" substitutionGroup="tns:rate_policy_sub_type" />
879 <xs:complexType name="rate_policy_every_n_type">
880 <xs:all>
881 <xs:element name="interval" type="tns:uint64_type" minOccurs="1" />
882 </xs:all>
883 </xs:complexType>
884 <xs:complexType name="rate_policy_once_after_n_type">
885 <xs:all>
886 <xs:element name="threshold" type="tns:uint64_type" minOccurs="1" />
887 </xs:all>
888 </xs:complexType>
889
890 <!-- Maps to a lttng_rate_policy -->
891 <xs:complexType name="rate_policy_type">
892 <xs:all>
893 <xs:element ref="tns:rate_policy_sub_type" minOccurs="1" />
894 </xs:all>
895 </xs:complexType>
896
897 <!-- Maps to a lttng_action subtypes -->
898 <xs:element name="action_sub_type" abstract="true"/>
899 <xs:element name="action_list" type="tns:action_list_type" substitutionGroup="tns:action_sub_type" />
900 <xs:element name="action_notify" type="tns:action_notify_type" substitutionGroup="tns:action_sub_type" />
901 <xs:element name="action_rotate_session" type="tns:action_rotate_session_type" substitutionGroup="tns:action_sub_type" />
902 <xs:element name="action_snapshot_session" type="tns:action_snapshot_session_type" substitutionGroup="tns:action_sub_type" />
903 <xs:element name="action_start" type="tns:action_start_session_type" substitutionGroup="tns:action_sub_type" />
904 <xs:element name="action_stop" type="tns:action_stop_session_type" substitutionGroup="tns:action_sub_type" />
905
906 <!-- Maps to a lttng_action list -->
907 <xs:complexType name="action_list_type">
908 <xs:sequence>
909 <xs:element name="action" type="tns:action_type" minOccurs="0" maxOccurs="unbounded" />
910 </xs:sequence>
911 </xs:complexType>
912
913 <!-- Maps to a lttng_action notify -->
914 <xs:complexType name="action_notify_type">
915 <xs:all>
916 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
917 </xs:all>
918 </xs:complexType>
919
920 <!-- Maps to a lttng_action rotate session -->
921 <xs:complexType name="action_rotate_session_type">
922 <xs:all>
923 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
924 <xs:element name="session_name" type="xs:string" minOccurs="1" />
925 </xs:all>
926 </xs:complexType>
927
928 <!-- Maps to struct lttng_snapshot_output tailored to action MI printing, aka without lttng-sessiond state. -->
929 <xs:complexType name="action_snapshot_output_type">
930 <xs:all>
931 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
932 <xs:element name="name" type="tns:name_type" minOccurs="0" />
933 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
934 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
935 <xs:element name="data_url" type="xs:string" minOccurs="0" />
936 </xs:all>
937 </xs:complexType>
938
939 <!-- Maps to a lttng_action snapshot session -->
940 <xs:complexType name="action_snapshot_session_type">
941 <xs:all>
942 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
943 <xs:element name="session_name" type="xs:string" minOccurs="1" />
944 <xs:element name="output" type="tns:action_snapshot_output_type" minOccurs="0" />
945 </xs:all>
946 </xs:complexType>
947
948 <!-- Maps to a lttng_action start session -->
949 <xs:complexType name="action_start_session_type">
950 <xs:all>
951 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
952 <xs:element name="session_name" type="xs:string" minOccurs="1" />
953 </xs:all>
954 </xs:complexType>
955
956 <!-- Maps to a lttng_action stop session -->
957 <xs:complexType name="action_stop_session_type">
958 <xs:all>
959 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
960 <xs:element name="session_name" type="xs:string" minOccurs="1" />
961 </xs:all>
962 </xs:complexType>
963
964 <!-- Maps to a lttng_action -->
965 <xs:complexType name="action_type">
966 <xs:all>
967 <xs:element ref="tns:action_sub_type" minOccurs="1" />
968 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
969 </xs:all>
970 </xs:complexType>
971
972 <!-- Maps to lttng_kernel_probe_location sub types -->
973 <xs:element name="kernel_probe_location_sub_type" abstract="true"/>
974 <xs:element name="kernel_probe_location_address" type="tns:kernel_probe_location_address_type" substitutionGroup="tns:kernel_probe_location_sub_type" />
975 <xs:element name="kernel_probe_location_symbol_offset" type="tns:kernel_probe_location_symbol_offset_type" substitutionGroup="tns:kernel_probe_location_sub_type" />
976
977 <!-- Maps to a lttng_kernel_probe_location_address. -->
978 <xs:complexType name="kernel_probe_location_address_type">
979 <xs:all>
980 <xs:element name="address" type="tns:uint64_type" minOccurs="1" />
981 </xs:all>
982 </xs:complexType>
983
984 <!-- Maps to a lttng_kernel_probe_location_symbol_offset_type. -->
985 <xs:complexType name="kernel_probe_location_symbol_offset_type">
986 <xs:all>
987 <xs:element name="name" type="xs:string" minOccurs="1" />
988 <xs:element name="offset" type="tns:uint64_type" minOccurs="1" />
989 </xs:all>
990 </xs:complexType>
991
992 <!-- Maps to a lttng_kernel_probe_location. -->
993 <xs:complexType name="kernel_probe_location_type">
994 <xs:all>
995 <xs:element ref="tns:kernel_probe_location_sub_type" minOccurs="1" />
996 </xs:all>
997 </xs:complexType>
998
999 <!-- Maps to lttng_user_probe_location sub types -->
1000 <xs:element name="userspace_probe_location_sub_type" abstract="true"/>
1001 <xs:element name="userspace_probe_location_function" type="tns:userspace_probe_location_function_type" substitutionGroup="tns:userspace_probe_location_sub_type" />
1002 <xs:element name="userspace_probe_location_tracepoint" type="tns:userspace_probe_location_tracepoint_type" substitutionGroup="tns:userspace_probe_location_sub_type" />
1003
1004 <!-- Maps to lttng_userspace_probe_location_lookup_method sub type -->
1005 <xs:element name="userspace_probe_location_lookup_method_sub_type" abstract="true"/>
1006 <xs:element name="userspace_probe_location_lookup_method_function_default" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1007 <xs:element name="userspace_probe_location_lookup_method_function_elf" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1008 <xs:element name="userspace_probe_location_lookup_method_tracepoint_sdt" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1009
1010 <!-- Maps to a lttng_userspace_probe_location_lookup_method. -->
1011 <xs:complexType name="userspace_probe_location_lookup_method_type">
1012 <xs:all>
1013 <xs:element ref="tns:userspace_probe_location_lookup_method_sub_type" minOccurs="1" />
1014 </xs:all>
1015 </xs:complexType>
1016
1017 <!-- Maps to a lttng_userspace_probe_location_function. -->
1018 <xs:complexType name="userspace_probe_location_function_type">
1019 <xs:all>
1020 <xs:element name="name" type="xs:string" minOccurs="1" />
1021 <xs:element name="binary_path" type="xs:string" minOccurs="1" />
1022 <xs:element name="instrumentation_type" type="tns:userspace_probe_location_function_instrumentation" minOccurs="1" />
1023 <xs:element name="userspace_probe_location_lookup_method" type="tns:userspace_probe_location_lookup_method_type" minOccurs="1" />
1024 </xs:all>
1025 </xs:complexType>
1026
1027 <!-- Maps to a lttng_userspace_probe_location_tracepoint. -->
1028 <xs:complexType name="userspace_probe_location_tracepoint_type">
1029 <xs:all>
1030 <xs:element name="probe_name" type="xs:string" minOccurs="1" />
1031 <xs:element name="provider_name" type="xs:string" minOccurs="1" />
1032 <xs:element name="binary_path" type="xs:string" minOccurs="1" />
1033 <xs:element name="userspace_probe_location_lookup_method" type="tns:userspace_probe_location_lookup_method_type" minOccurs="1" />
1034 </xs:all>
1035 </xs:complexType>
1036
1037 <!-- Maps to a lttng_userspace_probe_location. -->
1038 <xs:complexType name="userspace_probe_location_type">
1039 <xs:all>
1040 <xs:element ref="tns:userspace_probe_location_sub_type" minOccurs="1" />
1041 </xs:all>
1042 </xs:complexType>
1043
1044 <!-- Maps to a lttng_log_level_rule subtypes -->
1045 <xs:element name="log_level_rule_sub_type" abstract="true"/>
1046 <xs:element name="log_level_rule_exactly" type="tns:log_level_rule_generic_type" substitutionGroup="tns:log_level_rule_sub_type" />
1047 <xs:element name="log_level_rule_at_least_as_severe_as" type="tns:log_level_rule_generic_type" substitutionGroup="tns:log_level_rule_sub_type" />
1048
1049 <!-- Maps to a lttng_log_level_rule_*. -->
1050 <xs:complexType name="log_level_rule_generic_type">
1051 <xs:all>
1052 <xs:element name="level" type="xs:integer" minOccurs="1" />
1053 </xs:all>
1054 </xs:complexType>
1055
1056 <!-- Maps to a lttng_log_level_rule. -->
1057 <xs:complexType name="log_level_rule_type">
1058 <xs:all>
1059 <xs:element ref="tns:log_level_rule_sub_type" minOccurs="1" />
1060 </xs:all>
1061 </xs:complexType>
1062
1063 <!-- Maps to a lttng_event_rule subtypes -->
1064 <xs:element name="event_rule_sub_type" abstract="true"/>
1065 <xs:element name="event_rule_jul_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1066 <xs:element name="event_rule_kernel_kprobe" type="tns:event_rule_kernel_kprobe_type" substitutionGroup="tns:event_rule_sub_type" />
1067 <xs:element name="event_rule_kernel_syscall" type="tns:event_rule_kernel_syscall_type" substitutionGroup="tns:event_rule_sub_type" />
1068 <xs:element name="event_rule_kernel_tracepoint" type="tns:event_rule_kernel_tracepoint_type" substitutionGroup="tns:event_rule_sub_type" />
1069 <xs:element name="event_rule_kernel_uprobe" type="tns:event_rule_kernel_uprobe_type" substitutionGroup="tns:event_rule_sub_type" />
1070 <xs:element name="event_rule_log4j_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1071 <xs:element name="event_rule_python_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1072 <xs:element name="event_rule_user_tracepoint" type="tns:event_rule_user_tracepoint_type" substitutionGroup="tns:event_rule_sub_type" />
1073
1074 <!-- Maps to a lttng_event_rule_kernel_kprobe. -->
1075 <xs:complexType name="event_rule_kernel_kprobe_type">
1076 <xs:all>
1077 <xs:element name="event_name" type="xs:string" minOccurs="1" />
1078 <xs:element name="kernel_probe_location" type="tns:kernel_probe_location_type" minOccurs="1" />
1079 </xs:all>
1080 </xs:complexType>
1081
1082 <!-- Maps to a lttng_event_rule_kernel_syscall. -->
1083 <xs:complexType name="event_rule_kernel_syscall_type">
1084 <xs:all>
1085 <xs:element name="emission_site" type="tns:event_rule_kernel_syscall_emission_site" minOccurs="1" />
1086 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1087 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1088 </xs:all>
1089 </xs:complexType>
1090
1091 <!-- Maps to a lttng_event_rule_kernel_tracepoint. -->
1092 <xs:complexType name="event_rule_kernel_tracepoint_type">
1093 <xs:all>
1094 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1095 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1096 </xs:all>
1097 </xs:complexType>
1098
1099 <!-- Maps to a lttng_event_rule_kernel_uprobe. -->
1100 <xs:complexType name="event_rule_kernel_uprobe_type">
1101 <xs:all>
1102 <xs:element name="event_name" type="xs:string" minOccurs="1" />
1103 <xs:element name="userspace_probe_location" type="tns:userspace_probe_location_type" minOccurs="1" />
1104 </xs:all>
1105 </xs:complexType>
1106
1107
1108 <!-- Maps to a lttng_event_rule_*_logging. -->
1109 <xs:complexType name="event_rule_logging_type">
1110 <xs:all>
1111 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1112 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1113 <xs:element name="log_level_rule" type="tns:log_level_rule_type" minOccurs="0" />
1114 </xs:all>
1115 </xs:complexType>
1116
1117 <!-- Maps to exclusion type -->
1118 <xs:complexType name="name_pattern_exclusions_type">
1119 <xs:sequence>
1120 <xs:element name="name_pattern_exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1121 </xs:sequence>
1122 </xs:complexType>
1123
1124
1125 <!-- Maps to a lttng_event_rule_user_tracepoint. -->
1126 <xs:complexType name="event_rule_user_tracepoint_type">
1127 <xs:all>
1128 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1129 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1130 <xs:element name="log_level_rule" type="tns:log_level_rule_type" minOccurs="0" />
1131 <xs:element name="name_pattern_exclusions" type="tns:name_pattern_exclusions_type" minOccurs="0" />
1132 </xs:all>
1133 </xs:complexType>
1134
1135 <!-- Maps to a lttng_event_rule. -->
1136 <xs:complexType name="event_rule_type">
1137 <xs:all>
1138 <xs:element ref="tns:event_rule_sub_type" minOccurs="1" />
1139 </xs:all>
1140 </xs:complexType>
1141
1142 <!-- Maps to a lttng_condition subtypes -->
1143 <xs:element name="condition_sub_type" abstract="true" />
1144 <xs:element name="condition_buffer_usage_high" type="tns:condition_buffer_usage_type" substitutionGroup="tns:condition_sub_type" />
1145 <xs:element name="condition_buffer_usage_low" type="tns:condition_buffer_usage_type" substitutionGroup="tns:condition_sub_type" />
1146 <xs:element name="condition_event_rule_matches" type="tns:condition_event_rule_matches_type" substitutionGroup="tns:condition_sub_type" />
1147 <xs:element name="condition_session_consumed_size" type="tns:condition_session_consumed_size_type" substitutionGroup="tns:condition_sub_type" />
1148 <xs:element name="condition_session_rotation_completed" type="tns:condition_session_rotation_type" substitutionGroup="tns:condition_sub_type" />
1149 <xs:element name="condition_session_rotation_ongoing" type="tns:condition_session_rotation_type" substitutionGroup="tns:condition_sub_type" />
1150
1151 <!-- Allow expression of the threshold in ratio or in bytes -->
1152 <xs:element name="buffer_usage_threshold_sub_type" abstract="true" />
1153 <xs:element name="threshold_bytes" type="tns:uint64_type" substitutionGroup="tns:buffer_usage_threshold_sub_type" />
1154 <xs:element name="threshold_ratio" type="tns:ratio_type" substitutionGroup="tns:buffer_usage_threshold_sub_type" />
1155
1156 <!-- Maps to a lttng_condition buffer usage for both low and high -->
1157 <xs:complexType name="condition_buffer_usage_type">
1158 <xs:all>
1159 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1160 <xs:element name="channel_name" type="xs:string" minOccurs="1" />
1161 <xs:element name="domain" type="tns:domain_type_type" minOccurs="1" />
1162 <xs:element ref="tns:buffer_usage_threshold_sub_type" minOccurs="1" />
1163 </xs:all>
1164 </xs:complexType>
1165
1166 <!-- Maps to lttng_event_expr sub type -->
1167 <xs:element name="event_expr_sub_type" abstract="true" />
1168 <xs:element name="event_expr_payload_field" type="tns:event_expr_payload_field_type" substitutionGroup="tns:event_expr_sub_type" />
1169 <xs:element name="event_expr_channel_context_field" type="tns:event_expr_channel_context_field_type" substitutionGroup="tns:event_expr_sub_type" />
1170 <xs:element name="event_expr_app_specific_context_field" type="tns:event_expr_app_specific_context_field_type" substitutionGroup="tns:event_expr_sub_type" />
1171 <xs:element name="event_expr_array_field_element" type="tns:event_expr_array_field_element_type" substitutionGroup="tns:event_expr_sub_type" />
1172
1173 <!-- Maps to lttng_event_expr payload_field -->
1174 <xs:complexType name="event_expr_payload_field_type">
1175 <xs:all>
1176 <xs:element name="name" type="xs:string" minOccurs="1" />
1177 </xs:all>
1178 </xs:complexType>
1179 <!-- Maps to lttng_event_expr context field -->
1180 <xs:complexType name="event_expr_channel_context_field_type">
1181 <xs:all>
1182 <xs:element name="name" type="xs:string" minOccurs="1" />
1183 </xs:all>
1184 </xs:complexType>
1185
1186 <!-- Maps to lttng_event_expr app_specific context field -->
1187 <xs:complexType name="event_expr_app_specific_context_field_type">
1188 <xs:all>
1189 <xs:element name="provider_name" type="xs:string" minOccurs="1" />
1190 <xs:element name="type_name" type="xs:string" minOccurs="1" />
1191 </xs:all>
1192 </xs:complexType>
1193 <!-- Maps to lttng_event_expr array field -->
1194 <xs:complexType name="event_expr_array_field_element_type">
1195 <xs:all>
1196 <xs:element name="index" type="tns:uint64_type" minOccurs="1" />
1197 <xs:element name="event_expr" type="tns:event_expr_type" minOccurs="1" />
1198 </xs:all>
1199 </xs:complexType>
1200
1201 <!-- Maps to a lttng_event_expr -->
1202 <xs:complexType name="event_expr_type">
1203 <xs:all>
1204 <xs:element ref="tns:event_expr_sub_type" minOccurs="1" />
1205 </xs:all>
1206 </xs:complexType>
1207
1208 <!-- Maps to an array of lttng_event_expr aka capture descriptor -->
1209 <xs:complexType name="capture_descriptors_type">
1210 <xs:sequence>
1211 <xs:element name="event_expr" type="tns:event_expr_type" minOccurs="0" maxOccurs="unbounded"/>
1212 </xs:sequence>
1213 </xs:complexType>
1214
1215 <!-- Maps to a lttng_condition event rule matches -->
1216 <xs:complexType name="condition_event_rule_matches_type">
1217 <xs:all>
1218 <xs:element name="capture_descriptors" type="tns:capture_descriptors_type" minOccurs="1" />
1219 <xs:element name="event_rule" type="tns:event_rule_type" minOccurs="1" />
1220 </xs:all>
1221 </xs:complexType>
1222
1223 <!-- Maps to a lttng_condition session consumed size -->
1224 <xs:complexType name="condition_session_consumed_size_type">
1225 <xs:all>
1226 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1227 <xs:element name="threshold_bytes" type="tns:uint64_type" minOccurs="1" />
1228 </xs:all>
1229 </xs:complexType>
1230
1231 <!-- Maps to a lttng_condition session consumed size -->
1232 <xs:complexType name="condition_session_rotation_type">
1233 <xs:all>
1234 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1235 </xs:all>
1236 </xs:complexType>
1237
1238 <!-- Maps to a lttng_condition -->
1239 <xs:complexType name="condition_type">
1240 <xs:all>
1241 <xs:element ref="tns:condition_sub_type" minOccurs="1" />
1242 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
1243 </xs:all>
1244 </xs:complexType>
1245
1246 <!-- Maps to lttng_error_query_result sub type -->
1247 <xs:element name="error_query_result_sub_type" abstract="true" />
1248 <xs:element name="error_query_result_counter" type="tns:error_query_result_counter_type" substitutionGroup="tns:error_query_result_sub_type" />
1249
1250 <!-- Maps to lttng_error_query_results -->
1251 <xs:complexType name="error_query_result_counter_type">
1252 <xs:all>
1253 <xs:element name="value" type="tns:uint64_type" minOccurs="1" />
1254 </xs:all>
1255 </xs:complexType>
1256
1257 <!-- Maps to lttng_error_query_result -->
1258 <xs:complexType name="error_query_result_type">
1259 <xs:all>
1260 <xs:element name="name" type="xs:string" minOccurs="1" />
1261 <xs:element name="description" type="xs:string" minOccurs="1" />
1262 <xs:element ref="tns:error_query_result_sub_type" minOccurs="1" />
1263 </xs:all>
1264 </xs:complexType>
1265
1266
1267 <!-- Maps to lttng_error_query_results -->
1268 <xs:complexType name="error_query_results_type">
1269 <xs:sequence>
1270 <xs:element name="error_query_result" type="tns:error_query_result_type" minOccurs="0" maxOccurs="unbounded" />
1271 </xs:sequence>
1272 </xs:complexType>
1273
1274 <!-- Maps to a lttng_trigger -->
1275 <xs:complexType name="trigger_type">
1276 <xs:all>
1277 <xs:element name="action" type="tns:action_type" minOccurs="1" />
1278 <xs:element name="condition" type="tns:condition_type" minOccurs="1" />
1279 <xs:element name="name" type="xs:string" minOccurs="1" />
1280 <xs:element name="owner_uid" type="tns:uidbyint" minOccurs="1"/>
1281 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
1282 </xs:all>
1283 </xs:complexType>
1284
1285 <!-- Maps to lttng_triggers -->
1286 <xs:complexType name="triggers_type">
1287 <xs:sequence>
1288 <xs:element name="trigger" type="tns:trigger_type" minOccurs="0" maxOccurs="unbounded" />
1289 </xs:sequence>
1290 </xs:complexType>
1291
c5e38b74
JR
1292 <xs:complexType name="output_type">
1293 <xs:choice>
00440276 1294 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
bf8ac2ea 1295 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
00440276 1296 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
bf8ac2ea
JR
1297 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
1298 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
00440276 1299 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
bf8ac2ea 1300 <xs:element name="load" type="tns:load_type" minOccurs="0" />
d0adede2 1301 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
bf8ac2ea 1302 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
d0adede2 1303 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
91c4d516 1304 <xs:element name="rotation" type="tns:rotate_type" minOccurs="0" />
66ea93b1 1305 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
bf8ac2ea
JR
1306 <xs:element name="save" type="tns:save_type" minOccurs="0" />
1307 <xs:element name="session" type="tns:session_type" minOccurs="0" />
1308 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
1309 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
1310 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
252bb128
JR
1311 <xs:element name="trigger" type="tns:trigger_type" minOccurs="0" />
1312 <xs:element name="triggers" type="tns:triggers_type" minOccurs="0" />
bf8ac2ea 1313 <xs:element name="version" type="tns:version_type" minOccurs="0" />
c5e38b74
JR
1314 </xs:choice>
1315 </xs:complexType>
1316
1317 <!-- Maps to the mi_lttng commands -->
1318 <xs:simpleType name="command_string_type">
1319 <xs:restriction base="xs:string">
33dc3f63 1320 <xs:enumeration value="add-context" />
252bb128 1321 <xs:enumeration value="add-trigger" />
33dc3f63
JR
1322 <xs:enumeration value="calibrate" />
1323 <xs:enumeration value="clear" />
37d03ff7 1324 <xs:enumeration value="create" />
65f25c66 1325 <xs:enumeration value="destroy" />
33dc3f63
JR
1326 <xs:enumeration value="disable-channel" />
1327 <xs:enumeration value="disable-event" />
1328 <xs:enumeration value="disable-rotation" />
acc09215 1329 <xs:enumeration value="enable-channel" />
89476427 1330 <xs:enumeration value="enable-event" />
33dc3f63
JR
1331 <xs:enumeration value="enable-rotation" />
1332 <xs:enumeration value="list" />
252bb128 1333 <xs:enumeration value="list-trigger" />
33dc3f63 1334 <xs:enumeration value="load" />
54897b57 1335 <xs:enumeration value="metadata" />
d0adede2 1336 <xs:enumeration value="regenerate" />
252bb128 1337 <xs:enumeration value="remove-trigger" />
d68c9a04 1338 <xs:enumeration value="rotate" />
33dc3f63
JR
1339 <xs:enumeration value="save" />
1340 <xs:enumeration value="set-session" />
1341 <xs:enumeration value="snapshot" />
1342 <xs:enumeration value="start" />
1343 <xs:enumeration value="stop" />
1344 <xs:enumeration value="track" />
1345 <xs:enumeration value="untrack" />
1346 <xs:enumeration value="version" />
c5e38b74
JR
1347 </xs:restriction>
1348 </xs:simpleType>
1349
1350 <xs:element name="command">
1351 <xs:complexType>
1352 <xs:all>
00440276
JG
1353 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
1354 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
1734c658 1355 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
c5e38b74 1356 </xs:all>
8a7db2af 1357 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
c5e38b74
JR
1358 </xs:complexType>
1359 </xs:element>
1360</xs:schema>
This page took 0.141413 seconds and 4 git commands to generate.