From: Frederic Weisbecker <fweisbec@gmail.com>
To: Wenji Huang <wenji.huang@oracle.com>
Cc: linux-kernel@vger.kernel.org, rostedt@goodmis.org,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH 1/1] trace: use the more accurate parameter.
Date: Tue, 10 Feb 2009 16:26:25 +0100 [thread overview]
Message-ID: <20090210152624.GH5836@nowhere> (raw)
In-Reply-To: <1234225804-13314-1-git-send-email-wenji.huang@oracle.com>
On Mon, Feb 09, 2009 at 07:30:04PM -0500, Wenji Huang wrote:
> Pass tsk to __update_max_tr instead of current to avoid latent hazard.
>
> Impact: clean up
>
> Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
> ---
> kernel/trace/trace.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index 5b1e9a9..c1592f1 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -335,7 +335,7 @@ __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu)
> data->rt_priority = tsk->rt_priority;
>
> /* record this tasks comm */
> - tracing_record_cmdline(current);
> + tracing_record_cmdline(tsk);
> }
Indeed. At this stage, tsk is the next task in the middle of a context
switch. So I guess current is right, but this is more proper to use tsk.
> static void
> --
> 1.5.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2009-02-10 15:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 0:30 [PATCH 1/1] trace: use the more accurate parameter Wenji Huang
2009-02-10 15:26 ` Frederic Weisbecker [this message]
2009-02-11 12:05 ` Ingo Molnar
2009-02-13 5:56 ` Steven Rostedt
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=20090210152624.GH5836@nowhere \
--to=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=wenji.huang@oracle.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