tracing: Add entry->next_cpu to trace_ctxwake_bin()
authorJiang Liu <jiang.liu@huawei.com>
Thu, 22 Aug 2013 12:59:39 +0000 (20:59 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 11 Nov 2014 17:43:34 +0000 (12:43 -0500)
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

index c6977d5a9b12c670e652489c1b2930ac637a0a10..cfa91de22e27438b529314a0455ceeacf4d8926c 100644 (file)
@@ -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);