MI: Add application context type to schema
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 2 Mar 2016 04:26:43 +0000 (23:26 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Mar 2016 22:19:41 +0000 (17:19 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/mi-lttng-3.0.xsd

index e11bbd2ab356103e0b67b7d1eb20b98b6fb5cd2a..d51f409d830e495e7dd70d298571921c685e1a78 100644 (file)
@@ -89,9 +89,6 @@ THE SOFTWARE.
        <!-- Maps to the lttng_event_context_type enum -->
        <xs:simpleType name="context_type_type">
                <xs:restriction base="xs:string">
-                       <xs:enumeration value="PERF_COUNTER" />
-                       <xs:enumeration value="PERF_CPU_COUNTER" />
-                       <xs:enumeration value="PERF_THREAD_COUNTER" />
                        <xs:enumeration value="PID" />
                        <xs:enumeration value="PROCNAME" />
                        <xs:enumeration value="PRIO" />
@@ -440,21 +437,29 @@ THE SOFTWARE.
        <!-- Maps to lttng_event_perf_counter_ctx -->
        <xs:complexType name="perf_counter_context_type">
                <xs:all>
-                       <xs:element name="type" type="uint32_type" />
-                       <xs:element name="config" type="uint64_type" />
-                       <xs:element name="name" type="name_type" />
+                       <xs:element name="type" type="tns:uint32_type" />
+                       <xs:element name="config" type="tns:uint64_type" />
+                       <xs:element name="name" type="tns:name_type" />
                </xs:all>
        </xs:complexType>
 
-       <!-- Maps to lttng_event_context -->
-       <xs:complexType name="context_type">
+       <!-- Maps to app_ctx -->
+       <xs:complexType name="app_context_type">
                <xs:all>
-                       <xs:element name="type" type="context_type_type" />
-                       <xs:element name="perf_counter_context" type="perf_counter_context_type" minOccurs="0" />
-                       <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
+                       <xs:element name="provider_name" type="xs:string"/>
+                       <xs:element name="ctx_name" type="xs:string"/>
                </xs:all>
        </xs:complexType>
 
+       <!-- 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:complexType>
+
        <!-- Maps to an array of domain -->
        <xs:complexType name="domains_type">
                <xs:sequence>
This page took 0.034606 seconds and 4 git commands to generate.