diff options
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 3 | ||||
-rw-r--r-- | kernel/trace/trace.h | 2 | ||||
-rw-r--r-- | kernel/trace/trace_output.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a0174a40c563..457dd8c97e0d 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -147,8 +147,7 @@ static int __init set_ftrace_dump_on_oops(char *str) | |||
147 | } | 147 | } |
148 | __setup("ftrace_dump_on_oops", set_ftrace_dump_on_oops); | 148 | __setup("ftrace_dump_on_oops", set_ftrace_dump_on_oops); |
149 | 149 | ||
150 | long | 150 | unsigned long long ns2usecs(cycle_t nsec) |
151 | ns2usecs(cycle_t nsec) | ||
152 | { | 151 | { |
153 | nsec += 500; | 152 | nsec += 500; |
154 | do_div(nsec, 1000); | 153 | do_div(nsec, 1000); |
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index cb0ce3fc36d3..0d81a4a2a4a5 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -596,7 +596,7 @@ extern int trace_selftest_startup_branch(struct tracer *trace, | |||
596 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ | 596 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ |
597 | 597 | ||
598 | extern void *head_page(struct trace_array_cpu *data); | 598 | extern void *head_page(struct trace_array_cpu *data); |
599 | extern long ns2usecs(cycle_t nsec); | 599 | extern unsigned long long ns2usecs(cycle_t nsec); |
600 | extern int | 600 | extern int |
601 | trace_vbprintk(unsigned long ip, const char *fmt, va_list args); | 601 | trace_vbprintk(unsigned long ip, const char *fmt, va_list args); |
602 | extern int | 602 | extern int |
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index d72b9a63b247..64b54a59c55b 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c | |||
@@ -423,7 +423,7 @@ int trace_print_lat_context(struct trace_iterator *iter) | |||
423 | 423 | ||
424 | trace_find_cmdline(entry->pid, comm); | 424 | trace_find_cmdline(entry->pid, comm); |
425 | 425 | ||
426 | ret = trace_seq_printf(s, "%16s %5d %3d %d %08x %08lx [%08lx]" | 426 | ret = trace_seq_printf(s, "%16s %5d %3d %d %08x %08lx [%08llx]" |
427 | " %ld.%03ldms (+%ld.%03ldms): ", comm, | 427 | " %ld.%03ldms (+%ld.%03ldms): ", comm, |
428 | entry->pid, iter->cpu, entry->flags, | 428 | entry->pid, iter->cpu, entry->flags, |
429 | entry->preempt_count, iter->idx, | 429 | entry->preempt_count, iter->idx, |