diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-05-12 15:20:44 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:40:22 -0400 |
commit | 57f50be14d57b0dbf88dd019e7bb0ff3a3dc7b81 (patch) | |
tree | 57db7ed24d430736c6e106d6119ff80e8169286f /kernel/trace/trace.c | |
parent | 89b2f97819dd074297bbe3e19eaa4afcc98845ad (diff) |
ftrace: fix max latency
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 95966561ba3d..9bad2379115a 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -69,6 +69,11 @@ static int __init set_nr_entries(char *str) | |||
69 | } | 69 | } |
70 | __setup("trace_entries=", set_nr_entries); | 70 | __setup("trace_entries=", set_nr_entries); |
71 | 71 | ||
72 | unsigned long nsecs_to_usecs(unsigned long nsecs) | ||
73 | { | ||
74 | return nsecs / 1000; | ||
75 | } | ||
76 | |||
72 | enum trace_type { | 77 | enum trace_type { |
73 | __TRACE_FIRST_TYPE = 0, | 78 | __TRACE_FIRST_TYPE = 0, |
74 | 79 | ||
@@ -733,7 +738,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter) | |||
733 | "---------------------------------\n"); | 738 | "---------------------------------\n"); |
734 | seq_printf(m, " latency: %lu us, #%lu/%lu, CPU#%d |" | 739 | seq_printf(m, " latency: %lu us, #%lu/%lu, CPU#%d |" |
735 | " (M:%s VP:%d, KP:%d, SP:%d HP:%d", | 740 | " (M:%s VP:%d, KP:%d, SP:%d HP:%d", |
736 | data->saved_latency, | 741 | nsecs_to_usecs(data->saved_latency), |
737 | entries, | 742 | entries, |
738 | total, | 743 | total, |
739 | tr->cpu, | 744 | tr->cpu, |
@@ -771,11 +776,6 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter) | |||
771 | seq_puts(m, "\n"); | 776 | seq_puts(m, "\n"); |
772 | } | 777 | } |
773 | 778 | ||
774 | unsigned long nsecs_to_usecs(unsigned long nsecs) | ||
775 | { | ||
776 | return nsecs / 1000; | ||
777 | } | ||
778 | |||
779 | static void notrace | 779 | static void notrace |
780 | lat_print_generic(struct seq_file *m, struct trace_entry *entry, int cpu) | 780 | lat_print_generic(struct seq_file *m, struct trace_entry *entry, int cpu) |
781 | { | 781 | { |