tracing: fix transposed numbers of lock_depth and preempt_count
The lock_depth and preempt_count numbers in the latency format is transposed. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt
parent
b0f56f1a63
commit
829b876dfc
@@ -486,16 +486,18 @@ int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry)
|
|||||||
hardirq ? 'h' : softirq ? 's' : '.'))
|
hardirq ? 'h' : softirq ? 's' : '.'))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (entry->lock_depth < 0)
|
if (entry->preempt_count)
|
||||||
ret = trace_seq_putc(s, '.');
|
ret = trace_seq_printf(s, "%x", entry->preempt_count);
|
||||||
else
|
else
|
||||||
ret = trace_seq_printf(s, "%d", entry->lock_depth);
|
ret = trace_seq_putc(s, '.');
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (entry->preempt_count)
|
if (entry->lock_depth < 0)
|
||||||
return trace_seq_printf(s, "%x", entry->preempt_count);
|
|
||||||
return trace_seq_putc(s, '.');
|
return trace_seq_putc(s, '.');
|
||||||
|
|
||||||
|
return trace_seq_printf(s, "%d", entry->lock_depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Reference in New Issue
Block a user