Mi calibrate command: support and validation
[lttng-tools.git] / src / common / mi_lttng.xsd
index d41b1eda1f75574ab3a4f8d9bcf6ae35f3241b43..884830d1c32c65de867de363501a283def9a7b64 100644 (file)
@@ -106,6 +106,13 @@ THE SOFTWARE.
                </xs:restriction>
        </xs:simpleType>
 
+       <!-- Maps to the lttng_calibrate_type enum -->
+       <xs:simpleType name="calibrate_type_type">
+               <xs:restriction base="xs:string">
+                       <xs:enumeration value="FUNCTION" />
+               </xs:restriction>
+       </xs:simpleType>
+
        <!-- Maps to the lttng_event_probe_attr struct -->
        <xs:complexType name="event_probe_attributes_type">
                <xs:all>
@@ -217,7 +224,7 @@ THE SOFTWARE.
        <xs:complexType name="domain_type">
                <xs:all>
                        <xs:element name="type" type="domain_type_type"/>
-                       <xs:element name="buffer_type" type="domain_buffer_type"/>
+                       <xs:element name="buffer_type" type="domain_buffer_type" />
                        <xs:element name="pids" type="pids_type" minOccurs="0" />
                        <xs:element name="channels" type="channels_type" minOccurs="0" />
                        <xs:element name="events" type="event_list_type" minOccurs="0" />
@@ -258,10 +265,10 @@ THE SOFTWARE.
        <xs:complexType name="session_type">
                <xs:all>
                        <xs:element name="name" type="name_type" />
-                       <xs:element name="path" type="name_type" />
-                       <xs:element name="enabled" type="xs:boolean" default="false" />
-                       <xs:element name="snapshot_mode" type="uint32_type" />
-                       <xs:element name="live_timer_interval" type="uint32_type" />
+                       <xs:element name="path" type="name_type" minOccurs="0" />
+                       <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
+                       <xs:element name="snapshot_mode" type="uint32_type" minOccurs="0" />
+                       <xs:element name="live_timer_interval" type="uint32_type" minOccurs="0" />
                        <xs:element name="channels" type="channels_type" minOccurs="0" />
                        <xs:element name="domains" type="domains_type" minOccurs="0" />
                </xs:all>
@@ -275,6 +282,28 @@ THE SOFTWARE.
                </xs:all>
        </xs:complexType>
 
+       <!-- map to the save command -->
+       <xs:complexType name="save_type">
+               <xs:all>
+                       <xs:element name="session" type="session_type" />
+                       <xs:element name="path" type="name_type"/>
+               </xs:all>
+       </xs:complexType>
+
+       <!-- map to the load command -->
+       <xs:complexType name="load_type">
+               <xs:all>
+                       <xs:element name="session" type="session_type" />
+                       <xs:element name="path" type="name_type"/>
+               </xs:all>
+       </xs:complexType>
+
+       <!-- Maps to struct lttng_calibrate -->
+       <xs:complexType name="calibrate_type">
+               <xs:all>
+                       <xs:element name="type" type="calibrate_type_type" />
+               </xs:all>
+       </xs:complexType>
 
        <xs:complexType name="domains_type">
                <xs:sequence>
@@ -298,15 +327,26 @@ THE SOFTWARE.
                <xs:choice>
                        <xs:element name="domains" type="domains_type" minOccurs="0" />
                        <xs:element name="sessions" type="sessions_type" minOccurs="0" />
+                       <xs:element name="session" type="session_type" minOccurs="0" />
                        <xs:element name="version" type="version_type" minOccurs="0" />
+                       <xs:element name="save" type="save_type" minOccurs="0" />
+                       <xs:element name="load" type="load_type" minOccurs="0" />
+                       <xs:element name="calibrate" type="calibrate_type" minOccurs="0" />
                </xs:choice>
        </xs:complexType>
 
        <!-- Maps to the mi_lttng commands -->
        <xs:simpleType name="command_string_type">
                <xs:restriction base="xs:string">
+                       <xs:enumeration value="create" />
                        <xs:enumeration value="list" />
                        <xs:enumeration value="version" />
+                       <xs:enumeration value="save" />
+                       <xs:enumeration value="load" />
+                       <xs:enumeration value="start" />
+                       <xs:enumeration value="stop" />
+                       <xs:enumeration value="destroy" />
+                       <xs:enumeration value="calibrate" />
                </xs:restriction>
        </xs:simpleType>
 
@@ -315,6 +355,7 @@ THE SOFTWARE.
                        <xs:all>
                                <xs:element name="name" type="command_string_type" maxOccurs="1" />
                                <xs:element name="output" type="output_type" maxOccurs="1" />
+                               <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
                        </xs:all>
                </xs:complexType>
        </xs:element>
This page took 0.027941 seconds and 5 git commands to generate.