mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
ftrace: fix max latency
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
89b2f97819
commit
57f50be14d
1 changed files with 6 additions and 6 deletions
|
@ -69,6 +69,11 @@ static int __init set_nr_entries(char *str)
|
|||
}
|
||||
__setup("trace_entries=", set_nr_entries);
|
||||
|
||||
unsigned long nsecs_to_usecs(unsigned long nsecs)
|
||||
{
|
||||
return nsecs / 1000;
|
||||
}
|
||||
|
||||
enum trace_type {
|
||||
__TRACE_FIRST_TYPE = 0,
|
||||
|
||||
|
@ -733,7 +738,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
|
|||
"---------------------------------\n");
|
||||
seq_printf(m, " latency: %lu us, #%lu/%lu, CPU#%d |"
|
||||
" (M:%s VP:%d, KP:%d, SP:%d HP:%d",
|
||||
data->saved_latency,
|
||||
nsecs_to_usecs(data->saved_latency),
|
||||
entries,
|
||||
total,
|
||||
tr->cpu,
|
||||
|
@ -771,11 +776,6 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
|
|||
seq_puts(m, "\n");
|
||||
}
|
||||
|
||||
unsigned long nsecs_to_usecs(unsigned long nsecs)
|
||||
{
|
||||
return nsecs / 1000;
|
||||
}
|
||||
|
||||
static void notrace
|
||||
lat_print_generic(struct seq_file *m, struct trace_entry *entry, int cpu)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue