Implement MI and save/load support for callstack contexts
[lttng-tools.git] / src / common / mi-lttng-3.0.xsd
index 33d24ebf071731e0c6f91728994e06cdfe7f7070..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 -->
@@ -43,6 +43,19 @@ THE SOFTWARE.
                </xs:restriction>
        </xs:simpleType>
 
+       <!--
+       Maps to the range allowed for blocking timeout: -1 (block
+       forever), 0 (do not block), positive integer value (blocking
+       time in usec) limited by its signed 32-bit representation when
+       converted to msec.
+       -->
+       <xs:simpleType name="blocking_timeout_type">
+               <xs:restriction base="xs:integer">
+                       <xs:minInclusive value="-1" />
+                       <xs:maxInclusive value="2147483648000" />
+               </xs:restriction>
+       </xs:simpleType>
+
        <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
        <xs:simpleType name="name_type">
                <xs:restriction base="xs:string">
@@ -60,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>
 
@@ -101,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>
 
@@ -362,6 +379,8 @@ THE SOFTWARE.
                        <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
                        <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
                        <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
+                       <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
+                       <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
                </xs:all>
        </xs:complexType>
 
@@ -400,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>
 
@@ -463,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 -->
@@ -545,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" />
@@ -563,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>
 
@@ -589,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.026855 seconds and 5 git commands to generate.