CLI: show event exclusion names
[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
46 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
47 <xs:simpleType name="name_type">
48 <xs:restriction base="xs:string">
49 <xs:maxLength value="255" />
50 </xs:restriction>
51 </xs:simpleType>
52
53 <!-- Maps to the lttng_event_type enum -->
54 <xs:simpleType name="event_type_type">
55 <xs:restriction base="xs:string">
56 <xs:enumeration value="ALL" />
57 <xs:enumeration value="TRACEPOINT" />
58 <xs:enumeration value="PROBE" />
59 <xs:enumeration value="FUNCTION" />
60 <xs:enumeration value="FUNCTION_ENTRY" />
61 <xs:enumeration value="NOOP" />
62 <xs:enumeration value="SYSCALL" />
63 <xs:enumeration value="KPROBE" />
64 <xs:enumeration value="KRETPROBE" />
65 </xs:restriction>
66 </xs:simpleType>
67
68 <!-- Maps to the lttng_event_field_type enum -->
69 <xs:simpleType name="event_field_type_type">
70 <xs:restriction base="xs:string">
71 <xs:enumeration value="OTHER" />
72 <xs:enumeration value="INTEGER" />
73 <xs:enumeration value="ENUM" />
74 <xs:enumeration value="FLOAT" />
75 <xs:enumeration value="STRING" />
76 </xs:restriction>
77 </xs:simpleType>
78
79 <!-- Maps to the lttng_loglevel_type enum -->
80 <xs:simpleType name="loglevel_type">
81 <xs:restriction base="xs:string">
82 <xs:enumeration value="ALL" />
83 <xs:enumeration value="RANGE" />
84 <xs:enumeration value="SINGLE" />
85 <xs:enumeration value="UNKNOWN" />
86 </xs:restriction>
87 </xs:simpleType>
88
c9ffe7f5 89 <!-- Maps to the lttng_event_context_type enum -->
89b72577
JRJ
90 <xs:simpleType name="context_type_type">
91 <xs:restriction base="xs:string">
89b72577
JRJ
92 <xs:enumeration value="PID" />
93 <xs:enumeration value="PROCNAME" />
94 <xs:enumeration value="PRIO" />
95 <xs:enumeration value="NICE" />
96 <xs:enumeration value="VPID" />
97 <xs:enumeration value="TID" />
98 <xs:enumeration value="VTID" />
99 <xs:enumeration value="PPID" />
100 <xs:enumeration value="VPPID" />
101 <xs:enumeration value="PTHREAD_ID" />
102 <xs:enumeration value="HOSTNAME" />
103 <xs:enumeration value="IP" />
104 </xs:restriction>
105 </xs:simpleType>
106
c5e38b74
JR
107 <!-- Maps to loglevel_string char * -->
108 <xs:simpleType name="loglevel_string_type">
109 <xs:restriction base="xs:string">
110 <xs:enumeration value="" />
111 <xs:enumeration value="TRACE_EMERG" />
112 <xs:enumeration value="TRACE_ALERT" />
113 <xs:enumeration value="TRACE_CRIT" />
114 <xs:enumeration value="TRACE_ERR" />
115 <xs:enumeration value="TRACE_WARNING" />
116 <xs:enumeration value="TRACE_NOTICE" />
117 <xs:enumeration value="TRACE_INFO" />
118 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
119 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
120 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
121 <xs:enumeration value="TRACE_DEBUG_MODULE" />
122 <xs:enumeration value="TRACE_DEBUG_UNIT" />
123 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
124 <xs:enumeration value="TRACE_DEBUG_LINE" />
125 <xs:enumeration value="TRACE_DEBUG" />
136f2f81
JRJ
126 <xs:enumeration value="JUL_OFF" />
127 <xs:enumeration value="JUL_SEVERE" />
128 <xs:enumeration value="JUL_WARNING" />
129 <xs:enumeration value="JUL_INFO" />
130 <xs:enumeration value="JUL_CONFIG" />
131 <xs:enumeration value="JUL_FINE" />
132 <xs:enumeration value="JUL_FINER" />
133 <xs:enumeration value="JUL_FINEST" />
134 <xs:enumeration value="JUL_ALL" />
e4d12c27
DG
135 <xs:enumeration value="LOG4J_OFF" />
136 <xs:enumeration value="LOG4J_FATAL" />
137 <xs:enumeration value="LOG4J_ERROR" />
138 <xs:enumeration value="LOG4J_WARN" />
139 <xs:enumeration value="LOG4J_INFO" />
140 <xs:enumeration value="LOG4J_DEBUG" />
141 <xs:enumeration value="LOG4J_TRACE" />
142 <xs:enumeration value="LOG4J_ALL" />
0e115563
DG
143 <xs:enumeration value="PYTHON_CRITICAL" />
144 <xs:enumeration value="PYTHON_ERROR" />
145 <xs:enumeration value="PYTHON_WARNING" />
146 <xs:enumeration value="PYTHON_INFO" />
147 <xs:enumeration value="PYTHON_DEBUG" />
148 <xs:enumeration value="PYTHON_NOTSET" />
c5e38b74
JR
149 <xs:enumeration value="UNKNOWN" />
150 </xs:restriction>
151 </xs:simpleType>
152
7e66b1b0
JRJ
153 <!-- Maps to the lttng_calibrate_type enum -->
154 <xs:simpleType name="calibrate_type_type">
155 <xs:restriction base="xs:string">
156 <xs:enumeration value="FUNCTION" />
157 </xs:restriction>
158 </xs:simpleType>
159
c5e38b74
JR
160 <!-- Maps to the lttng_event_probe_attr struct -->
161 <xs:complexType name="event_probe_attributes_type">
162 <xs:all>
00440276
JG
163 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
164 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
165 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
c5e38b74
JR
166 </xs:all>
167 </xs:complexType>
168
169 <!-- Maps to the lttng_event_function_attr struct -->
170 <xs:complexType name="event_ftrace_attributes_type">
171 <xs:all>
00440276 172 <xs:element name="symbol_name" type="tns:name_type" />
c5e38b74
JR
173 </xs:all>
174 </xs:complexType>
175
176 <!-- Maps to per event type configuration -->
177 <xs:complexType name="event_attributes_type">
178 <xs:choice>
00440276
JG
179 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
180 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
c5e38b74
JR
181 </xs:choice>
182 </xs:complexType>
183
f4a088f7 184 <!-- Maps to exclusion type -->
89476427
JRJ
185 <xs:complexType name="event_exclusion_list_type">
186 <xs:sequence>
187 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
188 </xs:sequence>
189 </xs:complexType>
190
c5e38b74
JR
191 <!-- Maps to lttng_event struct -->
192 <xs:complexType name="event_type">
193 <xs:all>
00440276
JG
194 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
195 <xs:element name="name" type="tns:name_type" minOccurs="0" />
196 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
197 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
c5e38b74 198 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
7b4aa11d 199 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
c5e38b74 200 <xs:element name="exclusion" type="xs:boolean" minOccurs="0" />
00440276
JG
201 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
202 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
203 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
89476427 204 <xs:element name="success" type="xs:boolean" minOccurs="0" />
c5e38b74
JR
205 </xs:all>
206 </xs:complexType>
207
208 <!-- Maps to mi_lttng_version struct -->
209 <xs:complexType name="version_type">
210 <xs:all>
00440276
JG
211 <xs:element name="name" type="tns:name_type" />
212 <xs:element name="string" type="tns:name_type" />
213 <xs:element name="major" type="tns:uint32_type" />
c5e38b74 214 <xs:element name="url" type="xs:string" />
00440276 215 <xs:element name="minor" type="tns:uint32_type" />
314d5222 216 <xs:element name="commit" type="xs:string" />
c5e38b74 217 <xs:element name="license" type="xs:string" />
00440276 218 <xs:element name="patchLevel" type="tns:uint32_type" />
c5e38b74
JR
219 <xs:element name="description" type="xs:string" />
220 </xs:all>
221 </xs:complexType>
222
f4a088f7 223 <!-- Maps to an array of event -->
c5e38b74
JR
224 <xs:complexType name="event_list_type">
225 <xs:sequence>
00440276 226 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
227 </xs:sequence>
228 </xs:complexType>
229
230 <!-- Maps to the lttng_domain_type enum -->
231 <xs:simpleType name="domain_type_type">
232 <xs:restriction base="xs:string">
233 <xs:enumeration value="KERNEL"/>
234 <xs:enumeration value="UST"/>
235 <xs:enumeration value="JUL"/>
e4d12c27 236 <xs:enumeration value="LOG4J"/>
0e115563 237 <xs:enumeration value="PYTHON"/>
c5e38b74
JR
238 </xs:restriction>
239 </xs:simpleType>
240
241 <!-- Maps to the lttng_buffer_type enum -->
242 <xs:simpleType name="domain_buffer_type">
243 <xs:restriction base="xs:string">
244 <xs:enumeration value="PER_PID"/>
245 <xs:enumeration value="PER_UID"/>
246 <xs:enumeration value="GLOBAL"/>
247 </xs:restriction>
248 </xs:simpleType>
249
f4a088f7 250 <!-- Maps to the type mode of a channel -->
c5e38b74
JR
251 <xs:simpleType name="channel_overwrite_mode_type">
252 <xs:restriction base="xs:string">
253 <xs:enumeration value="DISCARD" />
254 <xs:enumeration value="OVERWRITE" />
255 </xs:restriction>
256 </xs:simpleType>
257
258 <!-- Maps to the lttng_event_output enum -->
259 <xs:simpleType name="event_output_type">
260 <xs:restriction base="xs:string">
261 <xs:enumeration value="SPLICE" />
262 <xs:enumeration value="MMAP" />
263 </xs:restriction>
264 </xs:simpleType>
265
bf239d4c
JR
266 <!-- map to a pid -->
267 <xs:complexType name="pid_type">
c5e38b74 268 <xs:all>
bf239d4c 269 <xs:element name="id" type="xs:int" />
00440276
JG
270 <xs:element name="name" type="tns:name_type" />
271 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
c5e38b74
JR
272 </xs:all>
273 </xs:complexType>
274
bf239d4c 275 <!-- maps to an array of pid -->
c5e38b74
JR
276 <xs:complexType name="pids_type">
277 <xs:sequence>
00440276 278 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
c12fcec9
JG
279 </xs:sequence>
280 </xs:complexType>
281
282 <xs:simpleType name="pidbyint">
283 <xs:restriction base="xs:integer">
284 <xs:minInclusive value="0"/>
285 <xs:maxInclusive value="4294967295" />
286 </xs:restriction>
287 </xs:simpleType>
288
289 <xs:simpleType name="pidwildcard">
290 <xs:restriction base="xs:string">
291 <xs:enumeration value="*"/>
292 </xs:restriction>
293 </xs:simpleType>
294
295 <xs:complexType name="pid_target_type">
296 <xs:all>
297 <xs:element name="pid">
298 <xs:simpleType>
00440276 299 <xs:union memberTypes="tns:pidbyint tns:pidwildcard" />
c12fcec9
JG
300 </xs:simpleType>
301 </xs:element>
302 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
303 </xs:all>
304 </xs:complexType>
305
306 <!-- Maps to a list of pid_targets-->
307 <xs:complexType name="targets_type">
308 <xs:sequence>
309 <xs:choice>
00440276 310 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
c12fcec9
JG
311 </xs:choice>
312 </xs:sequence>
313 </xs:complexType>
314
315 <!-- Maps to a pid_tracker-->
316 <xs:complexType name="pid_tracker_type">
317 <xs:all>
00440276 318 <xs:element name="targets" type="tns:targets_type" />
c12fcec9
JG
319 </xs:all>
320 </xs:complexType>
321
322 <!-- Maps to a list of trackers-->
323 <xs:complexType name="trackers_type">
324 <xs:sequence minOccurs="0" maxOccurs="unbounded">
00440276 325 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
c5e38b74
JR
326 </xs:sequence>
327 </xs:complexType>
328
329 <!-- Maps to struct lttng_domain and contains channels -->
330 <xs:complexType name="domain_type">
331 <xs:all>
00440276
JG
332 <xs:element name="type" type="tns:domain_type_type" />
333 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
334 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
335 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
336 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
337 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
c5e38b74
JR
338 </xs:all>
339 </xs:complexType>
340
341 <!-- Maps to struct lttng_channel -->
342 <xs:complexType name="channel_type">
343 <xs:all>
00440276 344 <xs:element name="name" type="tns:name_type" />
f4a088f7 345 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
00440276
JG
346 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
347 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
9618049b 348 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
c5e38b74
JR
349 </xs:all>
350 </xs:complexType>
351
352 <!-- Maps to struct lttng_channel_attr -->
353 <xs:complexType name="channel_attributes_type">
354 <xs:all>
00440276
JG
355 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
356 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
357 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
358 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
359 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
360 <xs:element name="output_type" type="tns:event_output_type" />
361 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
362 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
363 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
c5e38b74
JR
364 </xs:all>
365 </xs:complexType>
366
50534d6f
JRJ
367 <!-- Maps to struct lttng_snapshot_output -->
368 <xs:complexType name="snapshot_type">
369 <xs:all>
00440276
JG
370 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
371 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
372 <xs:element name="name" type="tns:name_type" minOccurs="0" />
373 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
374 <xs:element name="ctrl_url" type="tns:name_type" minOccurs="0" />
375 <xs:element name="data_url" type="tns:name_type" minOccurs="0" />
50534d6f
JRJ
376 </xs:all>
377 </xs:complexType>
378
379 <xs:complexType name="snapshots_type">
380 <xs:sequence>
00440276 381 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
50534d6f
JRJ
382 </xs:sequence>
383 </xs:complexType>
384
c5e38b74
JR
385 <xs:complexType name="channels_type">
386 <xs:sequence>
00440276 387 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
388 </xs:sequence>
389 </xs:complexType>
390
f4a088f7 391 <!-- Maps to a lttng_session -->
c5e38b74
JR
392 <xs:complexType name="session_type">
393 <xs:all>
00440276
JG
394 <xs:element name="name" type="tns:name_type" />
395 <xs:element name="path" type="tns:name_type" minOccurs="0" />
1734c658 396 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
00440276
JG
397 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
398 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
399 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
400 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
401 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
c5e38b74
JR
402 </xs:all>
403 </xs:complexType>
404
f4a088f7 405 <!-- Maps to a lttng_event_field -->
c5e38b74
JR
406 <xs:complexType name="event_field_type">
407 <xs:all>
00440276
JG
408 <xs:element name="name" type="tns:name_type" />
409 <xs:element name="type" type="tns:event_field_type_type" />
f4a088f7 410 <xs:element name="nowrite" type="xs:int" />
c5e38b74
JR
411 </xs:all>
412 </xs:complexType>
413
17c4550a 414 <!-- Maps to the save command -->
1734c658
JRJ
415 <xs:complexType name="save_type">
416 <xs:all>
00440276
JG
417 <xs:element name="session" type="tns:session_type" />
418 <xs:element name="path" type="tns:name_type" />
1734c658
JRJ
419 </xs:all>
420 </xs:complexType>
421
17c4550a 422 <!-- Maps to the load command -->
1734c658
JRJ
423 <xs:complexType name="load_type">
424 <xs:all>
00440276
JG
425 <xs:element name="session" type="tns:session_type" />
426 <xs:element name="path" type="tns:name_type" />
1734c658
JRJ
427 </xs:all>
428 </xs:complexType>
c5e38b74 429
7e66b1b0
JRJ
430 <!-- Maps to struct lttng_calibrate -->
431 <xs:complexType name="calibrate_type">
432 <xs:all>
00440276 433 <xs:element name="type" type="tns:calibrate_type_type" />
7e66b1b0
JRJ
434 </xs:all>
435 </xs:complexType>
436
17c4550a 437 <!-- Maps to lttng_event_perf_counter_ctx -->
89b72577
JRJ
438 <xs:complexType name="perf_counter_context_type">
439 <xs:all>
8d40c39b
JG
440 <xs:element name="type" type="tns:uint32_type" />
441 <xs:element name="config" type="tns:uint64_type" />
442 <xs:element name="name" type="tns:name_type" />
89b72577
JRJ
443 </xs:all>
444 </xs:complexType>
445
8d40c39b
JG
446 <!-- Maps to app_ctx -->
447 <xs:complexType name="app_context_type">
89b72577 448 <xs:all>
8d40c39b
JG
449 <xs:element name="provider_name" type="xs:string"/>
450 <xs:element name="ctx_name" type="xs:string"/>
89b72577
JRJ
451 </xs:all>
452 </xs:complexType>
453
8d40c39b
JG
454 <!-- Maps to lttng_event_context -->
455 <xs:complexType name="context_type">
456 <xs:choice>
457 <xs:element name="type" type="tns:context_type_type"/>
458 <xs:element name="perf" type="tns:perf_counter_context_type"/>
459 <xs:element name="app" type="tns:app_context_type"/>
460 </xs:choice>
461 </xs:complexType>
462
f4a088f7 463 <!-- Maps to an array of domain -->
c5e38b74
JR
464 <xs:complexType name="domains_type">
465 <xs:sequence>
00440276 466 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
467 </xs:sequence>
468 </xs:complexType>
469
f4a088f7 470 <!-- Maps to an array of session -->
c5e38b74
JR
471 <xs:complexType name="sessions_type">
472 <xs:sequence>
00440276 473 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
474 </xs:sequence>
475 </xs:complexType>
476
f4a088f7 477 <!-- Maps to an array of event_field -->
c5e38b74
JR
478 <xs:complexType name="event_fields_type">
479 <xs:sequence>
00440276 480 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
c5e38b74
JR
481 </xs:sequence>
482 </xs:complexType>
483
f4a088f7 484 <!-- Maps to an array of context -->
89b72577
JRJ
485 <xs:complexType name="contexts_type">
486 <xs:sequence>
00440276 487 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
89b72577
JRJ
488 </xs:sequence>
489 </xs:complexType>
490
f4a088f7 491 <!-- Maps to an action dutring snapshot command -->
50534d6f
JRJ
492 <xs:complexType name="snapshot_action_type">
493 <xs:sequence>
00440276
JG
494 <xs:element name="name" type="tns:snapshot_actiontype_type" minOccurs="0" />
495 <xs:element name="output" type="tns:output_type" minOccurs="0" />
50534d6f
JRJ
496 </xs:sequence>
497 </xs:complexType>
498
499 <!-- Type of snapshot commands -->
500 <xs:simpleType name="snapshot_actiontype_type">
501 <xs:restriction base="xs:string">
f4a088f7
JRJ
502 <xs:enumeration value="list-output" />
503 <xs:enumeration value="del-output" />
504 <xs:enumeration value="add-output" />
505 <xs:enumeration value="record-output" />
50534d6f
JRJ
506 </xs:restriction>
507 </xs:simpleType>
508
c5e38b74
JR
509 <xs:complexType name="output_type">
510 <xs:choice>
00440276
JG
511 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
512 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
513 <xs:element name="session" type="tns:session_type" minOccurs="0" />
514 <xs:element name="snapshot_action" type="tns:snapshot_action_type" minOccurs="0" />
515 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
516 <xs:element name="version" type="tns:version_type" minOccurs="0" />
517 <xs:element name="save" type="tns:save_type" minOccurs="0" />
518 <xs:element name="load" type="tns:load_type" minOccurs="0" />
519 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
520 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
521 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
522 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
523 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
524 <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
c5e38b74
JR
525 </xs:choice>
526 </xs:complexType>
527
528 <!-- Maps to the mi_lttng commands -->
529 <xs:simpleType name="command_string_type">
530 <xs:restriction base="xs:string">
37d03ff7 531 <xs:enumeration value="create" />
c5e38b74 532 <xs:enumeration value="list" />
50534d6f 533 <xs:enumeration value="snapshot" />
c5e38b74 534 <xs:enumeration value="version" />
1734c658
JRJ
535 <xs:enumeration value="save" />
536 <xs:enumeration value="load" />
1cfc0bc8 537 <xs:enumeration value="start" />
e5b83100 538 <xs:enumeration value="stop" />
65f25c66 539 <xs:enumeration value="destroy" />
7e66b1b0 540 <xs:enumeration value="calibrate" />
89b72577 541 <xs:enumeration value="add-context" />
acc09215 542 <xs:enumeration value="enable-channel" />
89476427 543 <xs:enumeration value="enable-event" />
ce91cd0b 544 <xs:enumeration value="set-session" />
e4d484a5 545 <xs:enumeration value="disable-event" />
50534d6f 546 <xs:enumeration value="disable-channel" />
c12fcec9
JG
547 <xs:enumeration value="track" />
548 <xs:enumeration value="untrack" />
c5e38b74
JR
549 </xs:restriction>
550 </xs:simpleType>
551
552 <xs:element name="command">
553 <xs:complexType>
554 <xs:all>
00440276
JG
555 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
556 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
1734c658 557 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
c5e38b74 558 </xs:all>
8a7db2af 559 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
c5e38b74
JR
560 </xs:complexType>
561 </xs:element>
562</xs:schema>
This page took 0.060543 seconds and 5 git commands to generate.