From: jeremie.galarneau@efficios.com (Jérémie Galarneau)
Subject: [lttng-dev] [PATCH lttng-tools] Fix: missing value handling for lttng_event_context_type
Date: Tue, 27 Feb 2018 11:04:23 -0500 [thread overview]
Message-ID: <20180227160421.GA1647@gmail.com> (raw)
In-Reply-To: <1519678982-13815-1-git-send-email-jonathan.rajotte-julien@efficios.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1899 bytes --]
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 at 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
>
parent reply other threads:[~2018-02-27 16:04 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1519678982-13815-1-git-send-email-jonathan.rajotte-julien@efficios.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180227160421.GA1647@gmail.com \
--to=jeremie.galarneau@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox