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