Skip to contentSkip to conversation

tracing: store entry->next_cpu to trace records in trace_ctxwake_bin()

PATCH New Jiang Liu 1 participant 1 message Aug 22, 2013 Tracing

lore
Share & tools
lore

Jiang Liu

author
#0 lore raw

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".

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
index 34e7cba..201eb76 100644
@@ -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