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