public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Jiang Liu <jiang.liu@huawei.com>
Subject: [for-next][PATCH 4/4] tracing: Add entry->next_cpu to trace_ctxwake_bin()
Date: Tue, 04 Nov 2014 08:48:51 -0500	[thread overview]
Message-ID: <20141104134916.450863338@goodmis.org> (raw)
In-Reply-To: 20141104134847.978505265@goodmis.org

[-- Attachment #1: 0004-tracing-Add-entry-next_cpu-to-trace_ctxwake_bin.patch --]
[-- Type: text/plain, Size: 987 bytes --]

From: Jiang Liu <jiang.liu@huawei.com>

Function trace_ctxwake_bin() misses ctx_switch_entry->next_cpu field,
so user will get stale value for "next_cpu".

Link: http://lkml.kernel.org/p/1377176379-27908-1-git-send-email-liuj97@gmail.com

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 kernel/trace/trace_output.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index c6977d5a9b12..cfa91de22e27 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -976,6 +976,7 @@ static enum print_line_t trace_ctxwake_bin(struct trace_iterator *iter,
 	SEQ_PUT_FIELD_RET(s, field->prev_pid);
 	SEQ_PUT_FIELD_RET(s, field->prev_prio);
 	SEQ_PUT_FIELD_RET(s, field->prev_state);
+	SEQ_PUT_FIELD_RET(s, field->next_cpu);
 	SEQ_PUT_FIELD_RET(s, field->next_pid);
 	SEQ_PUT_FIELD_RET(s, field->next_prio);
 	SEQ_PUT_FIELD_RET(s, field->next_state);
-- 
2.1.1



      parent reply	other threads:[~2014-11-04 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 13:48 [for-next][PATCH 0/4] tracing: Some clean ups to the code Steven Rostedt
2014-11-04 13:48 ` [for-next][PATCH 1/4] tracing: Kill tracing_{start,stop}_sched_switch_record() and tracing_sched_switch_assign_trace() Steven Rostedt
2014-11-04 13:48 ` [for-next][PATCH 2/4] tracing: Kill the dead code in probe_sched_switch() and probe_sched_wakeup() Steven Rostedt
2014-11-04 13:48 ` [for-next][PATCH 3/4] tracing: Move tracing_sched_{switch,wakeup}() into wakeup tracer Steven Rostedt
2014-11-04 13:48 ` Steven Rostedt [this message]

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=20141104134916.450863338@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=jiang.liu@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    /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