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="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" />
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" />
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" />
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" />
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" />
200 <!-- Maps to the lttng_event_probe_attr struct -->
201 <xs:complexType name="event_probe_attributes_type">
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" />
209 <!-- Maps to the lttng_event_function_attr struct -->
210 <xs:complexType name="event_ftrace_attributes_type">
212 <xs:element name="symbol_name" type="tns:name_type" />
216 <!-- Maps to per event type configuration -->
217 <xs:complexType name="event_attributes_type">
219 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
220 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
224 <!-- Maps to exclusion type -->
225 <xs:complexType name="event_exclusion_list_type">
227 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
231 <!-- Maps to lttng_event struct -->
232 <xs:complexType name="event_type">
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" />
247 <!-- Maps to mi_lttng_version struct -->
248 <xs:complexType name="version_type">
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" />
262 <!-- Maps to an array of event -->
263 <xs:complexType name="event_list_type">
265 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
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"/>
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"/>
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" />
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" />
305 <!-- map to a pid -->
306 <xs:complexType name="pid_type">
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" />
314 <!-- maps to an array of pid -->
315 <xs:complexType name="pids_type">
317 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
321 <xs:simpleType name="pidbyint">
322 <xs:restriction base="xs:integer">
323 <xs:minInclusive value="0"/>
324 <xs:maxInclusive value="4294967295" />
328 <xs:complexType name="pid_value_type_choice">
330 <xs:element name="id" type="tns:pidbyint" />
331 <xs:element name="all" type="xs:boolean" />
335 <xs:complexType name="pid_value_type">
337 <xs:element name="type" type="tns:pid_value_type_choice" />
338 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
342 <!-- Maps to a list of pid_process_attr_values-->
343 <xs:complexType name="pid_process_attr_values_type">
345 <xs:element name="pid" type="tns:pid_value_type" minOccurs="0" maxOccurs="unbounded"/>
349 <!-- Maps to a pid_tracker-->
350 <xs:complexType name="pid_process_attr_tracker_type">
352 <xs:element name="process_attr_values" type="tns:pid_process_attr_values_type" minOccurs="0" />
356 <xs:simpleType name="vpidbyint">
357 <xs:restriction base="xs:integer">
358 <xs:minInclusive value="0"/>
359 <xs:maxInclusive value="4294967295" />
363 <xs:complexType name="vpid_value_type_choice">
365 <xs:element name="id" type="tns:vpidbyint" />
366 <xs:element name="all" type="xs:boolean" />
370 <xs:complexType name="vpid_value_type">
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" />
377 <!-- Maps to a list of vpid_process_attr_values-->
378 <xs:complexType name="vpid_process_attr_values_type">
380 <xs:element name="vpid" type="tns:vpid_value_type" minOccurs="0" maxOccurs="unbounded"/>
384 <!-- Maps to a vpid_tracker-->
385 <xs:complexType name="vpid_process_attr_tracker_type">
387 <xs:element name="process_attr_values" type="tns:vpid_process_attr_values_type" minOccurs="0" />
391 <xs:simpleType name="uidbyint">
392 <xs:restriction base="xs:integer">
393 <xs:minInclusive value="0"/>
394 <xs:maxInclusive value="4294967295" />
398 <xs:complexType name="uid_value_type_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" />
406 <xs:complexType name="uid_value_type">
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" />
413 <!-- Maps to a list of uid_process_attr_values-->
414 <xs:complexType name="uid_process_attr_values_type">
416 <xs:element name="uid" type="tns:uid_value_type" minOccurs="0" maxOccurs="unbounded"/>
420 <!-- Maps to a uid_process_attr_tracker-->
421 <xs:complexType name="uid_process_attr_tracker_type">
423 <xs:element name="process_attr_values" type="tns:uid_process_attr_values_type" minOccurs="0" />
427 <xs:simpleType name="vuidbyint">
428 <xs:restriction base="xs:integer">
429 <xs:minInclusive value="0"/>
430 <xs:maxInclusive value="4294967295" />
434 <xs:complexType name="vuid_value_type_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" />
442 <xs:complexType name="vuid_value_type">
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" />
449 <!-- Maps to a list of vuid_process_attr_values-->
450 <xs:complexType name="vuid_process_attr_values_type">
452 <xs:element name="vuid" type="tns:vuid_value_type" minOccurs="0" maxOccurs="unbounded"/>
456 <!-- Maps to a vuid_process_attr_tracker-->
457 <xs:complexType name="vuid_process_attr_tracker_type">
459 <xs:element name="process_attr_values" type="tns:vuid_process_attr_values_type" minOccurs="0" />
463 <xs:simpleType name="gidbyint">
464 <xs:restriction base="xs:integer">
465 <xs:minInclusive value="0"/>
466 <xs:maxInclusive value="4294967295" />
470 <xs:complexType name="gid_value_type_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" />
478 <xs:complexType name="gid_value_type">
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" />
485 <!-- Maps to a list of gid_process_attr_values-->
486 <xs:complexType name="gid_process_attr_values_type">
488 <xs:element name="gid" type="tns:gid_value_type" minOccurs="0" maxOccurs="unbounded"/>
492 <!-- Maps to a gid_process_attr_tracker-->
493 <xs:complexType name="gid_process_attr_tracker_type">
495 <xs:element name="process_attr_values" type="tns:gid_process_attr_values_type" minOccurs="0" />
499 <xs:simpleType name="vgidbyint">
500 <xs:restriction base="xs:integer">
501 <xs:minInclusive value="0"/>
502 <xs:maxInclusive value="4294967295" />
506 <xs:complexType name="vgid_value_type_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" />
514 <xs:complexType name="vgid_value_type">
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" />
521 <!-- Maps to a list of vgid_process_attr_values-->
522 <xs:complexType name="vgid_process_attr_values_type">
524 <xs:element name="vgid" type="tns:vgid_value_type" minOccurs="0" maxOccurs="unbounded"/>
528 <!-- Maps to a vgid_process_attr_tracker-->
529 <xs:complexType name="vgid_process_attr_tracker_type">
531 <xs:element name="process_attr_values" type="tns:vgid_process_attr_values_type" minOccurs="0" />
535 <!-- Maps to a list of process_attr_trackers-->
536 <xs:complexType name="process_attr_trackers_type">
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" />
549 <!-- Maps to struct lttng_domain and contains channels -->
550 <xs:complexType name="domain_type">
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" />
561 <!-- Maps to struct lttng_channel -->
562 <xs:complexType name="channel_type">
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" />
572 <!-- Maps to struct lttng_channel_attr -->
573 <xs:complexType name="channel_attributes_type">
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" />
591 <!-- Maps to struct lttng_snapshot_output -->
592 <xs:complexType name="snapshot_type">
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" />
603 <xs:complexType name="snapshots_type">
605 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
609 <xs:complexType name="periodic_rotation_schedule_type">
611 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
615 <xs:complexType name="size_threshold_rotation_schedule_type">
617 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
621 <xs:complexType name="rotation_schedule_type">
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" />
630 <xs:complexType name="channels_type">
632 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
636 <!-- Maps to a lttng_session -->
637 <xs:complexType name="session_type">
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" />
651 <!-- Maps to a lttng_event_field -->
652 <xs:complexType name="event_field_type">
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" />
660 <!-- Maps to the save command -->
661 <xs:complexType name="save_type">
663 <xs:element name="session" type="tns:session_type" />
664 <xs:element name="path" type="xs:string" />
668 <!-- Maps to the load command -->
669 <xs:complexType name="load_type">
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" />
677 <!-- Maps to the override parameters of the load command -->
678 <xs:complexType name="overrides_type">
680 <xs:element name="name" type="tns:name_type" minOccurs="0" />
681 <xs:element name="url" type="xs:string" minOccurs="0" />
685 <!-- Maps to struct lttng_calibrate -->
686 <xs:complexType name="calibrate_type">
688 <xs:element name="type" type="tns:calibrate_type_type" />
692 <!-- Maps to lttng_event_perf_counter_ctx -->
693 <xs:complexType name="perf_counter_context_type">
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" />
701 <!-- Maps to app_ctx -->
702 <xs:complexType name="app_context_type">
704 <xs:element name="provider_name" type="xs:string"/>
705 <xs:element name="ctx_name" type="xs:string"/>
709 <!-- Maps to lttng_event_context -->
710 <xs:complexType name="context_type">
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"/>
717 <xs:element name="symbol" type="xs:string" minOccurs="0" />
721 <!-- Maps to an array of domain -->
722 <xs:complexType name="domains_type">
724 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
728 <!-- Maps to an array of session -->
729 <xs:complexType name="sessions_type">
731 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
735 <!-- Maps to an array of event_field -->
736 <xs:complexType name="event_fields_type">
738 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
742 <!-- Maps to an array of context -->
743 <xs:complexType name="contexts_type">
745 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
749 <!-- Maps to an action during snapshot command -->
750 <xs:complexType name="snapshot_cmd_type">
752 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
753 <xs:element name="output" type="tns:output_type" minOccurs="0" />
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" />
767 <!-- Maps to an action during metadata command -->
768 <xs:complexType name="metadata_cmd_type">
770 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
774 <!-- Type of metadata commands -->
775 <xs:simpleType name="metadata_action_type">
776 <xs:restriction base="xs:string">
777 <xs:enumeration value="regenerate" />
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" />
789 <!-- Type of regenerate command -->
790 <xs:complexType name="regenerate_cmd_type">
792 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
796 <xs:complexType name="local_location_type">
798 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
802 <xs:complexType name="relay_location_type">
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" />
812 <xs:complexType name="location_type">
814 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
815 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
819 <!-- Maps to the rotate command -->
820 <xs:complexType name="rotate_type">
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" />
828 <xs:complexType name="rotation_schedule_result_type">
830 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
831 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
835 <!-- Maps to the enable/disable-rotation commands -->
836 <xs:complexType name="rotation_schedule_cmd_type">
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" />
843 <xs:complexType name="output_type">
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" />
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" />
896 <xs:element name="command">
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" />
903 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>