Consumer rotate stream
[lttng-tools.git] / src / common / mi-lttng-3.0.xsd
CommitLineData
c5e38b74
JR
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3Copyright (c) 2014 - Oliver Cotte <olivier.cotte@polymtl.ca>
4 - Jonathan Rajotte <jonathan.r.julien@gmail.com>
654f9f5e 5Copyright (c) 2016 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
c5e38b74
JR
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal
9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in
15all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23THE SOFTWARE.
24-->
25<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
00440276
JG
26 targetNamespace="http://lttng.org/xml/ns/lttng-mi"
27 xmlns:tns="http://lttng.org/xml/ns/lttng-mi"
654f9f5e 28 elementFormDefault="qualified" version="3.0">
c5e38b74
JR
29
30 <!-- Maps to the uint32_t type -->
31 <xs:simpleType name="uint32_type">
32 <xs:restriction base="xs:integer">
33 <xs:minInclusive value="0" />
34 <xs:maxInclusive value="4294967295" />
35 </xs:restriction>
36 </xs:simpleType>
37
38 <!-- Maps to the uint64_t type -->
39 <xs:simpleType name="uint64_type">
40 <xs:restriction base="xs:integer">
41 <xs:minInclusive value="0" />
42 <xs:maxInclusive value="18446744073709551615" />
43 </xs:restriction>
44 </xs:simpleType>
45
491d1539
MD
46 <!--
47 Maps to the range allowed for blocking timeout: -1 (block
48 forever), 0 (do not block), positive integer value (blocking
49 time in usec) limited by its signed 32-bit representation when
50 converted to msec.
51 -->
52 <xs:simpleType name="blocking_timeout_type">
53 <xs:restriction base="xs:integer">
54 <xs:minInclusive value="-1" />
55 <xs:maxInclusive value="2147483648000" />
56 </xs:restriction>
57 </xs:simpleType>
58
c5e38b74
JR
59 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
60 <xs:simpleType name="name_type">
61 <xs:restriction base="xs:string">
62 <xs:maxLength value="255" />
63 </xs:restriction>
64 </xs:simpleType>
65
66 <!-- Maps to the lttng_event_type enum -->
67 <xs:simpleType name="event_type_type">
68 <xs:restriction base="xs:string">
69 <xs:enumeration value="ALL" />
70 <xs:enumeration value="TRACEPOINT" />
71 <xs:enumeration value="PROBE" />
72 <xs:enumeration value="FUNCTION" />
73 <xs:enumeration value="FUNCTION_ENTRY" />
74 <xs:enumeration value="NOOP" />
75 <xs:enumeration value="SYSCALL" />
c5e38b74
JR
76 </xs:restriction>
77 </xs:simpleType>
78
79 <!-- Maps to the lttng_event_field_type enum -->
80 <xs:simpleType name="event_field_type_type">
81 <xs:restriction base="xs:string">
82 <xs:enumeration value="OTHER" />
83 <xs:enumeration value="INTEGER" />
84 <xs:enumeration value="ENUM" />
85 <xs:enumeration value="FLOAT" />
86 <xs:enumeration value="STRING" />
87 </xs:restriction>
88 </xs:simpleType>
89
90 <!-- Maps to the lttng_loglevel_type enum -->
91 <xs:simpleType name="loglevel_type">
92 <xs:restriction base="xs:string">
93 <xs:enumeration value="ALL" />
94 <xs:enumeration value="RANGE" />
95 <xs:enumeration value="SINGLE" />
96 <xs:enumeration value="UNKNOWN" />
97 </xs:restriction>
98 </xs:simpleType>
99
c9ffe7f5 100 <!-- Maps to the lttng_event_context_type enum -->
89b72577
JRJ
101 <xs:simpleType name="context_type_type">
102 <xs:restriction base="xs:string">
89b72577
JRJ
103 <xs:enumeration value="PID" />
104 <xs:enumeration value="PROCNAME" />
105 <xs:enumeration value="PRIO" />
106 <xs:enumeration value="NICE" />
107 <xs:enumeration value="VPID" />
108 <xs:enumeration value="TID" />
109 <xs:enumeration value="VTID" />
110 <xs:enumeration value="PPID" />
111 <xs:enumeration value="VPPID" />
112 <xs:enumeration value="PTHREAD_ID" />
113 <xs:enumeration value="HOSTNAME" />
114 <xs:enumeration value="IP" />
a72332c3
JR
115 <xs:enumeration value="INTERRUPTIBLE" />
116 <xs:enumeration value="PREEMPTIBLE" />
117 <xs:enumeration value="NEED_RESCHEDULE" />
118 <xs:enumeration value="MIGRATABLE" />
89b72577
JRJ
119 </xs:restriction>
120 </xs:simpleType>
121
c5e38b74
JR
122 <!-- Maps to loglevel_string char * -->
123 <xs:simpleType name="loglevel_string_type">
124 <xs:restriction base="xs:string">
125 <xs:enumeration value="" />
126 <xs:enumeration value="TRACE_EMERG" />
127 <xs:enumeration value="TRACE_ALERT" />
128 <xs:enumeration value="TRACE_CRIT" />
129 <xs:enumeration value="TRACE_ERR" />
130 <xs:enumeration value="TRACE_WARNING" />
131 <xs:enumeration value="TRACE_NOTICE" />
132 <xs:enumeration value="TRACE_INFO" />
133 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
134 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
135 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
136 <xs:enumeration value="TRACE_DEBUG_MODULE" />
137 <xs:enumeration value="TRACE_DEBUG_UNIT" />
138 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
139 <xs:enumeration value="TRACE_DEBUG_LINE" />
140 <xs:enumeration value="TRACE_DEBUG" />
136f2f81
JRJ
141 <xs:enumeration value="JUL_OFF" />
142 <xs:enumeration value="JUL_SEVERE" />
143 <xs:enumeration value="JUL_WARNING" />
144 <xs:enumeration value="JUL_INFO" />
145 <xs:enumeration value="JUL_CONFIG" />
146 <xs:enumeration value="JUL_FINE" />
147 <xs:enumeration value="JUL_FINER" />
148 <xs:enumeration value="JUL_FINEST" />
149 <xs:enumeration value="JUL_ALL" />
e4d12c27
DG
150 <xs:enumeration value="LOG4J_OFF" />
151 <xs:enumeration value="LOG4J_FATAL" />
152 <xs:enumeration value="LOG4J_ERROR" />
153 <xs:enumeration value="LOG4J_WARN" />
154 <xs:enumeration value="LOG4J_INFO" />
155 <xs:enumeration value="LOG4J_DEBUG" />
156 <xs:enumeration value="LOG4J_TRACE" />
157 <xs:enumeration value="LOG4J_ALL" />
0e115563
DG
158 <xs:enumeration value="PYTHON_CRITICAL" />
159 <xs:enumeration value="PYTHON_ERROR" />
160 <xs:enumeration value="PYTHON_WARNING" />
161 <xs:enumeration value="PYTHON_INFO" />
162 <xs:enumeration value="PYTHON_DEBUG" />
163 <xs:enumeration value="PYTHON_NOTSET" />
c5e38b74
JR
164 <xs:enumeration value="UNKNOWN" />
165 </xs:restriction>
166 </xs:simpleType>
167
7e66b1b0
JRJ
168 <!-- Maps to the lttng_calibrate_type enum -->
169 <xs:simpleType name="calibrate_type_type">
170 <xs:restriction base="xs:string">
171 <xs:enumeration value="FUNCTION" />
172 </xs:restriction>
173 </xs:simpleType>
174
c5e38b74
JR
175 <!-- Maps to the lttng_event_probe_attr struct -->
176 <xs:complexType name="event_probe_attributes_type">
177 <xs:all>
00440276
JG
178 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
179 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
180 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
c5e38b74
JR
181 </xs:all>
182 </xs:complexType>
183
184 <!-- Maps to the lttng_event_function_attr struct -->
185 <xs:complexType name="event_ftrace_attributes_type">
186 <xs:all>
00440276 187 <xs:element name="symbol_name" type="tns:name_type" />
c5e38b74
JR
188 </xs:all>
189 </xs:complexType>
190
191 <!-- Maps to per event type configuration -->
192 <xs:complexType name="event_attributes_type">
193 <xs:choice>
00440276
JG
194 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
195 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
c5e38b74
JR
196 </xs:choice>
197 </xs:complexType>
198
f4a088f7 199 <!-- Maps to exclusion type -->
89476427
JRJ
200 <xs:complexType name="event_exclusion_list_type">
201 <xs:sequence>
202 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
203 </xs:sequence>
204 </xs:complexType>
205
c5e38b74
JR
206 <!-- Maps to lttng_event struct -->
207 <xs:complexType name="event_type">
208 <xs:all>
00440276
JG
209 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
210 <xs:element name="name" type="tns:name_type" minOccurs="0" />
211 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
212 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
c5e38b74 213 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
7b4aa11d 214 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
00440276
JG
215 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
216 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
217 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
89476427 218 <xs:element name="success" type="xs:boolean" minOccurs="0" />
c5e38b74
JR
219 </xs:all>
220 </xs:complexType>
221
222 <!-- Maps to mi_lttng_version struct -->
223 <xs:complexType name="version_type">
224 <xs:all>
00440276
JG
225 <xs:element name="name" type="tns:name_type" />
226 <xs:element name="string" type="tns:name_type" />
227 <xs:element name="major" type="tns:uint32_type" />
c5e38b74 228 <xs:element name="url" type="xs:string" />
00440276 229 <xs:element name="minor" type="tns:uint32_type" />
314d5222 230 <xs:element name="commit" type="xs:string" />
c5e38b74 231 <xs:element name="license" type="xs:string" />
00440276 232 <xs:element name="patchLevel" type="tns:uint32_type" />
c5e38b74
JR
233 <xs:element name="description" type="xs:string" />
234 </xs:all>
235 </xs:complexType>
236
f4a088f7 237 <!-- Maps to an array of event -->
c5e38b74
JR
238 <xs:complexType name="event_list_type">
239 <xs:sequence>
00440276 240 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
241 </xs:sequence>
242 </xs:complexType>
243
244 <!-- Maps to the lttng_domain_type enum -->
245 <xs:simpleType name="domain_type_type">
246 <xs:restriction base="xs:string">
247 <xs:enumeration value="KERNEL"/>
248 <xs:enumeration value="UST"/>
249 <xs:enumeration value="JUL"/>
e4d12c27 250 <xs:enumeration value="LOG4J"/>
0e115563 251 <xs:enumeration value="PYTHON"/>
c5e38b74
JR
252 </xs:restriction>
253 </xs:simpleType>
254
255 <!-- Maps to the lttng_buffer_type enum -->
256 <xs:simpleType name="domain_buffer_type">
257 <xs:restriction base="xs:string">
258 <xs:enumeration value="PER_PID"/>
259 <xs:enumeration value="PER_UID"/>
260 <xs:enumeration value="GLOBAL"/>
261 </xs:restriction>
262 </xs:simpleType>
263
f4a088f7 264 <!-- Maps to the type mode of a channel -->
c5e38b74
JR
265 <xs:simpleType name="channel_overwrite_mode_type">
266 <xs:restriction base="xs:string">
267 <xs:enumeration value="DISCARD" />
268 <xs:enumeration value="OVERWRITE" />
269 </xs:restriction>
270 </xs:simpleType>
271
272 <!-- Maps to the lttng_event_output enum -->
273 <xs:simpleType name="event_output_type">
274 <xs:restriction base="xs:string">
275 <xs:enumeration value="SPLICE" />
276 <xs:enumeration value="MMAP" />
277 </xs:restriction>
278 </xs:simpleType>
279
bf239d4c
JR
280 <!-- map to a pid -->
281 <xs:complexType name="pid_type">
c5e38b74 282 <xs:all>
bf239d4c 283 <xs:element name="id" type="xs:int" />
00440276
JG
284 <xs:element name="name" type="tns:name_type" />
285 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
c5e38b74
JR
286 </xs:all>
287 </xs:complexType>
288
bf239d4c 289 <!-- maps to an array of pid -->
c5e38b74
JR
290 <xs:complexType name="pids_type">
291 <xs:sequence>
00440276 292 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
c12fcec9
JG
293 </xs:sequence>
294 </xs:complexType>
295
296 <xs:simpleType name="pidbyint">
297 <xs:restriction base="xs:integer">
298 <xs:minInclusive value="0"/>
299 <xs:maxInclusive value="4294967295" />
300 </xs:restriction>
301 </xs:simpleType>
302
303 <xs:simpleType name="pidwildcard">
304 <xs:restriction base="xs:string">
305 <xs:enumeration value="*"/>
306 </xs:restriction>
307 </xs:simpleType>
308
309 <xs:complexType name="pid_target_type">
310 <xs:all>
311 <xs:element name="pid">
312 <xs:simpleType>
00440276 313 <xs:union memberTypes="tns:pidbyint tns:pidwildcard" />
c12fcec9
JG
314 </xs:simpleType>
315 </xs:element>
316 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
317 </xs:all>
318 </xs:complexType>
319
320 <!-- Maps to a list of pid_targets-->
321 <xs:complexType name="targets_type">
322 <xs:sequence>
323 <xs:choice>
00440276 324 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
c12fcec9
JG
325 </xs:choice>
326 </xs:sequence>
327 </xs:complexType>
328
329 <!-- Maps to a pid_tracker-->
330 <xs:complexType name="pid_tracker_type">
331 <xs:all>
00440276 332 <xs:element name="targets" type="tns:targets_type" />
c12fcec9
JG
333 </xs:all>
334 </xs:complexType>
335
336 <!-- Maps to a list of trackers-->
337 <xs:complexType name="trackers_type">
338 <xs:sequence minOccurs="0" maxOccurs="unbounded">
00440276 339 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
c5e38b74
JR
340 </xs:sequence>
341 </xs:complexType>
342
343 <!-- Maps to struct lttng_domain and contains channels -->
344 <xs:complexType name="domain_type">
345 <xs:all>
00440276
JG
346 <xs:element name="type" type="tns:domain_type_type" />
347 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
348 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
349 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
350 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
351 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
c5e38b74
JR
352 </xs:all>
353 </xs:complexType>
354
355 <!-- Maps to struct lttng_channel -->
356 <xs:complexType name="channel_type">
357 <xs:all>
00440276 358 <xs:element name="name" type="tns:name_type" />
f4a088f7 359 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
00440276
JG
360 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
361 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
9618049b 362 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
c5e38b74
JR
363 </xs:all>
364 </xs:complexType>
365
366 <!-- Maps to struct lttng_channel_attr -->
367 <xs:complexType name="channel_attributes_type">
368 <xs:all>
00440276
JG
369 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
370 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
371 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
372 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
373 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
374 <xs:element name="output_type" type="tns:event_output_type" />
375 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
376 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
377 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
fb83fe64
JD
378 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
379 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
cf0bcb51 380 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
491d1539 381 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
c5e38b74
JR
382 </xs:all>
383 </xs:complexType>
384
50534d6f
JRJ
385 <!-- Maps to struct lttng_snapshot_output -->
386 <xs:complexType name="snapshot_type">
387 <xs:all>
00440276
JG
388 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
389 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
390 <xs:element name="name" type="tns:name_type" minOccurs="0" />
391 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
dd89693f
JR
392 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
393 <xs:element name="data_url" type="xs:string" minOccurs="0" />
50534d6f
JRJ
394 </xs:all>
395 </xs:complexType>
396
397 <xs:complexType name="snapshots_type">
398 <xs:sequence>
00440276 399 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
50534d6f
JRJ
400 </xs:sequence>
401 </xs:complexType>
402
c5e38b74
JR
403 <xs:complexType name="channels_type">
404 <xs:sequence>
00440276 405 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
406 </xs:sequence>
407 </xs:complexType>
408
f4a088f7 409 <!-- Maps to a lttng_session -->
c5e38b74
JR
410 <xs:complexType name="session_type">
411 <xs:all>
00440276 412 <xs:element name="name" type="tns:name_type" />
dd89693f 413 <xs:element name="path" type="xs:string" minOccurs="0" />
1734c658 414 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
00440276
JG
415 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
416 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
417 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
418 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
419 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
c5e38b74
JR
420 </xs:all>
421 </xs:complexType>
422
f4a088f7 423 <!-- Maps to a lttng_event_field -->
c5e38b74
JR
424 <xs:complexType name="event_field_type">
425 <xs:all>
00440276
JG
426 <xs:element name="name" type="tns:name_type" />
427 <xs:element name="type" type="tns:event_field_type_type" />
f4a088f7 428 <xs:element name="nowrite" type="xs:int" />
c5e38b74
JR
429 </xs:all>
430 </xs:complexType>
431
17c4550a 432 <!-- Maps to the save command -->
1734c658
JRJ
433 <xs:complexType name="save_type">
434 <xs:all>
00440276 435 <xs:element name="session" type="tns:session_type" />
dd89693f 436 <xs:element name="path" type="xs:string" />
1734c658
JRJ
437 </xs:all>
438 </xs:complexType>
439
17c4550a 440 <!-- Maps to the load command -->
1734c658
JRJ
441 <xs:complexType name="load_type">
442 <xs:all>
00440276 443 <xs:element name="session" type="tns:session_type" />
dd89693f 444 <xs:element name="path" type="xs:string" />
23cb2d55
JR
445 <xs:element name="overrides" type="tns:overrides_type" />
446 </xs:all>
447 </xs:complexType>
448
449 <!-- Maps to the override parameters of the load command -->
450 <xs:complexType name="overrides_type">
451 <xs:all>
452 <xs:element name="name" type="tns:name_type" minOccurs="0" />
453 <xs:element name="url" type="xs:string" minOccurs="0" />
1734c658
JRJ
454 </xs:all>
455 </xs:complexType>
c5e38b74 456
7e66b1b0
JRJ
457 <!-- Maps to struct lttng_calibrate -->
458 <xs:complexType name="calibrate_type">
459 <xs:all>
00440276 460 <xs:element name="type" type="tns:calibrate_type_type" />
7e66b1b0
JRJ
461 </xs:all>
462 </xs:complexType>
463
17c4550a 464 <!-- Maps to lttng_event_perf_counter_ctx -->
89b72577
JRJ
465 <xs:complexType name="perf_counter_context_type">
466 <xs:all>
8d40c39b
JG
467 <xs:element name="type" type="tns:uint32_type" />
468 <xs:element name="config" type="tns:uint64_type" />
469 <xs:element name="name" type="tns:name_type" />
89b72577
JRJ
470 </xs:all>
471 </xs:complexType>
472
8d40c39b
JG
473 <!-- Maps to app_ctx -->
474 <xs:complexType name="app_context_type">
89b72577 475 <xs:all>
8d40c39b
JG
476 <xs:element name="provider_name" type="xs:string"/>
477 <xs:element name="ctx_name" type="xs:string"/>
89b72577
JRJ
478 </xs:all>
479 </xs:complexType>
480
8d40c39b
JG
481 <!-- Maps to lttng_event_context -->
482 <xs:complexType name="context_type">
483 <xs:choice>
484 <xs:element name="type" type="tns:context_type_type"/>
485 <xs:element name="perf" type="tns:perf_counter_context_type"/>
486 <xs:element name="app" type="tns:app_context_type"/>
487 </xs:choice>
488 </xs:complexType>
489
f4a088f7 490 <!-- Maps to an array of domain -->
c5e38b74
JR
491 <xs:complexType name="domains_type">
492 <xs:sequence>
00440276 493 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
494 </xs:sequence>
495 </xs:complexType>
496
f4a088f7 497 <!-- Maps to an array of session -->
c5e38b74
JR
498 <xs:complexType name="sessions_type">
499 <xs:sequence>
00440276 500 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
501 </xs:sequence>
502 </xs:complexType>
503
f4a088f7 504 <!-- Maps to an array of event_field -->
c5e38b74
JR
505 <xs:complexType name="event_fields_type">
506 <xs:sequence>
00440276 507 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
508 </xs:sequence>
509 </xs:complexType>
510
f4a088f7 511 <!-- Maps to an array of context -->
89b72577
JRJ
512 <xs:complexType name="contexts_type">
513 <xs:sequence>
00440276 514 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
89b72577
JRJ
515 </xs:sequence>
516 </xs:complexType>
517
54897b57 518 <!-- Maps to an action during snapshot command -->
d0adede2 519 <xs:complexType name="snapshot_cmd_type">
50534d6f 520 <xs:sequence>
d0adede2 521 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
00440276 522 <xs:element name="output" type="tns:output_type" minOccurs="0" />
50534d6f
JRJ
523 </xs:sequence>
524 </xs:complexType>
525
526 <!-- Type of snapshot commands -->
d0adede2 527 <xs:simpleType name="snapshot_action_type">
50534d6f 528 <xs:restriction base="xs:string">
f4a088f7
JRJ
529 <xs:enumeration value="list-output" />
530 <xs:enumeration value="del-output" />
531 <xs:enumeration value="add-output" />
532 <xs:enumeration value="record-output" />
50534d6f
JRJ
533 </xs:restriction>
534 </xs:simpleType>
535
54897b57 536 <!-- Maps to an action during metadata command -->
d0adede2 537 <xs:complexType name="metadata_cmd_type">
54897b57 538 <xs:sequence>
d0adede2 539 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
54897b57
JD
540 </xs:sequence>
541 </xs:complexType>
542
543 <!-- Type of metadata commands -->
d0adede2 544 <xs:simpleType name="metadata_action_type">
54897b57
JD
545 <xs:restriction base="xs:string">
546 <xs:enumeration value="regenerate" />
547 </xs:restriction>
548 </xs:simpleType>
549
d0adede2
JG
550 <!-- Type of regenerate commands -->
551 <xs:simpleType name="regenerate_action_type">
552 <xs:restriction base="xs:string">
553 <xs:enumeration value="metadata" />
554 <xs:enumeration value="statedump" />
555 </xs:restriction>
556 </xs:simpleType>
557
558 <!-- Type of regenerate command -->
559 <xs:complexType name="regenerate_cmd_type">
560 <xs:sequence>
561 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
562 </xs:sequence>
563 </xs:complexType>
564
c5e38b74
JR
565 <xs:complexType name="output_type">
566 <xs:choice>
00440276
JG
567 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
568 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
569 <xs:element name="session" type="tns:session_type" minOccurs="0" />
d0adede2 570 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
00440276
JG
571 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
572 <xs:element name="version" type="tns:version_type" minOccurs="0" />
573 <xs:element name="save" type="tns:save_type" minOccurs="0" />
574 <xs:element name="load" type="tns:load_type" minOccurs="0" />
575 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
576 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
577 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
578 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
579 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
580 <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
d0adede2
JG
581 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
582 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
c5e38b74
JR
583 </xs:choice>
584 </xs:complexType>
585
586 <!-- Maps to the mi_lttng commands -->
587 <xs:simpleType name="command_string_type">
588 <xs:restriction base="xs:string">
37d03ff7 589 <xs:enumeration value="create" />
c5e38b74 590 <xs:enumeration value="list" />
50534d6f 591 <xs:enumeration value="snapshot" />
c5e38b74 592 <xs:enumeration value="version" />
1734c658
JRJ
593 <xs:enumeration value="save" />
594 <xs:enumeration value="load" />
1cfc0bc8 595 <xs:enumeration value="start" />
e5b83100 596 <xs:enumeration value="stop" />
65f25c66 597 <xs:enumeration value="destroy" />
7e66b1b0 598 <xs:enumeration value="calibrate" />
89b72577 599 <xs:enumeration value="add-context" />
acc09215 600 <xs:enumeration value="enable-channel" />
89476427 601 <xs:enumeration value="enable-event" />
ce91cd0b 602 <xs:enumeration value="set-session" />
e4d484a5 603 <xs:enumeration value="disable-event" />
50534d6f 604 <xs:enumeration value="disable-channel" />
c12fcec9
JG
605 <xs:enumeration value="track" />
606 <xs:enumeration value="untrack" />
54897b57 607 <xs:enumeration value="metadata" />
d0adede2 608 <xs:enumeration value="regenerate" />
c5e38b74
JR
609 </xs:restriction>
610 </xs:simpleType>
611
612 <xs:element name="command">
613 <xs:complexType>
614 <xs:all>
00440276
JG
615 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
616 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
1734c658 617 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
c5e38b74 618 </xs:all>
8a7db2af 619 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
c5e38b74
JR
620 </xs:complexType>
621 </xs:element>
622</xs:schema>
This page took 0.098845 seconds and 4 git commands to generate.