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:15 +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 030463558b8fb00f91a080f18703a7ee3d3740b0..ae00ee80eec146d6a3891d425aa7050165998994 100644 (file)
@@ -112,6 +112,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 9c1597b363f67a7ed230443160f81a434f6dea35..f0244d9fdd46d012dee437f335b495a6a8b188cf 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.027009 seconds and 4 git commands to generate.