tracing: store entry->next_cpu to trace records in trace_ctxwake_bin()
PATCH 1/1 tracing: store entry->next_cpu to trace records in trace_ctxwake_bin()
From: Jiang Liu <[email protected]>
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 <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
--- kernel/trace/trace_output.c | 1 + 1 file changed, 1 insertion(+)
kernel/trace/trace_output.c +1 -0
@@ -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);
Signature · 1 line
1.8.1.2