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.10.3~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=16df1f44c9016cfc9aa1e4547ce12f9a20d4f3f8;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 030463558..ae00ee80e 100644 --- a/src/common/mi-lttng-3.0.xsd +++ b/src/common/mi-lttng-3.0.xsd @@ -112,6 +112,10 @@ THE SOFTWARE. + + + + diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index 9c1597b36..f0244d9fd 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; }