* Re: [PATCH lttng-tools] Fix: missing value handling for lttng_event_context_type
[not found] <1519678982-13815-1-git-send-email-jonathan.rajotte-julien@efficios.com>
@ 2018-02-27 16:04 ` Jérémie Galarneau
0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Galarneau @ 2018-02-27 16:04 UTC (permalink / raw)
To: Jonathan Rajotte; +Cc: lttng-dev, jgalar
Merged in master, stable-2.10, and stable-2.9.
Thanks!
Jérémie
On Mon, Feb 26, 2018 at 04:03:02PM -0500, Jonathan Rajotte wrote:
> 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>
> ---
> 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 0304635..ae00ee8 100644
> --- a/src/common/mi-lttng-3.0.xsd
> +++ b/src/common/mi-lttng-3.0.xsd
> @@ -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>
>
> diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c
> index 9c1597b..f0244d9 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.7.4
>
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH lttng-tools] Fix: missing value handling for lttng_event_context_type
@ 2018-02-26 21:03 Jonathan Rajotte
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Rajotte @ 2018-02-26 21:03 UTC (permalink / raw)
To: lttng-dev; +Cc: jgalar
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>
---
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 0304635..ae00ee8 100644
--- a/src/common/mi-lttng-3.0.xsd
+++ b/src/common/mi-lttng-3.0.xsd
@@ -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>
diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c
index 9c1597b..f0244d9 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.7.4
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-27 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1519678982-13815-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2018-02-27 16:04 ` [PATCH lttng-tools] Fix: missing value handling for lttng_event_context_type Jérémie Galarneau
2018-02-26 21:03 Jonathan Rajotte
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.