From a72332c383d3feb12958b72caf0c23c1aa1e0fb5 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 26 Feb 2018 16:03:02 -0500 Subject: [PATCH] Fix: missing value handling for lttng_event_context_type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/common/mi-lttng-3.0.xsd | 4 ++++ src/common/mi-lttng.c | 8 ++++++++ 2 files changed, 12 insertions(+) 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; } -- 2.34.1