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.1">
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" />
31 <!-- Maps to the uint64_t type -->
32 <xs:simpleType name="ratio_type">
33 <xs:restriction base="xs:double">
34 <xs:minInclusive value="0" />
35 <xs:maxInclusive value="1" />
40 Maps to the range allowed for blocking timeout: -1 (block
41 forever), 0 (do not block), positive integer value (blocking
42 time in usec) limited by its signed 32-bit representation when
45 <xs:simpleType name="blocking_timeout_type">
46 <xs:restriction base="xs:integer">
47 <xs:minInclusive value="-1" />
48 <xs:maxInclusive value="2147483648000" />
52 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
53 <xs:simpleType name="name_type">
54 <xs:restriction base="xs:string">
55 <xs:maxLength value="255" />
59 <!-- Maps to the lttng_event_type enum -->
60 <xs:simpleType name="event_type_type">
61 <xs:restriction base="xs:string">
62 <xs:enumeration value="ALL" />
63 <xs:enumeration value="TRACEPOINT" />
64 <xs:enumeration value="PROBE" />
65 <xs:enumeration value="FUNCTION" />
66 <xs:enumeration value="FUNCTION_ENTRY" />
67 <xs:enumeration value="NOOP" />
68 <xs:enumeration value="SYSCALL" />
69 <xs:enumeration value="USERSPACE_PROBE" />
73 <!-- Maps to the lttng_event_field_type enum -->
74 <xs:simpleType name="event_field_type_type">
75 <xs:restriction base="xs:string">
76 <xs:enumeration value="OTHER" />
77 <xs:enumeration value="INTEGER" />
78 <xs:enumeration value="ENUM" />
79 <xs:enumeration value="FLOAT" />
80 <xs:enumeration value="STRING" />
84 <!-- Maps to the lttng_loglevel_type enum -->
85 <xs:simpleType name="loglevel_type">
86 <xs:restriction base="xs:string">
87 <xs:enumeration value="ALL" />
88 <xs:enumeration value="RANGE" />
89 <xs:enumeration value="SINGLE" />
90 <xs:enumeration value="UNKNOWN" />
94 <!-- Maps to the lttng_event_context_type enum -->
95 <xs:simpleType name="context_type_type">
96 <xs:restriction base="xs:string">
97 <xs:enumeration value="PID" />
98 <xs:enumeration value="PROCNAME" />
99 <xs:enumeration value="PRIO" />
100 <xs:enumeration value="NICE" />
101 <xs:enumeration value="VPID" />
102 <xs:enumeration value="TID" />
103 <xs:enumeration value="VTID" />
104 <xs:enumeration value="PPID" />
105 <xs:enumeration value="VPPID" />
106 <xs:enumeration value="PTHREAD_ID" />
107 <xs:enumeration value="HOSTNAME" />
108 <xs:enumeration value="IP" />
109 <xs:enumeration value="INTERRUPTIBLE" />
110 <xs:enumeration value="PREEMPTIBLE" />
111 <xs:enumeration value="NEED_RESCHEDULE" />
112 <xs:enumeration value="MIGRATABLE" />
113 <xs:enumeration value="CALLSTACK_USER" />
114 <xs:enumeration value="CALLSTACK_KERNEL" />
115 <xs:enumeration value="CGROUP_NS" />
116 <xs:enumeration value="IPC_NS" />
117 <xs:enumeration value="MNT_NS" />
118 <xs:enumeration value="NET_NS" />
119 <xs:enumeration value="PID_NS" />
120 <xs:enumeration value="TIME_NS" />
121 <xs:enumeration value="USER_NS" />
122 <xs:enumeration value="UTS_NS" />
123 <xs:enumeration value="UID" />
124 <xs:enumeration value="EUID" />
125 <xs:enumeration value="SUID" />
126 <xs:enumeration value="GID" />
127 <xs:enumeration value="EGID" />
128 <xs:enumeration value="SGID" />
129 <xs:enumeration value="VUID" />
130 <xs:enumeration value="VEUID" />
131 <xs:enumeration value="VSUID" />
132 <xs:enumeration value="VGID" />
133 <xs:enumeration value="VEGID" />
134 <xs:enumeration value="VSGID" />
138 <!-- Maps to loglevel_string char * -->
139 <xs:simpleType name="loglevel_string_type">
140 <xs:restriction base="xs:string">
141 <xs:enumeration value="" />
142 <xs:enumeration value="TRACE_EMERG" />
143 <xs:enumeration value="TRACE_ALERT" />
144 <xs:enumeration value="TRACE_CRIT" />
145 <xs:enumeration value="TRACE_ERR" />
146 <xs:enumeration value="TRACE_WARNING" />
147 <xs:enumeration value="TRACE_NOTICE" />
148 <xs:enumeration value="TRACE_INFO" />
149 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
150 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
151 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
152 <xs:enumeration value="TRACE_DEBUG_MODULE" />
153 <xs:enumeration value="TRACE_DEBUG_UNIT" />
154 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
155 <xs:enumeration value="TRACE_DEBUG_LINE" />
156 <xs:enumeration value="TRACE_DEBUG" />
157 <xs:enumeration value="JUL_OFF" />
158 <xs:enumeration value="JUL_SEVERE" />
159 <xs:enumeration value="JUL_WARNING" />
160 <xs:enumeration value="JUL_INFO" />
161 <xs:enumeration value="JUL_CONFIG" />
162 <xs:enumeration value="JUL_FINE" />
163 <xs:enumeration value="JUL_FINER" />
164 <xs:enumeration value="JUL_FINEST" />
165 <xs:enumeration value="JUL_ALL" />
166 <xs:enumeration value="LOG4J_OFF" />
167 <xs:enumeration value="LOG4J_FATAL" />
168 <xs:enumeration value="LOG4J_ERROR" />
169 <xs:enumeration value="LOG4J_WARN" />
170 <xs:enumeration value="LOG4J_INFO" />
171 <xs:enumeration value="LOG4J_DEBUG" />
172 <xs:enumeration value="LOG4J_TRACE" />
173 <xs:enumeration value="LOG4J_ALL" />
174 <xs:enumeration value="PYTHON_CRITICAL" />
175 <xs:enumeration value="PYTHON_ERROR" />
176 <xs:enumeration value="PYTHON_WARNING" />
177 <xs:enumeration value="PYTHON_INFO" />
178 <xs:enumeration value="PYTHON_DEBUG" />
179 <xs:enumeration value="PYTHON_NOTSET" />
180 <xs:enumeration value="UNKNOWN" />
184 <!-- Maps to enum lttng_rotation_state -->
185 <xs:simpleType name="rotation_state_type">
186 <xs:restriction base="xs:string">
187 <xs:enumeration value="ONGOING" />
188 <xs:enumeration value="COMPLETED" />
189 <xs:enumeration value="EXPIRED" />
190 <xs:enumeration value="ERROR" />
194 <!-- Maps to enum lttng_trace_archive_location_relay_protocol_type -->
195 <xs:simpleType name="location_relay_protocol_type">
196 <xs:restriction base="xs:string">
197 <xs:enumeration value="TCP" />
201 <!-- Maps to the lttng_calibrate_type enum -->
202 <xs:simpleType name="calibrate_type_type">
203 <xs:restriction base="xs:string">
204 <xs:enumeration value="FUNCTION" />
208 <!-- Maps to the lttng_event_rule_kernel_syscall_emission_site enum -->
209 <xs:simpleType name="event_rule_kernel_syscall_emission_site">
210 <xs:restriction base="xs:string">
211 <xs:enumeration value="entry+exit" />
212 <xs:enumeration value="entry" />
213 <xs:enumeration value="exit" />
217 <!-- Maps to the lttng_userspace_probe_location_function_instrumentation_type enum -->
218 <xs:simpleType name="userspace_probe_location_function_instrumentation">
219 <xs:restriction base="xs:string">
220 <xs:enumeration value="ENTRY" />
224 <!-- Maps to the lttng_userspace_probe_location_lookup_method enum -->
225 <xs:simpleType name="userspace_probe_location_lookup_method">
226 <xs:restriction base="xs:string">
227 <xs:enumeration value="FUNCTION-DEFAULT" />
228 <xs:enumeration value="FUNCTION-ELF" />
229 <xs:enumeration value="TRACEPOINT-SDT" />
233 <!-- Maps to the lttng_event_probe_attr struct -->
234 <xs:complexType name="event_probe_attributes_type">
236 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
237 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
238 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
242 <!-- Maps to the lttng_event_function_attr struct -->
243 <xs:complexType name="event_ftrace_attributes_type">
245 <xs:element name="symbol_name" type="tns:name_type" />
249 <!-- Maps to per event type configuration -->
250 <xs:complexType name="event_attributes_type">
252 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
253 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
257 <!-- Maps to exclusion type -->
258 <xs:complexType name="event_exclusion_list_type">
260 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
264 <!-- Maps to lttng_event struct -->
265 <xs:complexType name="event_type">
267 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
268 <xs:element name="name" type="tns:name_type" minOccurs="0" />
269 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
270 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
271 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
272 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
273 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
274 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
275 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
276 <xs:element name="success" type="xs:boolean" minOccurs="0" />
280 <!-- Maps to mi_lttng_version struct -->
281 <xs:complexType name="version_type">
283 <xs:element name="name" type="tns:name_type" />
284 <xs:element name="string" type="tns:name_type" />
285 <xs:element name="major" type="tns:uint32_type" />
286 <xs:element name="url" type="xs:string" />
287 <xs:element name="minor" type="tns:uint32_type" />
288 <xs:element name="commit" type="xs:string" />
289 <xs:element name="license" type="xs:string" />
290 <xs:element name="patchLevel" type="tns:uint32_type" />
291 <xs:element name="description" type="xs:string" />
295 <!-- Maps to an array of event -->
296 <xs:complexType name="event_list_type">
298 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
302 <!-- Maps to the lttng_domain_type enum -->
303 <xs:simpleType name="domain_type_type">
304 <xs:restriction base="xs:string">
305 <xs:enumeration value="KERNEL"/>
306 <xs:enumeration value="UST"/>
307 <xs:enumeration value="JUL"/>
308 <xs:enumeration value="LOG4J"/>
309 <xs:enumeration value="PYTHON"/>
313 <!-- Maps to the lttng_buffer_type enum -->
314 <xs:simpleType name="domain_buffer_type">
315 <xs:restriction base="xs:string">
316 <xs:enumeration value="PER_PID"/>
317 <xs:enumeration value="PER_UID"/>
318 <xs:enumeration value="GLOBAL"/>
322 <!-- Maps to the type mode of a channel -->
323 <xs:simpleType name="channel_overwrite_mode_type">
324 <xs:restriction base="xs:string">
325 <xs:enumeration value="DISCARD" />
326 <xs:enumeration value="OVERWRITE" />
330 <!-- Maps to the lttng_event_output enum -->
331 <xs:simpleType name="event_output_type">
332 <xs:restriction base="xs:string">
333 <xs:enumeration value="SPLICE" />
334 <xs:enumeration value="MMAP" />
338 <!-- map to a pid -->
339 <xs:complexType name="pid_type">
341 <xs:element name="id" type="xs:int" />
342 <xs:element name="name" type="tns:name_type" />
343 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
347 <!-- maps to an array of pid -->
348 <xs:complexType name="pids_type">
350 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
354 <xs:simpleType name="pidbyint">
355 <xs:restriction base="xs:integer">
356 <xs:minInclusive value="0"/>
357 <xs:maxInclusive value="4294967295" />
361 <xs:complexType name="pid_value_type_choice">
363 <xs:element name="id" type="tns:pidbyint" />
364 <xs:element name="all" type="xs:boolean" />
368 <xs:complexType name="pid_value_type">
370 <xs:element name="type" type="tns:pid_value_type_choice" />
371 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
375 <!-- Maps to a list of pid_process_attr_values-->
376 <xs:complexType name="pid_process_attr_values_type">
378 <xs:element name="pid" type="tns:pid_value_type" minOccurs="0" maxOccurs="unbounded"/>
382 <!-- Maps to a pid_tracker-->
383 <xs:complexType name="pid_process_attr_tracker_type">
385 <xs:element name="process_attr_values" type="tns:pid_process_attr_values_type" minOccurs="0" />
389 <xs:simpleType name="vpidbyint">
390 <xs:restriction base="xs:integer">
391 <xs:minInclusive value="0"/>
392 <xs:maxInclusive value="4294967295" />
396 <xs:complexType name="vpid_value_type_choice">
398 <xs:element name="id" type="tns:vpidbyint" />
399 <xs:element name="all" type="xs:boolean" />
403 <xs:complexType name="vpid_value_type">
405 <xs:element name="type" type="tns:vpid_value_type_choice" minOccurs="0" maxOccurs="1" />
406 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
410 <!-- Maps to a list of vpid_process_attr_values-->
411 <xs:complexType name="vpid_process_attr_values_type">
413 <xs:element name="vpid" type="tns:vpid_value_type" minOccurs="0" maxOccurs="unbounded"/>
417 <!-- Maps to a vpid_tracker-->
418 <xs:complexType name="vpid_process_attr_tracker_type">
420 <xs:element name="process_attr_values" type="tns:vpid_process_attr_values_type" minOccurs="0" />
424 <xs:simpleType name="uidbyint">
425 <xs:restriction base="xs:integer">
426 <xs:minInclusive value="0"/>
427 <xs:maxInclusive value="4294967295" />
431 <xs:complexType name="uid_value_type_choice">
433 <xs:element name="id" type="tns:uidbyint" />
434 <xs:element name="name" type="xs:string" />
435 <xs:element name="all" type="xs:boolean" />
439 <xs:complexType name="uid_value_type">
441 <xs:element name="type" type="tns:uid_value_type_choice" minOccurs="0" maxOccurs="1" />
442 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
446 <!-- Maps to a list of uid_process_attr_values-->
447 <xs:complexType name="uid_process_attr_values_type">
449 <xs:element name="uid" type="tns:uid_value_type" minOccurs="0" maxOccurs="unbounded"/>
453 <!-- Maps to a uid_process_attr_tracker-->
454 <xs:complexType name="uid_process_attr_tracker_type">
456 <xs:element name="process_attr_values" type="tns:uid_process_attr_values_type" minOccurs="0" />
460 <xs:simpleType name="vuidbyint">
461 <xs:restriction base="xs:integer">
462 <xs:minInclusive value="0"/>
463 <xs:maxInclusive value="4294967295" />
467 <xs:complexType name="vuid_value_type_choice">
469 <xs:element name="id" type="tns:vuidbyint" />
470 <xs:element name="name" type="xs:string" />
471 <xs:element name="all" type="xs:boolean" />
475 <xs:complexType name="vuid_value_type">
477 <xs:element name="type" type="tns:vuid_value_type_choice" minOccurs="0" maxOccurs="1" />
478 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
482 <!-- Maps to a list of vuid_process_attr_values-->
483 <xs:complexType name="vuid_process_attr_values_type">
485 <xs:element name="vuid" type="tns:vuid_value_type" minOccurs="0" maxOccurs="unbounded"/>
489 <!-- Maps to a vuid_process_attr_tracker-->
490 <xs:complexType name="vuid_process_attr_tracker_type">
492 <xs:element name="process_attr_values" type="tns:vuid_process_attr_values_type" minOccurs="0" />
496 <xs:simpleType name="gidbyint">
497 <xs:restriction base="xs:integer">
498 <xs:minInclusive value="0"/>
499 <xs:maxInclusive value="4294967295" />
503 <xs:complexType name="gid_value_type_choice">
505 <xs:element name="id" type="tns:gidbyint" />
506 <xs:element name="name" type="xs:string" />
507 <xs:element name="all" type="xs:boolean" />
511 <xs:complexType name="gid_value_type">
513 <xs:element name="type" type="tns:gid_value_type_choice" minOccurs="0" maxOccurs="1" />
514 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
518 <!-- Maps to a list of gid_process_attr_values-->
519 <xs:complexType name="gid_process_attr_values_type">
521 <xs:element name="gid" type="tns:gid_value_type" minOccurs="0" maxOccurs="unbounded"/>
525 <!-- Maps to a gid_process_attr_tracker-->
526 <xs:complexType name="gid_process_attr_tracker_type">
528 <xs:element name="process_attr_values" type="tns:gid_process_attr_values_type" minOccurs="0" />
532 <xs:simpleType name="vgidbyint">
533 <xs:restriction base="xs:integer">
534 <xs:minInclusive value="0"/>
535 <xs:maxInclusive value="4294967295" />
539 <xs:complexType name="vgid_value_type_choice">
541 <xs:element name="id" type="tns:vgidbyint" />
542 <xs:element name="name" type="xs:string" />
543 <xs:element name="all" type="xs:boolean" />
547 <xs:complexType name="vgid_value_type">
549 <xs:element name="type" type="tns:vgid_value_type_choice" minOccurs="0" maxOccurs="1" />
550 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
554 <!-- Maps to a list of vgid_process_attr_values-->
555 <xs:complexType name="vgid_process_attr_values_type">
557 <xs:element name="vgid" type="tns:vgid_value_type" minOccurs="0" maxOccurs="unbounded"/>
561 <!-- Maps to a vgid_process_attr_tracker-->
562 <xs:complexType name="vgid_process_attr_tracker_type">
564 <xs:element name="process_attr_values" type="tns:vgid_process_attr_values_type" minOccurs="0" />
568 <!-- Maps to a list of process_attr_trackers-->
569 <xs:complexType name="process_attr_trackers_type">
571 <xs:choice minOccurs="0" maxOccurs="unbounded">
572 <xs:element name="pid_process_attr_tracker" type="tns:pid_process_attr_tracker_type" maxOccurs="1" />
573 <xs:element name="vpid_process_attr_tracker" type="tns:vpid_process_attr_tracker_type" maxOccurs="1" />
574 <xs:element name="uid_process_attr_tracker" type="tns:uid_process_attr_tracker_type" maxOccurs="1" />
575 <xs:element name="vuid_process_attr_tracker" type="tns:vuid_process_attr_tracker_type" maxOccurs="1" />
576 <xs:element name="gid_process_attr_tracker" type="tns:gid_process_attr_tracker_type" maxOccurs="1" />
577 <xs:element name="vgid_process_attr_tracker" type="tns:vgid_process_attr_tracker_type" maxOccurs="1" />
582 <!-- Maps to struct lttng_domain and contains channels -->
583 <xs:complexType name="domain_type">
585 <xs:element name="type" type="tns:domain_type_type" />
586 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
587 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
588 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
589 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
590 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
594 <!-- Maps to struct lttng_channel -->
595 <xs:complexType name="channel_type">
597 <xs:element name="name" type="tns:name_type" />
598 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
599 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
600 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
601 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
605 <!-- Maps to struct lttng_channel_attr -->
606 <xs:complexType name="channel_attributes_type">
608 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
609 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
610 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
611 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
612 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
613 <xs:element name="output_type" type="tns:event_output_type" />
614 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
615 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
616 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
617 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
618 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
619 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
620 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
624 <!-- Maps to struct lttng_snapshot_output -->
625 <xs:complexType name="snapshot_type">
627 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
628 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
629 <xs:element name="name" type="tns:name_type" minOccurs="0" />
630 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
631 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
632 <xs:element name="data_url" type="xs:string" minOccurs="0" />
636 <xs:complexType name="snapshots_type">
638 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
642 <xs:complexType name="periodic_rotation_schedule_type">
644 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
648 <xs:complexType name="size_threshold_rotation_schedule_type">
650 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
654 <xs:complexType name="rotation_schedule_type">
656 <xs:choice maxOccurs="unbounded">
657 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
658 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
663 <xs:complexType name="channels_type">
665 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
669 <!-- Maps to a lttng_session -->
670 <xs:complexType name="session_type">
672 <xs:element name="name" type="tns:name_type" />
673 <xs:element name="path" type="xs:string" minOccurs="0" />
674 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
675 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
676 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
677 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
678 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
679 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
680 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
684 <!-- Maps to a lttng_event_field -->
685 <xs:complexType name="event_field_type">
687 <xs:element name="name" type="tns:name_type" />
688 <xs:element name="type" type="tns:event_field_type_type" />
689 <xs:element name="nowrite" type="xs:int" />
693 <!-- Maps to the save command -->
694 <xs:complexType name="save_type">
696 <xs:element name="session" type="tns:session_type" />
697 <xs:element name="path" type="xs:string" />
701 <!-- Maps to the load command -->
702 <xs:complexType name="load_type">
704 <xs:element name="session" type="tns:session_type" />
705 <xs:element name="path" type="xs:string" />
706 <xs:element name="overrides" type="tns:overrides_type" />
710 <!-- Maps to the override parameters of the load command -->
711 <xs:complexType name="overrides_type">
713 <xs:element name="name" type="tns:name_type" minOccurs="0" />
714 <xs:element name="url" type="xs:string" minOccurs="0" />
718 <!-- Maps to struct lttng_calibrate -->
719 <xs:complexType name="calibrate_type">
721 <xs:element name="type" type="tns:calibrate_type_type" />
725 <!-- Maps to lttng_event_perf_counter_ctx -->
726 <xs:complexType name="perf_counter_context_type">
728 <xs:element name="type" type="tns:uint32_type" />
729 <xs:element name="config" type="tns:uint64_type" />
730 <xs:element name="name" type="tns:name_type" />
734 <!-- Maps to app_ctx -->
735 <xs:complexType name="app_context_type">
737 <xs:element name="provider_name" type="xs:string"/>
738 <xs:element name="ctx_name" type="xs:string"/>
742 <!-- Maps to lttng_event_context -->
743 <xs:complexType name="context_type">
746 <xs:element name="type" type="tns:context_type_type"/>
747 <xs:element name="perf" type="tns:perf_counter_context_type"/>
748 <xs:element name="app" type="tns:app_context_type"/>
750 <xs:element name="symbol" type="xs:string" minOccurs="0" />
754 <!-- Maps to an array of domain -->
755 <xs:complexType name="domains_type">
757 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
761 <!-- Maps to an array of session -->
762 <xs:complexType name="sessions_type">
764 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
768 <!-- Maps to an array of event_field -->
769 <xs:complexType name="event_fields_type">
771 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
775 <!-- Maps to an array of context -->
776 <xs:complexType name="contexts_type">
778 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
782 <!-- Maps to an action during snapshot command -->
783 <xs:complexType name="snapshot_cmd_type">
785 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
786 <xs:element name="output" type="tns:output_type" minOccurs="0" />
790 <!-- Type of snapshot commands -->
791 <xs:simpleType name="snapshot_action_type">
792 <xs:restriction base="xs:string">
793 <xs:enumeration value="list-output" />
794 <xs:enumeration value="del-output" />
795 <xs:enumeration value="add-output" />
796 <xs:enumeration value="record-output" />
800 <!-- Maps to an action during metadata command -->
801 <xs:complexType name="metadata_cmd_type">
803 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
807 <!-- Type of metadata commands -->
808 <xs:simpleType name="metadata_action_type">
809 <xs:restriction base="xs:string">
810 <xs:enumeration value="regenerate" />
814 <!-- Type of regenerate commands -->
815 <xs:simpleType name="regenerate_action_type">
816 <xs:restriction base="xs:string">
817 <xs:enumeration value="metadata" />
818 <xs:enumeration value="statedump" />
822 <!-- Type of regenerate command -->
823 <xs:complexType name="regenerate_cmd_type">
825 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
829 <xs:complexType name="local_location_type">
831 <xs:element name="absolute_path" type="xs:string" minOccurs="1" />
835 <xs:complexType name="relay_location_type">
837 <xs:element name="host" type="xs:string" minOccurs="1" />
838 <xs:element name="control_port" type="xs:int" minOccurs="0" />
839 <xs:element name="data_port" type="xs:int" minOccurs="0" />
840 <xs:element name="protocol" type="tns:location_relay_protocol_type" minOccurs="1" />
841 <xs:element name="relative_path" type="xs:string" minOccurs="0" />
845 <xs:complexType name="location_type">
847 <xs:element name="local" type="tns:local_location_type" minOccurs="0" />
848 <xs:element name="relay" type="tns:relay_location_type" minOccurs="0" />
852 <!-- Maps to the rotate command -->
853 <xs:complexType name="rotate_type">
855 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
856 <xs:element name="state" type="tns:rotation_state_type" minOccurs="1" />
857 <xs:element name="location" type="tns:location_type" minOccurs="0" />
861 <xs:complexType name="rotation_schedule_result_type">
863 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
864 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
868 <!-- Maps to the enable/disable-rotation commands -->
869 <xs:complexType name="rotation_schedule_cmd_type">
871 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
872 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
876 <!-- Maps to a lttng_rate_policy subtypes -->
877 <xs:element name="rate_policy_sub_type" abstract="true"/>
878 <xs:element name="rate_policy_every_n" type="tns:rate_policy_every_n_type" substitutionGroup="tns:rate_policy_sub_type" />
879 <xs:element name="rate_policy_once_after_n" type="tns:rate_policy_once_after_n_type" substitutionGroup="tns:rate_policy_sub_type" />
880 <xs:complexType name="rate_policy_every_n_type">
882 <xs:element name="interval" type="tns:uint64_type" minOccurs="1" />
885 <xs:complexType name="rate_policy_once_after_n_type">
887 <xs:element name="threshold" type="tns:uint64_type" minOccurs="1" />
891 <!-- Maps to a lttng_rate_policy -->
892 <xs:complexType name="rate_policy_type">
894 <xs:element ref="tns:rate_policy_sub_type" minOccurs="1" />
898 <!-- Maps to a lttng_action subtypes -->
899 <xs:element name="action_sub_type" abstract="true"/>
900 <xs:element name="action_list" type="tns:action_list_type" substitutionGroup="tns:action_sub_type" />
901 <xs:element name="action_notify" type="tns:action_notify_type" substitutionGroup="tns:action_sub_type" />
902 <xs:element name="action_rotate_session" type="tns:action_rotate_session_type" substitutionGroup="tns:action_sub_type" />
903 <xs:element name="action_snapshot_session" type="tns:action_snapshot_session_type" substitutionGroup="tns:action_sub_type" />
904 <xs:element name="action_start" type="tns:action_start_session_type" substitutionGroup="tns:action_sub_type" />
905 <xs:element name="action_stop" type="tns:action_stop_session_type" substitutionGroup="tns:action_sub_type" />
907 <!-- Maps to a lttng_action list -->
908 <xs:complexType name="action_list_type">
910 <xs:element name="action" type="tns:action_type" minOccurs="0" maxOccurs="unbounded" />
914 <!-- Maps to a lttng_action notify -->
915 <xs:complexType name="action_notify_type">
917 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
921 <!-- Maps to a lttng_action rotate session -->
922 <xs:complexType name="action_rotate_session_type">
924 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
925 <xs:element name="session_name" type="xs:string" minOccurs="1" />
929 <!-- Maps to struct lttng_snapshot_output tailored to action MI printing, aka without lttng-sessiond state. -->
930 <xs:complexType name="action_snapshot_output_type">
932 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
933 <xs:element name="name" type="tns:name_type" minOccurs="0" />
934 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
935 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
936 <xs:element name="data_url" type="xs:string" minOccurs="0" />
940 <!-- Maps to a lttng_action snapshot session -->
941 <xs:complexType name="action_snapshot_session_type">
943 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
944 <xs:element name="session_name" type="xs:string" minOccurs="1" />
945 <xs:element name="output" type="tns:action_snapshot_output_type" minOccurs="0" />
949 <!-- Maps to a lttng_action start session -->
950 <xs:complexType name="action_start_session_type">
952 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
953 <xs:element name="session_name" type="xs:string" minOccurs="1" />
957 <!-- Maps to a lttng_action stop session -->
958 <xs:complexType name="action_stop_session_type">
960 <xs:element name="rate_policy" type="tns:rate_policy_type" minOccurs="1" />
961 <xs:element name="session_name" type="xs:string" minOccurs="1" />
965 <!-- Maps to a lttng_action -->
966 <xs:complexType name="action_type">
968 <xs:element ref="tns:action_sub_type" minOccurs="1" />
969 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
973 <!-- Maps to lttng_kernel_probe_location sub types -->
974 <xs:element name="kernel_probe_location_sub_type" abstract="true"/>
975 <xs:element name="kernel_probe_location_address" type="tns:kernel_probe_location_address_type" substitutionGroup="tns:kernel_probe_location_sub_type" />
976 <xs:element name="kernel_probe_location_symbol_offset" type="tns:kernel_probe_location_symbol_offset_type" substitutionGroup="tns:kernel_probe_location_sub_type" />
978 <!-- Maps to a lttng_kernel_probe_location_address. -->
979 <xs:complexType name="kernel_probe_location_address_type">
981 <xs:element name="address" type="tns:uint64_type" minOccurs="1" />
985 <!-- Maps to a lttng_kernel_probe_location_symbol_offset_type. -->
986 <xs:complexType name="kernel_probe_location_symbol_offset_type">
988 <xs:element name="name" type="xs:string" minOccurs="1" />
989 <xs:element name="offset" type="tns:uint64_type" minOccurs="1" />
993 <!-- Maps to a lttng_kernel_probe_location. -->
994 <xs:complexType name="kernel_probe_location_type">
996 <xs:element ref="tns:kernel_probe_location_sub_type" minOccurs="1" />
1000 <!-- Maps to lttng_user_probe_location sub types -->
1001 <xs:element name="userspace_probe_location_sub_type" abstract="true"/>
1002 <xs:element name="userspace_probe_location_function" type="tns:userspace_probe_location_function_type" substitutionGroup="tns:userspace_probe_location_sub_type" />
1003 <xs:element name="userspace_probe_location_tracepoint" type="tns:userspace_probe_location_tracepoint_type" substitutionGroup="tns:userspace_probe_location_sub_type" />
1005 <!-- Maps to lttng_userspace_probe_location_lookup_method sub type -->
1006 <xs:element name="userspace_probe_location_lookup_method_sub_type" abstract="true"/>
1007 <xs:element name="userspace_probe_location_lookup_method_function_default" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1008 <xs:element name="userspace_probe_location_lookup_method_function_elf" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1009 <xs:element name="userspace_probe_location_lookup_method_tracepoint_sdt" substitutionGroup="tns:userspace_probe_location_lookup_method_sub_type"> <xs:complexType/> </xs:element>
1011 <!-- Maps to a lttng_userspace_probe_location_lookup_method. -->
1012 <xs:complexType name="userspace_probe_location_lookup_method_type">
1014 <xs:element ref="tns:userspace_probe_location_lookup_method_sub_type" minOccurs="1" />
1018 <!-- Maps to a lttng_userspace_probe_location_function. -->
1019 <xs:complexType name="userspace_probe_location_function_type">
1021 <xs:element name="name" type="xs:string" minOccurs="1" />
1022 <xs:element name="binary_path" type="xs:string" minOccurs="1" />
1023 <xs:element name="instrumentation_type" type="tns:userspace_probe_location_function_instrumentation" minOccurs="1" />
1024 <xs:element name="userspace_probe_location_lookup_method" type="tns:userspace_probe_location_lookup_method_type" minOccurs="1" />
1028 <!-- Maps to a lttng_userspace_probe_location_tracepoint. -->
1029 <xs:complexType name="userspace_probe_location_tracepoint_type">
1031 <xs:element name="probe_name" type="xs:string" minOccurs="1" />
1032 <xs:element name="provider_name" type="xs:string" minOccurs="1" />
1033 <xs:element name="binary_path" type="xs:string" minOccurs="1" />
1034 <xs:element name="userspace_probe_location_lookup_method" type="tns:userspace_probe_location_lookup_method_type" minOccurs="1" />
1038 <!-- Maps to a lttng_userspace_probe_location. -->
1039 <xs:complexType name="userspace_probe_location_type">
1041 <xs:element ref="tns:userspace_probe_location_sub_type" minOccurs="1" />
1045 <!-- Maps to a lttng_log_level_rule subtypes -->
1046 <xs:element name="log_level_rule_sub_type" abstract="true"/>
1047 <xs:element name="log_level_rule_exactly" type="tns:log_level_rule_generic_type" substitutionGroup="tns:log_level_rule_sub_type" />
1048 <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" />
1050 <!-- Maps to a lttng_log_level_rule_*. -->
1051 <xs:complexType name="log_level_rule_generic_type">
1053 <xs:element name="level" type="xs:integer" minOccurs="1" />
1057 <!-- Maps to a lttng_log_level_rule. -->
1058 <xs:complexType name="log_level_rule_type">
1060 <xs:element ref="tns:log_level_rule_sub_type" minOccurs="1" />
1064 <!-- Maps to a lttng_event_rule subtypes -->
1065 <xs:element name="event_rule_sub_type" abstract="true"/>
1066 <xs:element name="event_rule_jul_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1067 <xs:element name="event_rule_kernel_kprobe" type="tns:event_rule_kernel_kprobe_type" substitutionGroup="tns:event_rule_sub_type" />
1068 <xs:element name="event_rule_kernel_syscall" type="tns:event_rule_kernel_syscall_type" substitutionGroup="tns:event_rule_sub_type" />
1069 <xs:element name="event_rule_kernel_tracepoint" type="tns:event_rule_kernel_tracepoint_type" substitutionGroup="tns:event_rule_sub_type" />
1070 <xs:element name="event_rule_kernel_uprobe" type="tns:event_rule_kernel_uprobe_type" substitutionGroup="tns:event_rule_sub_type" />
1071 <xs:element name="event_rule_log4j_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1072 <xs:element name="event_rule_python_logging" type="tns:event_rule_logging_type" substitutionGroup="tns:event_rule_sub_type" />
1073 <xs:element name="event_rule_user_tracepoint" type="tns:event_rule_user_tracepoint_type" substitutionGroup="tns:event_rule_sub_type" />
1075 <!-- Maps to a lttng_event_rule_kernel_kprobe. -->
1076 <xs:complexType name="event_rule_kernel_kprobe_type">
1078 <xs:element name="event_name" type="xs:string" minOccurs="1" />
1079 <xs:element name="kernel_probe_location" type="tns:kernel_probe_location_type" minOccurs="1" />
1083 <!-- Maps to a lttng_event_rule_kernel_syscall. -->
1084 <xs:complexType name="event_rule_kernel_syscall_type">
1086 <xs:element name="emission_site" type="tns:event_rule_kernel_syscall_emission_site" minOccurs="1" />
1087 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1088 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1092 <!-- Maps to a lttng_event_rule_kernel_tracepoint. -->
1093 <xs:complexType name="event_rule_kernel_tracepoint_type">
1095 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1096 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1100 <!-- Maps to a lttng_event_rule_kernel_uprobe. -->
1101 <xs:complexType name="event_rule_kernel_uprobe_type">
1103 <xs:element name="event_name" type="xs:string" minOccurs="1" />
1104 <xs:element name="userspace_probe_location" type="tns:userspace_probe_location_type" minOccurs="1" />
1109 <!-- Maps to a lttng_event_rule_*_logging. -->
1110 <xs:complexType name="event_rule_logging_type">
1112 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1113 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1114 <xs:element name="log_level_rule" type="tns:log_level_rule_type" minOccurs="0" />
1118 <!-- Maps to exclusion type -->
1119 <xs:complexType name="name_pattern_exclusions_type">
1121 <xs:element name="name_pattern_exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
1126 <!-- Maps to a lttng_event_rule_user_tracepoint. -->
1127 <xs:complexType name="event_rule_user_tracepoint_type">
1129 <xs:element name="name_pattern" type="xs:string" minOccurs="1" />
1130 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
1131 <xs:element name="log_level_rule" type="tns:log_level_rule_type" minOccurs="0" />
1132 <xs:element name="name_pattern_exclusions" type="tns:name_pattern_exclusions_type" minOccurs="0" />
1136 <!-- Maps to a lttng_event_rule. -->
1137 <xs:complexType name="event_rule_type">
1139 <xs:element ref="tns:event_rule_sub_type" minOccurs="1" />
1143 <!-- Maps to a lttng_condition subtypes -->
1144 <xs:element name="condition_sub_type" abstract="true" />
1145 <xs:element name="condition_buffer_usage_high" type="tns:condition_buffer_usage_type" substitutionGroup="tns:condition_sub_type" />
1146 <xs:element name="condition_buffer_usage_low" type="tns:condition_buffer_usage_type" substitutionGroup="tns:condition_sub_type" />
1147 <xs:element name="condition_event_rule_matches" type="tns:condition_event_rule_matches_type" substitutionGroup="tns:condition_sub_type" />
1148 <xs:element name="condition_session_consumed_size" type="tns:condition_session_consumed_size_type" substitutionGroup="tns:condition_sub_type" />
1149 <xs:element name="condition_session_rotation_completed" type="tns:condition_session_rotation_type" substitutionGroup="tns:condition_sub_type" />
1150 <xs:element name="condition_session_rotation_ongoing" type="tns:condition_session_rotation_type" substitutionGroup="tns:condition_sub_type" />
1152 <!-- Allow expression of the threshold in ratio or in bytes -->
1153 <xs:element name="buffer_usage_threshold_sub_type" abstract="true" />
1154 <xs:element name="threshold_bytes" type="tns:uint64_type" substitutionGroup="tns:buffer_usage_threshold_sub_type" />
1155 <xs:element name="threshold_ratio" type="tns:ratio_type" substitutionGroup="tns:buffer_usage_threshold_sub_type" />
1157 <!-- Maps to a lttng_condition buffer usage for both low and high -->
1158 <xs:complexType name="condition_buffer_usage_type">
1160 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1161 <xs:element name="channel_name" type="xs:string" minOccurs="1" />
1162 <xs:element name="domain" type="tns:domain_type_type" minOccurs="1" />
1163 <xs:element ref="tns:buffer_usage_threshold_sub_type" minOccurs="1" />
1167 <!-- Maps to lttng_event_expr sub type -->
1168 <xs:element name="event_expr_sub_type" abstract="true" />
1169 <xs:element name="event_expr_payload_field" type="tns:event_expr_payload_field_type" substitutionGroup="tns:event_expr_sub_type" />
1170 <xs:element name="event_expr_channel_context_field" type="tns:event_expr_channel_context_field_type" substitutionGroup="tns:event_expr_sub_type" />
1171 <xs:element name="event_expr_app_specific_context_field" type="tns:event_expr_app_specific_context_field_type" substitutionGroup="tns:event_expr_sub_type" />
1172 <xs:element name="event_expr_array_field_element" type="tns:event_expr_array_field_element_type" substitutionGroup="tns:event_expr_sub_type" />
1174 <!-- Maps to lttng_event_expr payload_field -->
1175 <xs:complexType name="event_expr_payload_field_type">
1177 <xs:element name="name" type="xs:string" minOccurs="1" />
1180 <!-- Maps to lttng_event_expr context field -->
1181 <xs:complexType name="event_expr_channel_context_field_type">
1183 <xs:element name="name" type="xs:string" minOccurs="1" />
1187 <!-- Maps to lttng_event_expr app_specific context field -->
1188 <xs:complexType name="event_expr_app_specific_context_field_type">
1190 <xs:element name="provider_name" type="xs:string" minOccurs="1" />
1191 <xs:element name="type_name" type="xs:string" minOccurs="1" />
1194 <!-- Maps to lttng_event_expr array field -->
1195 <xs:complexType name="event_expr_array_field_element_type">
1197 <xs:element name="index" type="tns:uint64_type" minOccurs="1" />
1198 <xs:element name="event_expr" type="tns:event_expr_type" minOccurs="1" />
1202 <!-- Maps to a lttng_event_expr -->
1203 <xs:complexType name="event_expr_type">
1205 <xs:element ref="tns:event_expr_sub_type" minOccurs="1" />
1209 <!-- Maps to an array of lttng_event_expr aka capture descriptor -->
1210 <xs:complexType name="capture_descriptors_type">
1212 <xs:element name="event_expr" type="tns:event_expr_type" minOccurs="0" maxOccurs="unbounded"/>
1216 <!-- Maps to a lttng_condition event rule matches -->
1217 <xs:complexType name="condition_event_rule_matches_type">
1219 <xs:element name="capture_descriptors" type="tns:capture_descriptors_type" minOccurs="1" />
1220 <xs:element name="event_rule" type="tns:event_rule_type" minOccurs="1" />
1224 <!-- Maps to a lttng_condition session consumed size -->
1225 <xs:complexType name="condition_session_consumed_size_type">
1227 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1228 <xs:element name="threshold_bytes" type="tns:uint64_type" minOccurs="1" />
1232 <!-- Maps to a lttng_condition session consumed size -->
1233 <xs:complexType name="condition_session_rotation_type">
1235 <xs:element name="session_name" type="xs:string" minOccurs="1" />
1239 <!-- Maps to a lttng_condition -->
1240 <xs:complexType name="condition_type">
1242 <xs:element ref="tns:condition_sub_type" minOccurs="1" />
1243 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
1247 <!-- Maps to lttng_error_query_result sub type -->
1248 <xs:element name="error_query_result_sub_type" abstract="true" />
1249 <xs:element name="error_query_result_counter" type="tns:error_query_result_counter_type" substitutionGroup="tns:error_query_result_sub_type" />
1251 <!-- Maps to lttng_error_query_results -->
1252 <xs:complexType name="error_query_result_counter_type">
1254 <xs:element name="value" type="tns:uint64_type" minOccurs="1" />
1258 <!-- Maps to lttng_error_query_result -->
1259 <xs:complexType name="error_query_result_type">
1261 <xs:element name="name" type="xs:string" minOccurs="1" />
1262 <xs:element name="description" type="xs:string" minOccurs="1" />
1263 <xs:element ref="tns:error_query_result_sub_type" minOccurs="1" />
1268 <!-- Maps to lttng_error_query_results -->
1269 <xs:complexType name="error_query_results_type">
1271 <xs:element name="error_query_result" type="tns:error_query_result_type" minOccurs="0" maxOccurs="unbounded" />
1275 <!-- Maps to a lttng_trigger -->
1276 <xs:complexType name="trigger_type">
1278 <xs:element name="action" type="tns:action_type" minOccurs="1" />
1279 <xs:element name="condition" type="tns:condition_type" minOccurs="1" />
1280 <xs:element name="name" type="xs:string" minOccurs="1" />
1281 <xs:element name="owner_uid" type="tns:uidbyint" minOccurs="1"/>
1282 <xs:element name="error_query_results" type="tns:error_query_results_type" minOccurs="0"/>
1286 <!-- Maps to lttng_triggers -->
1287 <xs:complexType name="triggers_type">
1289 <xs:element name="trigger" type="tns:trigger_type" minOccurs="0" maxOccurs="unbounded" />
1293 <xs:complexType name="output_type">
1295 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
1296 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
1297 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
1298 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
1299 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
1300 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
1301 <xs:element name="load" type="tns:load_type" minOccurs="0" />
1302 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
1303 <xs:element name="process_attr_trackers" type="tns:process_attr_trackers_type" minOccurs="0" />
1304 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
1305 <xs:element name="rotation" type="tns:rotate_type" minOccurs="0" />
1306 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
1307 <xs:element name="save" type="tns:save_type" minOccurs="0" />
1308 <xs:element name="session" type="tns:session_type" minOccurs="0" />
1309 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
1310 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
1311 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
1312 <xs:element name="trigger" type="tns:trigger_type" minOccurs="0" />
1313 <xs:element name="triggers" type="tns:triggers_type" minOccurs="0" />
1314 <xs:element name="version" type="tns:version_type" minOccurs="0" />
1318 <!-- Maps to the mi_lttng commands -->
1319 <xs:simpleType name="command_string_type">
1320 <xs:restriction base="xs:string">
1321 <xs:enumeration value="add-context" />
1322 <xs:enumeration value="add-trigger" />
1323 <xs:enumeration value="calibrate" />
1324 <xs:enumeration value="clear" />
1325 <xs:enumeration value="create" />
1326 <xs:enumeration value="destroy" />
1327 <xs:enumeration value="disable-channel" />
1328 <xs:enumeration value="disable-event" />
1329 <xs:enumeration value="disable-rotation" />
1330 <xs:enumeration value="enable-channel" />
1331 <xs:enumeration value="enable-event" />
1332 <xs:enumeration value="enable-rotation" />
1333 <xs:enumeration value="list" />
1334 <xs:enumeration value="list-trigger" />
1335 <xs:enumeration value="load" />
1336 <xs:enumeration value="metadata" />
1337 <xs:enumeration value="regenerate" />
1338 <xs:enumeration value="remove-trigger" />
1339 <xs:enumeration value="rotate" />
1340 <xs:enumeration value="save" />
1341 <xs:enumeration value="set-session" />
1342 <xs:enumeration value="snapshot" />
1343 <xs:enumeration value="start" />
1344 <xs:enumeration value="stop" />
1345 <xs:enumeration value="track" />
1346 <xs:enumeration value="untrack" />
1347 <xs:enumeration value="version" />
1351 <xs:element name="command">
1354 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
1355 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
1356 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
1358 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>