* [PATCH] tracing: store entry->next_cpu to trace records in trace_ctxwake_bin()
@ 2013-08-22 12:59 Jiang Liu
0 siblings, 0 replies; only message in thread
From: Jiang Liu @ 2013-08-22 12:59 UTC (permalink / raw)
To: Steven Rostedt
Cc: liuj97, Jiang Liu, Frederic Weisbecker, Ingo Molnar, linux-kernel
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".
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel@vger.kernel.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 34e7cba..201eb76 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -1157,6 +1157,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);
--
1.8.1.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-22 13:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-22 12:59 [PATCH] tracing: store entry->next_cpu to trace records in trace_ctxwake_bin() Jiang Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).