From: Jonathan Rajotte Date: Mon, 26 Feb 2018 21:03:02 +0000 (-0500) Subject: Fix: missing value handling for lttng_event_context_type X-Git-Tag: v2.9.8~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=610c021b9a768fcddbc92ffd233b4d68df6bae0f;p=lttng-tools.git Fix: missing value handling for lttng_event_context_type 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 Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/mi-lttng-3.0.xsd b/src/common/mi-lttng-3.0.xsd index fbab7fb5c..668b0d267 100644 --- a/src/common/mi-lttng-3.0.xsd +++ b/src/common/mi-lttng-3.0.xsd @@ -99,6 +99,10 @@ THE SOFTWARE. + + + + diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index e87e767c5..1dcdefba9 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -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; }