diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-03 10:22:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-03 10:22:02 -0400 |
commit | 00fc97863c21c41e257a941e83410c56341e2a5d (patch) | |
tree | 60c88b6e7de401734281257a8c5b33c24878b762 /tools/perf/util/trace-event-parse.c | |
parent | 2e01d1791168bb824226d8cc70e50374767dcc42 (diff) |
perf trace: Print out in nanoseconds
Print out more accurate timestamps - usecs does not cut it
anymore on fast enough boxes ;-)
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 37b10c2cd3c9..629e602d9405 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -2708,9 +2708,9 @@ void print_event(int cpu, void *data, int size, unsigned long long nsecs, | |||
2708 | return pretty_print_func_graph(data, size, event, cpu, | 2708 | return pretty_print_func_graph(data, size, event, cpu, |
2709 | pid, comm, secs, usecs); | 2709 | pid, comm, secs, usecs); |
2710 | 2710 | ||
2711 | printf("%16s-%-5d [%03d] %5lu.%06lu: %s: ", | 2711 | printf("%16s-%-5d [%03d] %5lu.%09Lu: %s: ", |
2712 | comm, pid, cpu, | 2712 | comm, pid, cpu, |
2713 | secs, usecs, event->name); | 2713 | secs, nsecs, event->name); |
2714 | 2714 | ||
2715 | pretty_print(data, size, event); | 2715 | pretty_print(data, size, event); |
2716 | printf("\n"); | 2716 | printf("\n"); |