1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (C) 2014 EfficiOS Inc.
4 Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 SPDX-License-Identifier: MIT
9 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
10 targetNamespace="https://lttng.org/xml/ns/lttng-mi"
11 xmlns:tns="https://lttng.org/xml/ns/lttng-mi"
12 elementFormDefault="qualified" version="4.1">
14 <!-- Maps to the uint32_t type -->
15 <xs:simpleType name="uint32_type">
16 <xs:restriction base="xs:integer">
17 <xs:minInclusive value="0" />
18 <xs:maxInclusive value="4294967295" />
22 <!-- Maps to the uint64_t type -->
23 <xs:simpleType name="uint64_type">
24 <xs:restriction base="xs:integer">
25 <xs:minInclusive value="0" />
26 <xs:maxInclusive value="18446744073709551615" />
30 <!-- Maps to the uint64_t type -->
31 <xs:simpleType name="ratio_type">
32 <xs:restriction base="xs:double">
33 <xs:minInclusive value="0" />
34 <xs:maxInclusive value="1" />
39 Maps to the range allowed for blocking timeout: -1 (block
40 forever), 0 (do not block), positive integer value (blocking
41 time in usec) limited by its signed 32-bit representation when
44 <xs:simpleType name="blocking_timeout_type">
45 <xs:restriction base="xs:integer">
46 <xs:minInclusive value="-1" />
47 <xs:maxInclusive value="2147483648000" />
51 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
52 <xs:simpleType name="name_type">
53 <xs:restriction base="xs:string">
54 <xs:maxLength value="255" />
58 <!-- Maps to the lttng_event_type enum -->
59 <xs:simpleType name="event_type_type">
60 <xs:restriction base="xs:string">
61 <xs:enumeration value="ALL" />
62 <xs:enumeration value="TRACEPOINT" />
63 <xs:enumeration value="PROBE" />
64 <xs:enumeration value="FUNCTION" />
65 <xs:enumeration value="FUNCTION_ENTRY" />
66 <xs:enumeration value="NOOP" />
67 <xs:enumeration value="SYSCALL" />
68 <xs:enumeration value="USERSPACE_PROBE" />
72 <!-- Maps to the lttng_event_field_type enum -->
73 <xs:simpleType name="event_field_type_type">
74 <xs:restriction base="xs:string">
75 <xs:enumeration value="OTHER" />
76 <xs:enumeration value="INTEGER" />
77 <xs:enumeration value="ENUM" />
78 <xs:enumeration value="FLOAT" />
79 <xs:enumeration value="STRING" />
83 <!-- Maps to the lttng_loglevel_type enum -->
84 <xs:simpleType name="loglevel_type">
85 <xs:restriction base="xs:string">
86 <xs:enumeration value="ALL" />
87 <xs:enumeration value="RANGE" />
88 <xs:enumeration value="SINGLE" />
89 <xs:enumeration value="UNKNOWN" />
93 <!-- Maps to the lttng_event_context_type enum -->
94 <xs:simpleType name="context_type_type">
95 <xs:restriction base="xs:string">
96 <xs:enumeration value="PID" />
97 <xs:enumeration value="PROCNAME" />
98 <xs:enumeration value="PRIO" />
99 <xs:enumeration value="NICE" />
100 <xs:enumeration value="VPID" />
101 <xs:enumeration value="TID" />
102 <xs:enumeration value="VTID" />
103 <xs:enumeration value="PPID" />
104 <xs:enumeration value="VPPID" />
105 <xs:enumeration value="PTHREAD_ID" />
106 <xs:enumeration value="HOSTNAME" />
107 <xs:enumeration value="IP" />
108 <xs:enumeration value="INTERRUPTIBLE" />
109 <xs:enumeration value="PREEMPTIBLE" />
110 <xs:enumeration value="NEED_RESCHEDULE" />
111 <xs:enumeration value="MIGRATABLE" />
112 <xs:enumeration value="CALLSTACK_USER" />
113 <xs:enumeration value="CALLSTACK_KERNEL" />
114 <xs:enumeration value="CGROUP_NS" />
115 <xs:enumeration value="IPC_NS" />
116 <xs:enumeration value="MNT_NS" />
117 <xs:enumeration value="NET_NS" />
118 <xs:enumeration value="PID_NS" />
119 <xs:enumeration value="TIME_NS" />
120 <xs:enumeration value="USER_NS" />
121 <xs:enumeration value="UTS_NS" />
122 <xs:enumeration value="UID" />
123 <xs:enumeration value="EUID" />
124 <xs:enumeration value="SUID" />
125 <xs:enumeration value="GID" />
126 <xs:enumeration value="EGID" />
127 <xs:enumeration value="SGID" />
128 <xs:enumeration value="VUID" />
129 <xs:enumeration value="VEUID" />
130 <xs:enumeration value="VSUID" />
131 <xs:enumeration value="VGID" />
132 <xs:enumeration value="VEGID" />
133 <xs:enumeration value="VSGID" />
137 <!-- Maps to loglevel_string char * -->
138 <xs:simpleType name="loglevel_string_type">
139 <xs:restriction base="xs:string">
140 <xs:enumeration value="" />
141 <xs:enumeration value="TRACE_EMERG" />
142 <xs:enumeration value="TRACE_ALERT" />
143 <xs:enumeration value="TRACE_CRIT" />
144 <xs:enumeration value="TRACE_ERR" />
145 <xs:enumeration value="TRACE_WARNING" />
146 <xs:enumeration value="TRACE_NOTICE" />
147 <xs:enumeration value="TRACE_INFO" />
148 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
149 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
150 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
151 <xs:enumeration value="TRACE_DEBUG_MODULE" />
152 <xs:enumeration value="TRACE_DEBUG_UNIT" />
153 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
154 <xs:enumeration value="TRACE_DEBUG_LINE" />
155 <xs:enumeration value="TRACE_DEBUG" />
156 <xs:enumeration value="JUL_OFF" />
157 <xs:enumeration value="JUL_SEVERE" />
158 <xs:enumeration value="JUL_WARNING" />
159 <xs:enumeration value="JUL_INFO" />
160 <xs:enumeration value="JUL_CONFIG" />
161 <xs:enumeration value="JUL_FINE" />
162 <xs:enumeration value="JUL_FINER" />
163 <xs:enumeration value="JUL_FINEST" />
164 <xs:enumeration value="JUL_ALL" />
165 <xs:enumeration value="LOG4J_OFF" />
166 <xs:enumeration value="LOG4J_FATAL" />
167 <xs:enumeration value="LOG4J_ERROR" />
168 <xs:enumeration value="LOG4J_WARN" />
169 <xs:enumeration value="LOG4J_INFO" />
170 <xs:enumeration value="LOG4J_DEBUG" />
171 <xs:enumeration value="LOG4J_TRACE" />
172 <xs:enumeration value="LOG4J_ALL" />
173 <xs:enumeration value="PYTHON_CRITICAL" />
174 <xs:enumeration value="PYTHON_ERROR" />
175 <xs:enumeration value="PYTHON_WARNING" />
176 <xs:enumeration value="PYTHON_INFO" />
177 <xs:enumeration value="PYTHON_DEBUG" />
178 <xs:enumeration value="PYTHON_NOTSET" />
179 <xs:enumeration value="UNKNOWN" />
183 <!-- Maps to enum lttng_rotation_state -->
184 <xs:simpleType name="rotation_state_type">
185 <xs:restriction base="xs:string">
186 <xs:enumeration value="ONGOING" />
187 <xs:enumeration value="COMPLETED" />
188 <xs:enumeration value="EXPIRED" />
189 <xs:enumeration value="ERROR" />
193 <!-- Maps to enum lttng_trace_archive_location_relay_protocol_type -->
194 <xs:simpleType name="location_relay_protocol_type">
195 <xs:restriction base="xs:string">
196 <xs:enumeration value="TCP" />
200 <!-- Maps to the lttng_calibrate_type enum -->
201 <xs:simpleType name="calibrate_type_type">
202 <xs:restriction base="xs:string">
203 <xs:enumeration value="FUNCTION" />
207 <!-- Maps to the lttng_event_rule_kernel_syscall_emission_site enum -->
208 <xs:simpleType name="event_rule_kernel_syscall_emission_site">
209 <xs:restriction base="xs:string">
210 <xs:enumeration value="entry+exit" />
211 <xs:enumeration value="entry" />
212 <xs:enumeration value="exit" />
216 <!-- Maps to the lttng_userspace_probe_location_function_instrumentation_type enum -->
217 <xs:simpleType name="userspace_probe_location_function_instrumentation">
218 <xs:restriction base="xs:string">
219 <xs:enumeration value="ENTRY" />
223 <!-- Maps to the lttng_userspace_probe_location_lookup_method enum -->
224 <xs:simpleType name="userspace_probe_location_lookup_method">
225 <xs:restriction base="xs:string">
226 <xs:enumeration value="FUNCTION-DEFAULT" />
227 <xs:enumeration value="FUNCTION-ELF" />
228 <xs:enumeration value="TRACEPOINT-SDT" />
232 <!-- Maps to the lttng_event_probe_attr struct -->
233 <xs:complexType name="event_probe_attributes_type">
235 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
236 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
237 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
241 <!-- Maps to the lttng_event_function_attr struct -->
242 <xs:complexType name="event_ftrace_attributes_type">
244 <xs:element name="symbol_name" type="tns:name_type" />
248 <!-- Maps to per event type configuration -->
249 <xs:complexType name="event_attributes_type">
251 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
252 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
256 <!-- Maps to exclusion type -->
257 <xs:complexType name="event_exclusion_list_type">
259 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
263 <!-- Maps to lttng_event struct -->
264 <xs:complexType name="event_type">
266 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
267 <xs:element name="name" type="tns:name_type" minOccurs="0" />
268 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
269 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
270 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
271 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
272 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
273 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
274 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
275 <xs:element name="success" type="xs:boolean" minOccurs="0" />
279 <!-- Maps to mi_lttng_version struct -->
280 <xs:complexType name="version_type">
282 <xs:element name="name" type="tns:name_type" />
283 <xs:element name="string" type="tns:name_type" />
284 <xs:element name="major" type="tns:uint32_type" />
285 <xs:element name="url" type="xs:string" />
286 <xs:element name="minor" type="tns:uint32_type" />
287 <xs:element name="commit" type="xs:string" />
288 <xs:element name="license" type="xs:string" />
289 <xs:element name="patchLevel" type="tns:uint32_type" />
290 <xs:element name="description" type="xs:string" />
294 <!-- Maps to an array of event -->
295 <xs:complexType name="event_list_type">
297 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
301 <!-- Maps to the lttng_domain_type enum -->
302 <xs:simpleType name="domain_type_type">
303 <xs:restriction base="xs:string">
304 <xs:enumeration value="KERNEL"/>
305 <xs:enumeration value="UST"/>
306 <xs:enumeration value="JUL"/>
307 <xs:enumeration value="LOG4J"/>
308 <xs:enumeration value="PYTHON"/>
312 <!-- Maps to the lttng_buffer_type enum -->
313 <xs:simpleType name="domain_buffer_type">
314 <xs:restriction base="xs:string">
315 <xs:enumeration value="PER_PID"/>
316 <xs:enumeration value="PER_UID"/>
317 <xs:enumeration value="GLOBAL"/>
321 <!-- Maps to the type mode of a channel -->
322 <xs:simpleType name="channel_overwrite_mode_type">
323 <xs:restriction base="xs:string">
324 <xs:enumeration value="DISCARD" />
325 <xs:enumeration value="OVERWRITE" />
329 <!-- Maps to the lttng_event_output enum -->
330 <xs:simpleType name="event_output_type">
331 <xs:restriction base="xs:string">
332 <xs:enumeration value="SPLICE" />
333 <xs:enumeration value="MMAP" />
337 <!-- map to a pid -->
338 <xs:complexType name="pid_type">
340 <xs:element name="id" type="xs:int" />
341 <xs:element name="name" type="tns:name_type" />
342 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
346 <!-- maps to an array of pid -->
347 <xs:complexType name="pids_type">
349 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
353 <xs:simpleType name="pidbyint">
354 <xs:restriction base="xs:integer">
355 <xs:minInclusive value="0"/>
356 <xs:maxInclusive value="4294967295" />
360 <xs:complexType name="pid_value_type_choice">
362 <xs:element name="id" type="tns:pidbyint" />
363 <xs:element name="all" type="xs:boolean" />
367 <xs:complexType name="pid_value_type">
369 <xs:element name="type" type="tns:pid_value_type_choice" />
370 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
374 <!-- Maps to a list of pid_process_attr_values-->
375 <xs:complexType name="pid_process_attr_values_type">
377 <xs:element name="pid" type="tns:pid_value_type" minOccurs="0" maxOccurs="unbounded"/>
381 <!-- Maps to a pid_tracker-->
382 <xs:complexType name="pid_process_attr_tracker_type">
384 <xs:element name="process_attr_values" type="tns:pid_process_attr_values_type" minOccurs="0" />
388 <xs:simpleType name="vpidbyint">
389 <xs:restriction base="xs:integer">
390 <xs:minInclusive value="0"/>
391 <xs:maxInclusive value="4294967295" />
395 <xs:complexType name="vpid_value_type_choice">
397 <xs:element name="id" type="tns:vpidbyint" />
398 <xs:element name="all" type="xs:boolean" />
402 <xs:complexType name="vpid_value_type">
404 <xs:element name="type" type="tns:vpid_value_type_choice" minOccurs="0" maxOccurs="1" />
405 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
409 <!-- Maps to a list of vpid_process_attr_values-->
410 <xs:complexType name="vpid_process_attr_values_type">
412 <xs:element name="vpid" type="tns:vpid_value_type" minOccurs="0" maxOccurs="unbounded"/>
416 <!-- Maps to a vpid_tracker-->
417 <xs:complexType name="vpid_process_attr_tracker_type">
419 <xs:element name="process_attr_values" type="tns:vpid_process_attr_values_type" minOccurs="0" />
423 <xs:simpleType name="uidbyint">
424 <xs:restriction base="xs:integer">
425 <xs:minInclusive value="0"/>
426 <xs:maxInclusive value="4294967295" />
430 <xs:complexType name="uid_value_type_choice">
432 <xs:element name="id" type="tns:uidbyint" />
433 <xs:element name="name" type="xs:string" />
434 <xs:element name="all" type="xs:boolean" />
438 <xs:complexType name="uid_value_type">
440 <xs:element name="type" type="tns:uid_value_type_choice" minOccurs="0" maxOccurs="1" />
441 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
445 <!-- Maps to a list of uid_process_attr_values-->
446 <xs:complexType name="uid_process_attr_values_type">
448 <xs:element name="uid" type="tns:uid_value_type" minOccurs="0" maxOccurs="unbounded"/>
452 <!-- Maps to a uid_process_attr_tracker-->
453 <xs:complexType name="uid_process_attr_tracker_type">
455 <xs:element name="process_attr_values" type="tns:uid_process_attr_values_type" minOccurs="0" />
459 <xs:simpleType name="vuidbyint">
460 <xs:restriction base="xs:integer">
461 <xs:minInclusive value="0"/>
462 <xs:maxInclusive value="4294967295" />
466 <xs:complexType name="vuid_value_type_choice">
468 <xs:element name="id" type="tns:vuidbyint" />
469 <xs:element name="name" type="xs:string" />
470 <xs:element name="all" type="xs:boolean" />
474 <xs:complexType name="vuid_value_type">
476 <xs:element name="type" type="tns:vuid_value_type_choice" minOccurs="0" maxOccurs="1" />
477 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
481 <!-- Maps to a list of vuid_process_attr_values-->
482 <xs:complexType name="vuid_process_attr_values_type">
484 <xs:element name="vuid" type="tns:vuid_value_type" minOccurs="0" maxOccurs="unbounded"/>
488 <!-- Maps to a vuid_process_attr_tracker-->
489 <xs:complexType name="vuid_process_attr_tracker_type">
491 <xs:element name="process_attr_values" type="tns:vuid_process_attr_values_type" minOccurs="0" />
495 <xs:simpleType name="gidbyint">
496 <xs:restriction base="xs:integer">
497 <xs:minInclusive value="0"/>
498 <xs:maxInclusive value="4294967295" />
502 <xs:complexType name="gid_value_type_choice">
504 <xs:element name="id" type="tns:gidbyint" />
505 <xs:element name="name" type="xs:string" />
506 <xs:element name="all" type="xs:boolean" />
510 <xs:complexType name="gid_value_type">
512 <xs:element name="type" type="tns:gid_value_type_choice" minOccurs="0" maxOccurs="1" />
513 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
517 <!-- Maps to a list of gid_process_attr_values-->
518 <xs:complexType name="gid_process_attr_values_type">
520 <xs:element name="gid" type="tns:gid_value_type" minOccurs="0" maxOccurs="unbounded"/>
524 <!-- Maps to a gid_process_attr_tracker-->
525 <xs:complexType name="gid_process_attr_tracker_type">
527 <xs:element name="process_attr_values" type="tns:gid_process_attr_values_type" minOccurs="0" />
531 <xs:simpleType name="vgidbyint">
532 <xs:restriction base="xs:integer">
533 <xs:minInclusive value="0"/>
534 <xs:maxInclusive value="4294967295" />
538 <xs:complexType name="vgid_value_type_choice">
540 <xs:element name="id" type="tns:vgidbyint" />
541 <xs:element name="name" type="xs:string" />
542 <xs:element name="all" type="xs:boolean" />
546 <xs:complexType name="vgid_value_type">
548 <xs:element name="type" type="tns:vgid_value_type_choice" minOccurs="0" maxOccurs="1" />
549 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
553 <!-- Maps to a list of vgid_process_attr_values-->
554 <xs:complexType name="vgid_process_attr_values_type">
556 <xs:element name="vgid" type="tns:vgid_value_type" minOccurs="0" maxOccurs="unbounded"/>
560 <!-- Maps to a vgid_process_attr_tracker-->
561 <xs:complexType name="vgid_process_attr_tracker_type">
563 <xs:element name="process_attr_values" type="tns:vgid_process_attr_values_type" minOccurs="0" />
567 <!-- Maps to a list of process_attr_trackers-->
568 <xs:complexType name="process_attr_trackers_type">
570 <xs:choice minOccurs="0" maxOccurs="unbounded">
571 <xs:element name="pid_process_attr_tracker" type="tns:pid_process_attr_tracker_type" maxOccurs="1" />
572 <xs:element name="vpid_process_attr_tracker" type="tns:vpid_process_attr_tracker_type" maxOccurs="1" />
573 <xs:element name="uid_process_attr_tracker" type="tns:uid_process_attr_tracker_type" maxOccurs="1" />
574 <xs:element name="vuid_process_attr_tracker" type="tns:vuid_process_attr_tracker_type" maxOccurs="1" />
575 <xs:element name="gid_process_attr_tracker" type="tns:gid_process_attr_tracker_type" maxOccurs="1" />
576 <xs:element name="vgid_process_attr_tracker" type="tns:vgid_process_attr_tracker_type" maxOccurs="1" />
581 <!-- Maps to struct lttng_domain and contains channels -->
582 <xs:complexType name="domain_type">
584 <xs:element name="type" type="tns:domain_type_type" />
585 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
586 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
587 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
588 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
589 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
593 <!-- Maps to struct lttng_channel -->
594 <xs:complexType name="channel_type">
596 <xs:element name="name" type="tns:name_type" />
597 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
598 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
599 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
600 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
604 <!-- Maps to struct lttng_channel_attr -->
605 <xs:complexType name="channel_attributes_type">
607 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
608 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
609 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
610 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
611 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
612 <xs:element name="output_type" type="tns:event_output_type" />
613 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
614 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
615 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
616 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
617 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
618 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
619 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
623 <!-- Maps to struct lttng_snapshot_output -->
624 <xs:complexType name="snapshot_type">
626 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
627 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
628 <xs:element name="name" type="tns:name_type" minOccurs="0" />
629 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
630 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
631 <xs:element name="data_url" type="xs:string" minOccurs="0" />
635 <xs:complexType name="snapshots_type">
637 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
641 <xs:complexType name="periodic_rotation_schedule_type">
643 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
647 <xs:complexType name="size_threshold_rotation_schedule_type">
649 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
653 <xs:complexType name="rotation_schedule_type">
655 <xs:choice maxOccurs="unbounded">
656 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
657 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
662 <xs:complexType name="channels_type">
664 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
668 <!-- Maps to a lttng_session -->
669 <xs:complexType name="session_type">
671 <xs:element name="name" type="tns:name_type" />
672 <xs:element name="path" type="xs:string" minOccurs="0" />
673 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
674 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
675 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
676 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
677 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
678 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
679 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
683 <!-- Maps to a lttng_event_field -->
684 <xs:complexType name="event_field_type">
686 <xs:element name="name" type="tns:name_type" />
687 <xs:element name="type" type="tns:event_field_type_type" />
688 <xs:element name="nowrite" type="xs:int" />
692 <!-- Maps to the save command -->
693 <xs:complexType name="save_type">
695 <xs:element name="session" type="tns:session_type" />
696 <xs:element name="path" type="xs:string" />
700 <!-- Maps to the load command -->
701 <xs:complexType name="load_type">
703 <xs:element name="session" type="tns:session_type" />
704 <xs:element name="path" type="xs:string" />
705 <xs:element name="overrides" type="tns:overrides_type" />
709 <!-- Maps to the override parameters of the load command -->
710 <xs:complexType name="overrides_type">
712 <xs:element name="name" type="tns:name_type" minOccurs="0" />
713 <xs:element name="url" type="xs:string" minOccurs="0" />
717 <!-- Maps to struct lttng_calibrate -->
718 <xs:complexType name="calibrate_type">
720 <xs:element name="type" type="tns:calibrate_type_type" />
724 <!-- Maps to lttng_event_perf_counter_ctx -->
725 <xs:complexType name="perf_counter_context_type">
727 <xs:element name="type" type="tns:uint32_type" />
728 <xs:element name="config" type="tns:uint64_type" />
729 <xs:element name="name" type="tns:name_type" />
733 <!-- Maps to app_ctx -->
734 <xs:complexType name="app_context_type">
736 <xs:element name="provider_name" type="xs:string"/>
737 <xs:element name="ctx_name" type="xs:string"/>
741 <!-- Maps to lttng_event_context -->
742 <xs:complexType name="context_type">
745 <xs:element name="type" type="tns:context_type_type"/>
746 <xs:element name="perf" type="tns:perf_counter_context_type"/>
747 <xs:element name="app" type="tns:app_context_type"/>
749 <xs:element name="symbol" type="xs:string" minOccurs="0" />
753 <!-- Maps to an array of domain -->
754 <xs:complexType name="domains_type">
756 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
760 <!-- Maps to an array of session -->
761 <xs:complexType name="sessions_type">
763 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
767 <!-- Maps to an array of event_field -->
768 <xs:complexType name="event_fields_type">
770 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
774 <!-- Maps to an array of context -->
775 <xs:complexType name="contexts_type">
777 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
781 <!-- Maps to an action during snapshot command -->
782 <xs:complexType name="snapshot_cmd_type">
784 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
785 <xs:element name="output" type="tns:output_type" minOccurs="0" />
789 <!-- Type of snapshot commands -->
790 <xs:simpleType name="snapshot_action_type">
791 <xs:restriction base="xs:string">
792 <xs:enumeration value="list-output" />
793 <xs:enumeration value="del-output" />
794 <xs:enumeration value="add-output" />
795 <xs:enumeration value="record-output" />
799 <!-- Maps to an action during metadata command -->
800 <xs:complexType name="metadata_cmd_type">
802 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
806 <!-- Type of metadata commands -->
807 <xs:simpleType name="metadata_action_type">
808 <xs:restriction base="xs:string">
809 <xs:enumeration value="regenerate" />
813 <!-- Type of regenerate commands -->
814 <xs:simpleType name="regenerate_action_type">
815 <xs:restriction base="xs:string">
816 <xs:enumeration value="metadata" />
817 <xs:enumeration value="statedump" />
821 <!-- Type of regenerate command -->
822 <xs:complexType name="regenerate_cmd_type">
824 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
828 <xs:complexType name="local_location_type">
830 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
834 <xs:complexType name="relay_location_type">
836 <xs:element name="host" type="xs:string" minOccurs="1" />
837 <xs:element name="control_port" type="xs:int" minOccurs="0" />
838 <xs:element name="data_port" type="xs:int" minOccurs="0" />
839 <xs:element name="protocol" type="tns:location_relay_protocol_type" minOccurs="1" />
840 <xs:element name="relative_path" type="xs:string" minOccurs="0" />
844 <xs:complexType name="location_type">
846 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
847 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
851 <!-- Maps to the rotate command -->
852 <xs:complexType name="rotate_type">
854 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
855 <xs:element name="state" type="tns:rotation_state_type" minOccurs="1" />
856 <xs:element name="location" type="tns:location_type" minOccurs="0" />
860 <xs:complexType name="rotation_schedule_result_type">
862 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
863 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
867 <!-- Maps to the enable/disable-rotation commands -->
868 <xs:complexType name="rotation_schedule_cmd_type">
870 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
871 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
875 <!-- Maps to a lttng_rate_policy subtypes -->
876 <xs:element name="rate_policy_sub_type" abstract="true"/>
877 <xs:element name="rate_policy_every_n" type="tns:rate_policy_every_n_type" substitutionGroup="tns:rate_policy_sub_type" />
878 <xs:element name="rate_policy_once_after_n" type="tns:rate_policy_once_after_n_type" substitutionGroup="tns:rate_policy_sub_type" />
879 <xs:complexType name="rate_policy_every_n_type">
881 <xs:element name="interval" type="tns:uint64_type" minOccurs="1" />
884 <xs:complexType name="rate_policy_once_after_n_type">
886 <xs:element name="threshold" type="tns:uint64_type" minOccurs="1" />
890 <!-- Maps to a lttng_rate_policy -->
891 <xs:complexType name="rate_policy_type">
893 <xs:element ref="tns:rate_policy_sub_type" minOccurs="1" />
897 <!-- Maps to a lttng_action subtypes -->
898 <xs:element name="action_sub_type" abstract="true"/>
899 <xs:element name="action_list" type="tns:action_list_type" substitutionGroup="tns:action_sub_type" />
900 <xs:element name="action_notify" type="tns:action_notify_type" substitutionGroup="tns:action_sub_type" />
901 <xs:element name="action_rotate_session" type="tns:action_rotate_session_type" substitutionGroup="tns:action_sub_type" />
902 <xs:element name="action_snapshot_session" type="tns:action_snapshot_session_type" substitutionGroup="tns:action_sub_type" />
903 <xs:element name="action_start" type="tns:action_start_session_type" substitutionGroup="tns:action_sub_type" />
904 <xs:element name="action_stop" type="tns:action_stop_session_type" substitutionGroup="tns:action_sub_type" />
906 <!-- Maps to a lttng_action list -->
907 <xs:complexType name="action_list_type">
909 <xs:element name="action" type="tns:action_type" minOccurs="0" maxOccurs="unbounded" />
913 <!-- Maps to a lttng_action notify -->
914 <xs:complexType name="action_notify_type">
916 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
920 <!-- Maps to a lttng_action rotate session -->
921 <xs:complexType name="action_rotate_session_type">
923 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
924 <xs:element name="session_name" type="xs:string" minOccurs="1" />
928 <!-- Maps to struct lttng_snapshot_output tailored to action MI printing, aka without lttng-sessiond state. -->
929 <xs:complexType name="action_snapshot_output_type">
931 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
932 <xs:element name="name" type="tns:name_type" minOccurs="0" />
933 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
934 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
935 <xs:element name="data_url" type="xs:string" minOccurs="0" />
939 <!-- Maps to a lttng_action snapshot session -->
940 <xs:complexType name="action_snapshot_session_type">
942 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
943 <xs:element name="session_name" type="xs:string" minOccurs="1" />
944 <xs:element name="output" type="tns:action_snapshot_output_type" minOccurs="0" />
948 <!-- Maps to a lttng_action start session -->
949 <xs:complexType name="action_start_session_type">
951 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
952 <xs:element name="session_name" type="xs:string" minOccurs="1" />
956 <!-- Maps to a lttng_action stop session -->
957 <xs:complexType name="action_stop_session_type">
959 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
960 <xs:element name="session_name" type="xs:string" minOccurs="1" />
964 <!-- Maps to a lttng_action -->
965 <xs:complexType name="action_type">
967 <xs:element ref="tns:action_sub_type" minOccurs="1" />
968 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
972 <!-- Maps to lttng_kernel_probe_location sub types -->
973 <xs:element name="kernel_probe_location_sub_type" abstract="true"/>
974 <xs:element name="kernel_probe_location_address" type="tns:kernel_probe_location_address_type" substitutionGroup="tns:kernel_probe_location_sub_type" />
975 <xs:element name="kernel_probe_location_symbol_offset" type="tns:kernel_probe_location_symbol_offset_type" substitutionGroup="tns:kernel_probe_location_sub_type" />
977 <!-- Maps to a lttng_kernel_probe_location_address. -->
978 <xs:complexType name="kernel_probe_location_address_type">
980 <xs:element name="address" type="tns:uint64_type" minOccurs="1" />
984 <!-- Maps to a lttng_kernel_probe_location_symbol_offset_type. -->
985 <xs:complexType name="kernel_probe_location_symbol_offset_type">
987 <xs:element name="name" type="xs:string" minOccurs="1" />
988 <xs:element name="offset" type="tns:uint64_type" minOccurs="1" />
992 <!-- Maps to a lttng_kernel_probe_location. -->
993 <xs:complexType name="kernel_probe_location_type">
995 <xs:element ref="tns:kernel_probe_location_sub_type" minOccurs="1" />
999 <!-- Maps to lttng_user_probe_location sub types -->
1000 <xs:element name="userspace_probe_location_sub_type" abstract="true"/>
1001 <xs:element name="userspace_probe_location_function" type="tns:userspace_probe_location_function_type" substitutionGroup="tns:userspace_probe_location_sub_type" />
1002 <xs:element name="userspace_probe_location_tracepoint" type="tns:userspace_probe_location_tracepoint_type" substitutionGroup="tns:userspace_probe_location_sub_type" />
1004 <!-- Maps to lttng_userspace_probe_location_lookup_method sub type -->
1005 <xs:element name="userspace_probe_location_lookup_method_sub_type" abstract="true"/>
1006 <xs:element name="userspace_probe_location_lookup_method_function_default" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1007 <xs:element name="userspace_probe_location_lookup_method_function_elf" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1008 <xs:element name="userspace_probe_location_lookup_method_tracepoint_sdt" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1010 <!-- Maps to a lttng_userspace_probe_location_lookup_method. -->
1011 <xs:complexType name="userspace_probe_location_lookup_method_type">
1013 <xs:element ref="tns:userspace_probe_location_lookup_method_sub_type" minOccurs="1" />
1017 <!-- Maps to a lttng_userspace_probe_location_function. -->
1018 <xs:complexType name="userspace_probe_location_function_type">
1020 <xs:element name="name" type="xs:string" minOccurs="1" />
1021 <xs:element name="binary_path" type="xs:string" minOccurs="1" />
1022 <xs:element name="instrumentation_type" type="tns:userspace_probe_location_function_instrumentation" minOccurs="1" />
1023 <xs:element name="userspace_probe_location_lookup_method" type="tns:userspace_probe_location_lookup_method_type" minOccurs="1" />
1027 <!-- Maps to a lttng_userspace_probe_location_tracepoint. -->
1028 <xs:complexType name="userspace_probe_location_tracepoint_type">
1030 <xs:element name="probe_name" type="xs:string" minOccurs="1" />
1031 <xs:element name="provider_name" type="xs:string" minOccurs="1" />
1032 <xs:element name="binary_path" type="xs:string" minOccurs="1" />
1033 <xs:element name="userspace_probe_location_lookup_method" type="tns:userspace_probe_location_lookup_method_type" minOccurs="1" />
1037 <!-- Maps to a lttng_userspace_probe_location. -->
1038 <xs:complexType name="userspace_probe_location_type">
1040 <xs:element ref="tns:userspace_probe_location_sub_type" minOccurs="1" />
1044 <!-- Maps to a lttng_log_level_rule subtypes -->
1045 <xs:element name="log_level_rule_sub_type" abstract="true"/>
1046 <xs:element name="log_level_rule_exactly" type="tns:log_level_rule_generic_type" substitutionGroup="tns:log_level_rule_sub_type" />
1047 <xs:element name="log_level_rule_at_least_as_severe_as" type="tns:log_level_rule_generic_type" substitutionGroup="tns:log_level_rule_sub_type" />
1049 <!-- Maps to a lttng_log_level_rule_*. -->
1050 <xs:complexType name="log_level_rule_generic_type">
1052 <xs:element name="level" type="xs:integer" minOccurs="1" />
1056 <!-- Maps to a lttng_log_level_rule. -->
1057 <xs:complexType name="log_level_rule_type">
1059 <xs:element ref="tns:log_level_rule_sub_type" minOccurs="1" />
1063 <!-- Maps to a lttng_event_rule subtypes -->
1064 <xs:element name="event_rule_sub_type" abstract="true"/>
1065 <xs:element name="event_rule_jul_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1066 <xs:element name="event_rule_kernel_kprobe" type="tns:event_rule_kernel_kprobe_type" substitutionGroup="tns:event_rule_sub_type" />
1067 <xs:element name="event_rule_kernel_syscall" type="tns:event_rule_kernel_syscall_type" substitutionGroup="tns:event_rule_sub_type" />
1068 <xs:element name="event_rule_kernel_tracepoint" type="tns:event_rule_kernel_tracepoint_type" substitutionGroup="tns:event_rule_sub_type" />
1069 <xs:element name="event_rule_kernel_uprobe" type="tns:event_rule_kernel_uprobe_type" substitutionGroup="tns:event_rule_sub_type" />
1070 <xs:element name="event_rule_log4j_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1071 <xs:element name="event_rule_python_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1072 <xs:element name="event_rule_user_tracepoint" type="tns:event_rule_user_tracepoint_type" substitutionGroup="tns:event_rule_sub_type" />
1074 <!-- Maps to a lttng_event_rule_kernel_kprobe. -->
1075 <xs:complexType name="event_rule_kernel_kprobe_type">
1077 <xs:element name="event_name" type="xs:string" minOccurs="1" />
1078 <xs:element name="kernel_probe_location" type="tns:kernel_probe_location_type" minOccurs="1" />
1082 <!-- Maps to a lttng_event_rule_kernel_syscall. -->
1083 <xs:complexType name="event_rule_kernel_syscall_type">
1085 <xs:element name="emission_site" type="tns:event_rule_kernel_syscall_emission_site" minOccurs="1" />
1086 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1087 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1091 <!-- Maps to a lttng_event_rule_kernel_tracepoint. -->
1092 <xs:complexType name="event_rule_kernel_tracepoint_type">
1094 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1095 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1099 <!-- Maps to a lttng_event_rule_kernel_uprobe. -->
1100 <xs:complexType name="event_rule_kernel_uprobe_type">
1102 <xs:element name="event_name" type="xs:string" minOccurs="1" />
1103 <xs:element name="userspace_probe_location" type="tns:userspace_probe_location_type" minOccurs="1" />
1108 <!-- Maps to a lttng_event_rule_*_logging. -->
1109 <xs:complexType name="event_rule_logging_type">
1111 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1112 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1113 <xs:element name="log_level_rule" type="tns:log_level_rule_type" minOccurs="0" />
1117 <!-- Maps to exclusion type -->
1118 <xs:complexType name="name_pattern_exclusions_type">
1120 <xs:element name="name_pattern_exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1125 <!-- Maps to a lttng_event_rule_user_tracepoint. -->
1126 <xs:complexType name="event_rule_user_tracepoint_type">
1128 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1129 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1130 <xs:element name="log_level_rule" type="tns:log_level_rule_type" minOccurs="0" />
1131 <xs:element name="name_pattern_exclusions" type="tns:name_pattern_exclusions_type" minOccurs="0" />
1135 <!-- Maps to a lttng_event_rule. -->
1136 <xs:complexType name="event_rule_type">
1138 <xs:element ref="tns:event_rule_sub_type" minOccurs="1" />
1142 <!-- Maps to a lttng_condition subtypes -->
1143 <xs:element name="condition_sub_type" abstract="true" />
1144 <xs:element name="condition_buffer_usage_high" type="tns:condition_buffer_usage_type" substitutionGroup="tns:condition_sub_type" />
1145 <xs:element name="condition_buffer_usage_low" type="tns:condition_buffer_usage_type" substitutionGroup="tns:condition_sub_type" />
1146 <xs:element name="condition_event_rule_matches" type="tns:condition_event_rule_matches_type" substitutionGroup="tns:condition_sub_type" />
1147 <xs:element name="condition_session_consumed_size" type="tns:condition_session_consumed_size_type" substitutionGroup="tns:condition_sub_type" />
1148 <xs:element name="condition_session_rotation_completed" type="tns:condition_session_rotation_type" substitutionGroup="tns:condition_sub_type" />
1149 <xs:element name="condition_session_rotation_ongoing" type="tns:condition_session_rotation_type" substitutionGroup="tns:condition_sub_type" />
1151 <!-- Allow expression of the threshold in ratio or in bytes -->
1152 <xs:element name="buffer_usage_threshold_sub_type" abstract="true" />
1153 <xs:element name="threshold_bytes" type="tns:uint64_type" substitutionGroup="tns:buffer_usage_threshold_sub_type" />
1154 <xs:element name="threshold_ratio" type="tns:ratio_type" substitutionGroup="tns:buffer_usage_threshold_sub_type" />
1156 <!-- Maps to a lttng_condition buffer usage for both low and high -->
1157 <xs:complexType name="condition_buffer_usage_type">
1159 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1160 <xs:element name="channel_name" type="xs:string" minOccurs="1" />
1161 <xs:element name="domain" type="tns:domain_type_type" minOccurs="1" />
1162 <xs:element ref="tns:buffer_usage_threshold_sub_type" minOccurs="1" />
1166 <!-- Maps to lttng_event_expr sub type -->
1167 <xs:element name="event_expr_sub_type" abstract="true" />
1168 <xs:element name="event_expr_payload_field" type="tns:event_expr_payload_field_type" substitutionGroup="tns:event_expr_sub_type" />
1169 <xs:element name="event_expr_channel_context_field" type="tns:event_expr_channel_context_field_type" substitutionGroup="tns:event_expr_sub_type" />
1170 <xs:element name="event_expr_app_specific_context_field" type="tns:event_expr_app_specific_context_field_type" substitutionGroup="tns:event_expr_sub_type" />
1171 <xs:element name="event_expr_array_field_element" type="tns:event_expr_array_field_element_type" substitutionGroup="tns:event_expr_sub_type" />
1173 <!-- Maps to lttng_event_expr payload_field -->
1174 <xs:complexType name="event_expr_payload_field_type">
1176 <xs:element name="name" type="xs:string" minOccurs="1" />
1179 <!-- Maps to lttng_event_expr context field -->
1180 <xs:complexType name="event_expr_channel_context_field_type">
1182 <xs:element name="name" type="xs:string" minOccurs="1" />
1186 <!-- Maps to lttng_event_expr app_specific context field -->
1187 <xs:complexType name="event_expr_app_specific_context_field_type">
1189 <xs:element name="provider_name" type="xs:string" minOccurs="1" />
1190 <xs:element name="type_name" type="xs:string" minOccurs="1" />
1193 <!-- Maps to lttng_event_expr array field -->
1194 <xs:complexType name="event_expr_array_field_element_type">
1196 <xs:element name="index" type="tns:uint64_type" minOccurs="1" />
1197 <xs:element name="event_expr" type="tns:event_expr_type" minOccurs="1" />
1201 <!-- Maps to a lttng_event_expr -->
1202 <xs:complexType name="event_expr_type">
1204 <xs:element ref="tns:event_expr_sub_type" minOccurs="1" />
1208 <!-- Maps to an array of lttng_event_expr aka capture descriptor -->
1209 <xs:complexType name="capture_descriptors_type">
1211 <xs:element name="event_expr" type="tns:event_expr_type" minOccurs="0" maxOccurs="unbounded"/>
1215 <!-- Maps to a lttng_condition event rule matches -->
1216 <xs:complexType name="condition_event_rule_matches_type">
1218 <xs:element name="capture_descriptors" type="tns:capture_descriptors_type" minOccurs="1" />
1219 <xs:element name="event_rule" type="tns:event_rule_type" minOccurs="1" />
1223 <!-- Maps to a lttng_condition session consumed size -->
1224 <xs:complexType name="condition_session_consumed_size_type">
1226 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1227 <xs:element name="threshold_bytes" type="tns:uint64_type" minOccurs="1" />
1231 <!-- Maps to a lttng_condition session consumed size -->
1232 <xs:complexType name="condition_session_rotation_type">
1234 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1238 <!-- Maps to a lttng_condition -->
1239 <xs:complexType name="condition_type">
1241 <xs:element ref="tns:condition_sub_type" minOccurs="1" />
1242 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
1246 <!-- Maps to lttng_error_query_result sub type -->
1247 <xs:element name="error_query_result_sub_type" abstract="true" />
1248 <xs:element name="error_query_result_counter" type="tns:error_query_result_counter_type" substitutionGroup="tns:error_query_result_sub_type" />
1250 <!-- Maps to lttng_error_query_results -->
1251 <xs:complexType name="error_query_result_counter_type">
1253 <xs:element name="value" type="tns:uint64_type" minOccurs="1" />
1257 <!-- Maps to lttng_error_query_result -->
1258 <xs:complexType name="error_query_result_type">
1260 <xs:element name="name" type="xs:string" minOccurs="1" />
1261 <xs:element name="description" type="xs:string" minOccurs="1" />
1262 <xs:element ref="tns:error_query_result_sub_type" minOccurs="1" />
1267 <!-- Maps to lttng_error_query_results -->
1268 <xs:complexType name="error_query_results_type">
1270 <xs:element name="error_query_result" type="tns:error_query_result_type" minOccurs="0" maxOccurs="unbounded" />
1274 <!-- Maps to a lttng_trigger -->
1275 <xs:complexType name="trigger_type">
1277 <xs:element name="action" type="tns:action_type" minOccurs="1" />
1278 <xs:element name="condition" type="tns:condition_type" minOccurs="1" />
1279 <xs:element name="name" type="xs:string" minOccurs="1" />
1280 <xs:element name="owner_uid" type="tns:uidbyint" minOccurs="1"/>
1281 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
1285 <!-- Maps to lttng_triggers -->
1286 <xs:complexType name="triggers_type">
1288 <xs:element name="trigger" type="tns:trigger_type" minOccurs="0" maxOccurs="unbounded" />
1292 <xs:complexType name="output_type">
1294 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
1295 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
1296 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
1297 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
1298 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
1299 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
1300 <xs:element name="load" type="tns:load_type" minOccurs="0" />
1301 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
1302 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
1303 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
1304 <xs:element name="rotation" type="tns:rotate_type" minOccurs="0" />
1305 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
1306 <xs:element name="save" type="tns:save_type" minOccurs="0" />
1307 <xs:element name="session" type="tns:session_type" minOccurs="0" />
1308 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
1309 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
1310 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
1311 <xs:element name="trigger" type="tns:trigger_type" minOccurs="0" />
1312 <xs:element name="triggers" type="tns:triggers_type" minOccurs="0" />
1313 <xs:element name="version" type="tns:version_type" minOccurs="0" />
1317 <!-- Maps to the mi_lttng commands -->
1318 <xs:simpleType name="command_string_type">
1319 <xs:restriction base="xs:string">
1320 <xs:enumeration value="add-context" />
1321 <xs:enumeration value="add-trigger" />
1322 <xs:enumeration value="calibrate" />
1323 <xs:enumeration value="clear" />
1324 <xs:enumeration value="create" />
1325 <xs:enumeration value="destroy" />
1326 <xs:enumeration value="disable-channel" />
1327 <xs:enumeration value="disable-event" />
1328 <xs:enumeration value="disable-rotation" />
1329 <xs:enumeration value="enable-channel" />
1330 <xs:enumeration value="enable-event" />
1331 <xs:enumeration value="enable-rotation" />
1332 <xs:enumeration value="list" />
1333 <xs:enumeration value="list-trigger" />
1334 <xs:enumeration value="load" />
1335 <xs:enumeration value="metadata" />
1336 <xs:enumeration value="regenerate" />
1337 <xs:enumeration value="remove-trigger" />
1338 <xs:enumeration value="rotate" />
1339 <xs:enumeration value="save" />
1340 <xs:enumeration value="set-session" />
1341 <xs:enumeration value="snapshot" />
1342 <xs:enumeration value="start" />
1343 <xs:enumeration value="stop" />
1344 <xs:enumeration value="track" />
1345 <xs:enumeration value="untrack" />
1346 <xs:enumeration value="version" />
1350 <xs:element name="command">
1353 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
1354 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
1355 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
1357 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>