1 <?xml version="1.0" encoding="UTF-8"?>
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>
7 SPDX-License-Identifier: MIT
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">
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" />
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" />
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
37 <xs:simpleType name="blocking_timeout_type">
38 <xs:restriction base="xs:integer">
39 <xs:minInclusive value="-1" />
40 <xs:maxInclusive value="2147483648000" />
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" />
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" />
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" />
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" />
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" />
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" />
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" />
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" />
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" />
199 <!-- Maps to the lttng_event_probe_attr struct -->
200 <xs:complexType name="event_probe_attributes_type">
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" />
208 <!-- Maps to the lttng_event_function_attr struct -->
209 <xs:complexType name="event_ftrace_attributes_type">
211 <xs:element name="symbol_name" type="tns:name_type" />
215 <!-- Maps to per event type configuration -->
216 <xs:complexType name="event_attributes_type">
218 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
219 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
223 <!-- Maps to exclusion type -->
224 <xs:complexType name="event_exclusion_list_type">
226 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
230 <!-- Maps to lttng_event struct -->
231 <xs:complexType name="event_type">
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" />
246 <!-- Maps to mi_lttng_version struct -->
247 <xs:complexType name="version_type">
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" />
261 <!-- Maps to an array of event -->
262 <xs:complexType name="event_list_type">
264 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
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"/>
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"/>
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" />
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" />
304 <!-- map to a pid -->
305 <xs:complexType name="pid_type">
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" />
313 <!-- maps to an array of pid -->
314 <xs:complexType name="pids_type">
316 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
320 <xs:simpleType name="tracker_target_type">
321 <xs:restriction base="xs:string">
322 <xs:enumeration value="ALL" />
323 <xs:enumeration value="NONE" />
324 <xs:enumeration value="LIST" />
328 <xs:simpleType name="pidbyint">
329 <xs:restriction base="xs:integer">
330 <xs:minInclusive value="0"/>
331 <xs:maxInclusive value="4294967295" />
335 <xs:complexType name="pid_target_type_choice">
337 <xs:element name="id" type="tns:pidbyint" />
338 <xs:element name="name" type="xs:string" />
339 <xs:element name="all" type="xs:boolean" />
343 <xs:complexType name="pid_target_type">
345 <xs:element name="type" type="tns:pid_target_type_choice" />
346 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
350 <!-- Maps to a list of pid_targets-->
351 <xs:complexType name="pid_targets_type">
353 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
357 <!-- Maps to a pid_tracker-->
358 <xs:complexType name="pid_tracker_type">
360 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
361 <xs:element name="targets" type="tns:pid_targets_type" minOccurs="0" />
365 <xs:simpleType name="vpidbyint">
366 <xs:restriction base="xs:integer">
367 <xs:minInclusive value="0"/>
368 <xs:maxInclusive value="4294967295" />
372 <xs:complexType name="vpid_target_type_choice">
374 <xs:element name="id" type="tns:vpidbyint" />
375 <xs:element name="name" type="xs:string" />
376 <xs:element name="all" type="xs:boolean" />
380 <xs:complexType name="vpid_target_type">
382 <xs:element name="type" type="tns:vpid_target_type_choice" minOccurs="0" maxOccurs="1" />
383 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
387 <!-- Maps to a list of vpid_targets-->
388 <xs:complexType name="vpid_targets_type">
390 <xs:element name="vpid_target" type="tns:vpid_target_type" minOccurs="0" maxOccurs="unbounded"/>
394 <!-- Maps to a vpid_tracker-->
395 <xs:complexType name="vpid_tracker_type">
397 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
398 <xs:element name="targets" type="tns:vpid_targets_type" minOccurs="0" />
402 <xs:simpleType name="uidbyint">
403 <xs:restriction base="xs:integer">
404 <xs:minInclusive value="0"/>
405 <xs:maxInclusive value="4294967295" />
409 <xs:complexType name="uid_target_type_choice">
411 <xs:element name="id" type="tns:uidbyint" />
412 <xs:element name="name" type="xs:string" />
413 <xs:element name="all" type="xs:boolean" />
417 <xs:complexType name="uid_target_type">
419 <xs:element name="type" type="tns:uid_target_type_choice" minOccurs="0" maxOccurs="1" />
420 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
424 <!-- Maps to a list of uid_targets-->
425 <xs:complexType name="uid_targets_type">
427 <xs:element name="uid_target" type="tns:uid_target_type" minOccurs="0" maxOccurs="unbounded"/>
431 <!-- Maps to a uid_tracker-->
432 <xs:complexType name="uid_tracker_type">
434 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
435 <xs:element name="targets" type="tns:uid_targets_type" minOccurs="0" />
439 <xs:simpleType name="vuidbyint">
440 <xs:restriction base="xs:integer">
441 <xs:minInclusive value="0"/>
442 <xs:maxInclusive value="4294967295" />
446 <xs:complexType name="vuid_target_type_choice">
448 <xs:element name="id" type="tns:vuidbyint" />
449 <xs:element name="name" type="xs:string" />
450 <xs:element name="all" type="xs:boolean" />
454 <xs:complexType name="vuid_target_type">
456 <xs:element name="type" type="tns:vuid_target_type_choice" minOccurs="0" maxOccurs="1" />
457 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
461 <!-- Maps to a list of vuid_targets-->
462 <xs:complexType name="vuid_targets_type">
464 <xs:element name="vuid_target" type="tns:vuid_target_type" minOccurs="0" maxOccurs="unbounded"/>
468 <!-- Maps to a vuid_tracker-->
469 <xs:complexType name="vuid_tracker_type">
471 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
472 <xs:element name="targets" type="tns:vuid_targets_type" minOccurs="0" />
476 <xs:simpleType name="gidbyint">
477 <xs:restriction base="xs:integer">
478 <xs:minInclusive value="0"/>
479 <xs:maxInclusive value="4294967295" />
483 <xs:complexType name="gid_target_type_choice">
485 <xs:element name="id" type="tns:gidbyint" />
486 <xs:element name="name" type="xs:string" />
487 <xs:element name="all" type="xs:boolean" />
491 <xs:complexType name="gid_target_type">
493 <xs:element name="type" type="tns:gid_target_type_choice" minOccurs="0" maxOccurs="1" />
494 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
498 <!-- Maps to a list of gid_targets-->
499 <xs:complexType name="gid_targets_type">
501 <xs:element name="gid_target" type="tns:gid_target_type" minOccurs="0" maxOccurs="unbounded"/>
505 <!-- Maps to a gid_tracker-->
506 <xs:complexType name="gid_tracker_type">
508 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
509 <xs:element name="targets" type="tns:gid_targets_type" minOccurs="0" />
513 <xs:simpleType name="vgidbyint">
514 <xs:restriction base="xs:integer">
515 <xs:minInclusive value="0"/>
516 <xs:maxInclusive value="4294967295" />
520 <xs:complexType name="vgid_target_type_choice">
522 <xs:element name="id" type="tns:vgidbyint" />
523 <xs:element name="name" type="xs:string" />
524 <xs:element name="all" type="xs:boolean" />
528 <xs:complexType name="vgid_target_type">
530 <xs:element name="type" type="tns:vgid_target_type_choice" minOccurs="0" maxOccurs="1" />
531 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
535 <!-- Maps to a list of vgid_targets-->
536 <xs:complexType name="vgid_targets_type">
538 <xs:element name="vgid_target" type="tns:vgid_target_type" minOccurs="0" maxOccurs="unbounded"/>
542 <!-- Maps to a vgid_tracker-->
543 <xs:complexType name="vgid_tracker_type">
545 <xs:element name="target_type" type="tns:tracker_target_type" minOccurs="0" maxOccurs="1" />
546 <xs:element name="targets" type="tns:vgid_targets_type" minOccurs="0" />
550 <!-- Maps to a list of trackers-->
551 <xs:complexType name="trackers_type">
553 <xs:choice minOccurs="0" maxOccurs="unbounded">
554 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
555 <xs:element name="vpid_tracker" type="tns:vpid_tracker_type" maxOccurs="1" />
556 <xs:element name="uid_tracker" type="tns:uid_tracker_type" maxOccurs="1" />
557 <xs:element name="vuid_tracker" type="tns:vuid_tracker_type" maxOccurs="1" />
558 <xs:element name="gid_tracker" type="tns:gid_tracker_type" maxOccurs="1" />
559 <xs:element name="vgid_tracker" type="tns:vgid_tracker_type" maxOccurs="1" />
564 <!-- Maps to struct lttng_domain and contains channels -->
565 <xs:complexType name="domain_type">
567 <xs:element name="type" type="tns:domain_type_type" />
568 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
569 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
570 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
571 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
572 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
576 <!-- Maps to struct lttng_channel -->
577 <xs:complexType name="channel_type">
579 <xs:element name="name" type="tns:name_type" />
580 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
581 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
582 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
583 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
587 <!-- Maps to struct lttng_channel_attr -->
588 <xs:complexType name="channel_attributes_type">
590 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
591 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
592 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
593 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
594 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
595 <xs:element name="output_type" type="tns:event_output_type" />
596 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
597 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
598 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
599 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
600 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
601 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
602 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
606 <!-- Maps to struct lttng_snapshot_output -->
607 <xs:complexType name="snapshot_type">
609 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
610 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
611 <xs:element name="name" type="tns:name_type" minOccurs="0" />
612 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
613 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
614 <xs:element name="data_url" type="xs:string" minOccurs="0" />
618 <xs:complexType name="snapshots_type">
620 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
624 <xs:complexType name="periodic_rotation_schedule_type">
626 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
630 <xs:complexType name="size_threshold_rotation_schedule_type">
632 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
636 <xs:complexType name="rotation_schedule_type">
638 <xs:choice maxOccurs="unbounded">
639 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
640 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
645 <xs:complexType name="channels_type">
647 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
651 <!-- Maps to a lttng_session -->
652 <xs:complexType name="session_type">
654 <xs:element name="name" type="tns:name_type" />
655 <xs:element name="path" type="xs:string" minOccurs="0" />
656 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
657 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
658 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
659 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
660 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
661 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
662 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
666 <!-- Maps to a lttng_event_field -->
667 <xs:complexType name="event_field_type">
669 <xs:element name="name" type="tns:name_type" />
670 <xs:element name="type" type="tns:event_field_type_type" />
671 <xs:element name="nowrite" type="xs:int" />
675 <!-- Maps to the save command -->
676 <xs:complexType name="save_type">
678 <xs:element name="session" type="tns:session_type" />
679 <xs:element name="path" type="xs:string" />
683 <!-- Maps to the load command -->
684 <xs:complexType name="load_type">
686 <xs:element name="session" type="tns:session_type" />
687 <xs:element name="path" type="xs:string" />
688 <xs:element name="overrides" type="tns:overrides_type" />
692 <!-- Maps to the override parameters of the load command -->
693 <xs:complexType name="overrides_type">
695 <xs:element name="name" type="tns:name_type" minOccurs="0" />
696 <xs:element name="url" type="xs:string" minOccurs="0" />
700 <!-- Maps to struct lttng_calibrate -->
701 <xs:complexType name="calibrate_type">
703 <xs:element name="type" type="tns:calibrate_type_type" />
707 <!-- Maps to lttng_event_perf_counter_ctx -->
708 <xs:complexType name="perf_counter_context_type">
710 <xs:element name="type" type="tns:uint32_type" />
711 <xs:element name="config" type="tns:uint64_type" />
712 <xs:element name="name" type="tns:name_type" />
716 <!-- Maps to app_ctx -->
717 <xs:complexType name="app_context_type">
719 <xs:element name="provider_name" type="xs:string"/>
720 <xs:element name="ctx_name" type="xs:string"/>
724 <!-- Maps to lttng_event_context -->
725 <xs:complexType name="context_type">
728 <xs:element name="type" type="tns:context_type_type"/>
729 <xs:element name="perf" type="tns:perf_counter_context_type"/>
730 <xs:element name="app" type="tns:app_context_type"/>
732 <xs:element name="symbol" type="xs:string" minOccurs="0" />
736 <!-- Maps to an array of domain -->
737 <xs:complexType name="domains_type">
739 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
743 <!-- Maps to an array of session -->
744 <xs:complexType name="sessions_type">
746 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
750 <!-- Maps to an array of event_field -->
751 <xs:complexType name="event_fields_type">
753 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
757 <!-- Maps to an array of context -->
758 <xs:complexType name="contexts_type">
760 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
764 <!-- Maps to an action during snapshot command -->
765 <xs:complexType name="snapshot_cmd_type">
767 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
768 <xs:element name="output" type="tns:output_type" minOccurs="0" />
772 <!-- Type of snapshot commands -->
773 <xs:simpleType name="snapshot_action_type">
774 <xs:restriction base="xs:string">
775 <xs:enumeration value="list-output" />
776 <xs:enumeration value="del-output" />
777 <xs:enumeration value="add-output" />
778 <xs:enumeration value="record-output" />
782 <!-- Maps to an action during metadata command -->
783 <xs:complexType name="metadata_cmd_type">
785 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
789 <!-- Type of metadata commands -->
790 <xs:simpleType name="metadata_action_type">
791 <xs:restriction base="xs:string">
792 <xs:enumeration value="regenerate" />
796 <!-- Type of regenerate commands -->
797 <xs:simpleType name="regenerate_action_type">
798 <xs:restriction base="xs:string">
799 <xs:enumeration value="metadata" />
800 <xs:enumeration value="statedump" />
804 <!-- Type of regenerate command -->
805 <xs:complexType name="regenerate_cmd_type">
807 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
811 <xs:complexType name="local_location_type">
813 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
817 <xs:complexType name="relay_location_type">
819 <xs:element name="host" type="xs:string" minOccurs="1" />
820 <xs:element name="control_port" type="xs:int" minOccurs="0" />
821 <xs:element name="data_port" type="xs:int" minOccurs="0" />
822 <xs:element name="protocol" type="tns:location_relay_protocol_type" minOccurs="1" />
823 <xs:element name="relative_path" type="xs:string" minOccurs="0" />
827 <xs:complexType name="location_type">
829 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
830 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
834 <!-- Maps to the rotate command -->
835 <xs:complexType name="rotate_type">
837 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
838 <xs:element name="state" type="tns:rotation_state_type" minOccurs="1" />
839 <xs:element name="location" type="tns:location_type" minOccurs="0" />
843 <xs:complexType name="rotation_schedule_result_type">
845 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
846 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
850 <!-- Maps to the enable/disable-rotation commands -->
851 <xs:complexType name="rotation_schedule_cmd_type">
853 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
854 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
858 <xs:complexType name="output_type">
860 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
861 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
862 <xs:element name="session" type="tns:session_type" minOccurs="0" />
863 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
864 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
865 <xs:element name="version" type="tns:version_type" minOccurs="0" />
866 <xs:element name="save" type="tns:save_type" minOccurs="0" />
867 <xs:element name="load" type="tns:load_type" minOccurs="0" />
868 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
869 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
870 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
871 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
872 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
873 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
874 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
875 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
876 <xs:element name="rotation" type="tns:rotate_type" minOccurs="0" />
877 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
881 <!-- Maps to the mi_lttng commands -->
882 <xs:simpleType name="command_string_type">
883 <xs:restriction base="xs:string">
884 <xs:enumeration value="create" />
885 <xs:enumeration value="list" />
886 <xs:enumeration value="snapshot" />
887 <xs:enumeration value="version" />
888 <xs:enumeration value="save" />
889 <xs:enumeration value="load" />
890 <xs:enumeration value="start" />
891 <xs:enumeration value="stop" />
892 <xs:enumeration value="destroy" />
893 <xs:enumeration value="calibrate" />
894 <xs:enumeration value="add-context" />
895 <xs:enumeration value="enable-channel" />
896 <xs:enumeration value="enable-event" />
897 <xs:enumeration value="set-session" />
898 <xs:enumeration value="disable-event" />
899 <xs:enumeration value="disable-channel" />
900 <xs:enumeration value="track" />
901 <xs:enumeration value="untrack" />
902 <xs:enumeration value="metadata" />
903 <xs:enumeration value="regenerate" />
904 <xs:enumeration value="rotate" />
905 <xs:enumeration value="enable-rotation" />
906 <xs:enumeration value="disable-rotation" />
907 <xs:enumeration value="clear" />
911 <xs:element name="command">
914 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
915 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
916 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
918 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>