<!-- 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" />
<!-- 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>