Commit 57f50be1 authored by Steven Rostedt's avatar Steven Rostedt Committed by Thomas Gleixner

ftrace: fix max latency

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 89b2f978
...@@ -69,6 +69,11 @@ static int __init set_nr_entries(char *str) ...@@ -69,6 +69,11 @@ static int __init set_nr_entries(char *str)
} }
__setup("trace_entries=", set_nr_entries); __setup("trace_entries=", set_nr_entries);
unsigned long nsecs_to_usecs(unsigned long nsecs)
{
return nsecs / 1000;
}
enum trace_type { enum trace_type {
__TRACE_FIRST_TYPE = 0, __TRACE_FIRST_TYPE = 0,
...@@ -733,7 +738,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter) ...@@ -733,7 +738,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
"---------------------------------\n"); "---------------------------------\n");
seq_printf(m, " latency: %lu us, #%lu/%lu, CPU#%d |" seq_printf(m, " latency: %lu us, #%lu/%lu, CPU#%d |"
" (M:%s VP:%d, KP:%d, SP:%d HP:%d", " (M:%s VP:%d, KP:%d, SP:%d HP:%d",
data->saved_latency, nsecs_to_usecs(data->saved_latency),
entries, entries,
total, total,
tr->cpu, tr->cpu,
...@@ -771,11 +776,6 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter) ...@@ -771,11 +776,6 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
seq_puts(m, "\n"); seq_puts(m, "\n");
} }
unsigned long nsecs_to_usecs(unsigned long nsecs)
{
return nsecs / 1000;
}
static void notrace static void notrace
lat_print_generic(struct seq_file *m, struct trace_entry *entry, int cpu) lat_print_generic(struct seq_file *m, struct trace_entry *entry, int cpu)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment