Fix: missing value handling for lttng_event_context_type
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Feb 2018 21:03:02 +0000 (16:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 27 Feb 2018 15:09:40 +0000 (10:09 -0500)
Handling of the following enum are added:
    LTTNG_EVENT_CONTEXT_INTERRUPTIBLE
    LTTNG_EVENT_CONTEXT_PREEMPTIBLE
    LTTNG_EVENT_CONTEXT_NEED_RESCHEDULE
    LTTNG_EVENT_CONTEXT_MIGRATABLE

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/mi-lttng-3.0.xsd
src/common/mi-lttng.c

index fbab7fb5c1bd1c7f270690898141ea000f2ee8bf..668b0d267e4e94b217488a4e2a9bbfc7e4b6c5a4 100644 (file)
@@ -99,6 +99,10 @@ 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:restriction>
        </xs:simpleType>
 
index e87e767c56a2a686929a7f752418cff5369b63dd..1dcdefba92271aa56cc3486a52fbb5a36006aa22 100644 (file)
@@ -375,6 +375,14 @@ const char *mi_lttng_event_contexttype_string(enum lttng_event_context_type val)
                return config_event_context_hostname;
        case LTTNG_EVENT_CONTEXT_IP:
                return config_event_context_ip;
+       case LTTNG_EVENT_CONTEXT_INTERRUPTIBLE:
+               return config_event_context_interruptible;
+       case LTTNG_EVENT_CONTEXT_PREEMPTIBLE:
+               return config_event_context_preemptible;
+       case LTTNG_EVENT_CONTEXT_NEED_RESCHEDULE:
+               return config_event_context_need_reschedule;
+       case LTTNG_EVENT_CONTEXT_MIGRATABLE:
+               return config_event_context_migratable;
        default:
                return NULL;
        }
This page took 0.028462 seconds and 4 git commands to generate.