Implement MI and save/load support for callstack contexts
[lttng-tools.git] / src / common / mi-lttng-3.0.xsd
index 8b2e45359ec173a4f2938df32ae1581fba08fe87..f9ca71094ec355f14209dbaad29e400d7071b08e 100644 (file)
@@ -23,8 +23,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-       targetNamespace="http://lttng.org/xml/ns/lttng-mi"
-       xmlns:tns="http://lttng.org/xml/ns/lttng-mi"
+       targetNamespace="https://lttng.org/xml/ns/lttng-mi"
+       xmlns:tns="https://lttng.org/xml/ns/lttng-mi"
        elementFormDefault="qualified" version="3.0">
 
        <!-- Maps to the uint32_t type -->
@@ -73,8 +73,6 @@ THE SOFTWARE.
                        <xs:enumeration value="FUNCTION_ENTRY" />
                        <xs:enumeration value="NOOP" />
                        <xs:enumeration value="SYSCALL" />
-                       <xs:enumeration value="KPROBE" />
-                       <xs:enumeration value="KRETPROBE" />
                </xs:restriction>
        </xs:simpleType>
 
@@ -114,6 +112,12 @@ THE SOFTWARE.
                        <xs:enumeration value="PTHREAD_ID" />
                        <xs:enumeration value="HOSTNAME" />
                        <xs:enumeration value="IP" />
+                       <xs:enumeration value="INTERRUPTIBLE" />
+                       <xs:enumeration value="PREEMPTIBLE" />
+                       <xs:enumeration value="NEED_RESCHEDULE" />
+                       <xs:enumeration value="MIGRATABLE" />
+                       <xs:enumeration value="CALLSTACK_USER" />
+                       <xs:enumeration value="CALLSTACK_KERNEL" />
                </xs:restriction>
        </xs:simpleType>
 
@@ -415,6 +419,8 @@ THE SOFTWARE.
                        <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
                        <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
                        <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
+                       <xs:element name="rotation_schedule_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
+                       <xs:element name="rotation_schedule_timer_period" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- usec -->
                </xs:all>
        </xs:complexType>
 
@@ -478,11 +484,14 @@ THE SOFTWARE.
 
        <!-- Maps to lttng_event_context -->
        <xs:complexType name="context_type">
-               <xs:choice>
-                       <xs:element name="type" type="tns:context_type_type"/>
-                       <xs:element name="perf" type="tns:perf_counter_context_type"/>
-                       <xs:element name="app" type="tns:app_context_type"/>
-               </xs:choice>
+               <xs:sequence>
+                       <xs:choice>
+                               <xs:element name="type" type="tns:context_type_type"/>
+                               <xs:element name="perf" type="tns:perf_counter_context_type"/>
+                               <xs:element name="app" type="tns:app_context_type"/>
+                       </xs:choice>
+                       <xs:element name="symbol" type="xs:string" minOccurs="0" />
+               </xs:sequence>
        </xs:complexType>
 
        <!-- Maps to an array of domain -->
@@ -560,6 +569,32 @@ THE SOFTWARE.
                </xs:sequence>
        </xs:complexType>
 
+       <!-- Maps to the rotate command -->
+       <xs:complexType name="rotation_type">
+               <xs:all>
+                       <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
+                       <xs:element name="status" type="xs:string" />
+                       <xs:element name="path" type="xs:string" minOccurs="0" />
+               </xs:all>
+       </xs:complexType>
+
+       <!-- Maps to an array of rotations -->
+       <xs:complexType name="rotations_type">
+               <xs:sequence>
+                       <xs:element name="rotation" type="tns:rotation_type" minOccurs="0" maxOccurs="unbounded" />
+               </xs:sequence>
+       </xs:complexType>
+
+       <!-- Maps to the enable-rotation command -->
+       <xs:complexType name="rotation_schedule_type">
+               <xs:sequence>
+                       <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
+                       <xs:element name="rotation_schedule_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
+                       <xs:element name="rotation_schedule_timer_period" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- usec -->
+                       <xs:element name="status" type="xs:string" minOccurs="0"/>
+               </xs:sequence>
+       </xs:complexType>
+
        <xs:complexType name="output_type">
                <xs:choice>
                        <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
@@ -578,6 +613,8 @@ THE SOFTWARE.
                        <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
                        <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
                        <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
+                       <xs:element name="rotations" type="tns:rotations_type" minOccurs="0" />
+                       <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="0" />
                </xs:choice>
        </xs:complexType>
 
@@ -604,6 +641,9 @@ THE SOFTWARE.
                        <xs:enumeration value="untrack" />
                        <xs:enumeration value="metadata" />
                        <xs:enumeration value="regenerate" />
+                       <xs:enumeration value="rotate" />
+                       <xs:enumeration value="enable-rotation" />
+                       <xs:enumeration value="disable-rotation" />
                </xs:restriction>
        </xs:simpleType>
 
This page took 0.026193 seconds and 5 git commands to generate.