diff options
author | Jiang Liu <jiang.liu@huawei.com> | 2013-08-22 20:59:39 +0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-11 12:43:34 -0500 |
commit | 26488b3723270880a28b542ff2276689506d6a9f (patch) | |
tree | 58d825123f06f41b3845f55bd578545b8fc1977a /kernel/trace/trace_output.c | |
parent | 243f7610a68a606eb1787c09450a440bf30bebe0 (diff) | |
download | linux-26488b3723270880a28b542ff2276689506d6a9f.tar.bz2 |
tracing: Add entry->next_cpu to trace_ctxwake_bin()
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>
Diffstat (limited to 'kernel/trace/trace_output.c')
-rw-r--r-- | kernel/trace/trace_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |