Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] [PATCH lttng-modules] Fix: update sched instrumentation for kernel 4.12
Date: Wed, 24 May 2017 16:11:48 +0000 (UTC)	[thread overview]
Message-ID: <417919179.24120.1495642308675.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <1495568718-29003-1-git-send-email-mjeanson@efficios.com>

Merged into master, 2.10, 2.9, 2.8.

Thanks,

Mathieu

----- On May 23, 2017, at 9:45 PM, Michael Jeanson mjeanson at efficios.com wrote:

> See upstream commit b91473ff6e979c0028f02f90e40c844959c736d8
> 
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> instrumentation/events/lttng-module/sched.h | 20 +++++++++++++++++++-
> 1 file changed, 19 insertions(+), 1 deletion(-)
> 
> diff --git a/instrumentation/events/lttng-module/sched.h
> b/instrumentation/events/lttng-module/sched.h
> index e5066af..c68dd27 100644
> --- a/instrumentation/events/lttng-module/sched.h
> +++ b/instrumentation/events/lttng-module/sched.h
> @@ -540,7 +540,25 @@ LTTNG_TRACEPOINT_EVENT(sched_stat_runtime,
> )
> #endif
> 
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
> +/*
> + * Tracepoint for showing priority inheritance modifying a tasks
> + * priority.
> + */
> +LTTNG_TRACEPOINT_EVENT(sched_pi_setprio,
> +
> +	TP_PROTO(struct task_struct *tsk, struct task_struct *pi_task),
> +
> +	TP_ARGS(tsk, pi_task),
> +
> +	TP_FIELDS(
> +		ctf_array_text(char, comm, tsk->comm, TASK_COMM_LEN)
> +		ctf_integer(pid_t, tid, tsk->pid)
> +		ctf_integer(int, oldprio, tsk->prio - MAX_RT_PRIO)
> +		ctf_integer(int, newprio, pi_task ? pi_task->prio - MAX_RT_PRIO : tsk->prio -
> MAX_RT_PRIO)
> +	)
> +)
> +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
> /*
>  * Tracepoint for showing priority inheritance modifying a tasks
>  * priority.
> --
> 2.7.4

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


           reply	other threads:[~2017-05-24 16:11 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1495568718-29003-1-git-send-email-mjeanson@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=417919179.24120.1495642308675.JavaMail.zimbra@efficios.com \
    --to=mathieu.desnoyers@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