}
__setup("trace_entries=", set_nr_entries);
+unsigned long nsecs_to_usecs(unsigned long nsecs)
+{
+ return nsecs / 1000;
+}
+
enum trace_type {
__TRACE_FIRST_TYPE = 0,
"---------------------------------\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,
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)
{