SoW-2020-0003: Trace Hit Counters
[lttng-tools.git] / src / common / config / session.xsd
index 6f3a5d8af650726a21ed9325f78534a519f9bff9..c8f8ea0fb2b27156485161527b699b8506e24934 100644 (file)
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
 
 -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-elementFormDefault="qualified" version="2.11">
+elementFormDefault="qualified" version="2.12">
 
 <xs:simpleType name="name_type">
        <xs:restriction base="xs:string">
@@ -254,6 +254,48 @@ by its signed 32-bit representation when converted to msec.
        </xs:sequence>
 </xs:complexType>
 
+<xs:complexType name="map_list_type">
+       <xs:sequence>
+               <xs:element name="map" type="map_type" minOccurs="0" maxOccurs="unbounded" />
+       </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="map_type">
+       <xs:all>
+               <xs:element name="name" type="name_type"/>
+               <xs:element name="enabled" type="xs:boolean" />
+               <xs:element name="bitness" type="bitness_type" />
+               <xs:element name="boundary_policy" type="boundary_policy_type" />
+               <xs:element name="coalesce_hits" type="xs:boolean" />
+               <xs:element name="dimensions" type="dimension_list_type" />
+       </xs:all>
+</xs:complexType>
+
+<xs:simpleType name="bitness_type">
+       <xs:restriction base="xs:integer">
+               <xs:enumeration value="32"/>
+               <xs:enumeration value="64"/>
+       </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="boundary_policy_type">
+       <xs:restriction base="xs:string">
+               <xs:enumeration value="OVERFLOW"/>
+       </xs:restriction>
+</xs:simpleType>
+
+<xs:complexType name="dimension_list_type">
+       <xs:sequence>
+               <xs:element name="dimension" type="dimension_type" maxOccurs="unbounded"/>
+       </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="dimension_type">
+       <xs:all>
+               <xs:element name="size" type="uint64_type" />
+       </xs:all>
+</xs:complexType>
+
 <xs:complexType name="pid_value_type">
        <xs:choice minOccurs="0">
                <xs:element name="id" type="xs:integer" />
@@ -394,13 +436,45 @@ by its signed 32-bit representation when converted to msec.
        </xs:sequence>
 </xs:complexType>
 
+<xs:complexType name="pid_target_type">
+       <xs:all>
+               <xs:element name="pid" type="xs:integer" />
+       </xs:all>
+</xs:complexType>
+
+<!-- Maps to a list of pid_targets (legacy)-->
+<xs:complexType name="targets_type">
+       <xs:sequence>
+               <xs:choice>
+                       <xs:element name="pid_target" type="pid_target_type" minOccurs="0" maxOccurs="unbounded" />
+               </xs:choice>
+       </xs:sequence>
+</xs:complexType>
+
+<!-- Maps to a pid_tracker (legacy)-->
+<xs:complexType name="pid_tracker_type">
+       <xs:all>
+               <xs:element name="targets" type="targets_type" />
+       </xs:all>
+</xs:complexType>
+
+<!-- Maps to a list of trackers (legacy)-->
+<xs:complexType name="trackers_type">
+       <xs:sequence minOccurs="0" maxOccurs="unbounded">
+               <xs:element name="pid_tracker" type="pid_tracker_type" maxOccurs="1" />
+       </xs:sequence>
+</xs:complexType>
+
 <!-- Maps to struct lttng_domain, contains channels and pid_process_attr_tracker -->
 <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="channels" type="channel_list_type" minOccurs="0"/>
+               <xs:element name="maps" type="map_list_type" minOccurs="0"/>
                <xs:element name="process_attr_trackers" type="process_attr_tracker_type" minOccurs="0"/>
+               <!-- Support of legacy tracker specification -->
+               <xs:element name="trackers" type="trackers_type" minOccurs="0"/>
        </xs:all>
 </xs:complexType>
 
This page took 0.025042 seconds and 5 git commands to generate.