Skip to contentSkip to conversation

perf trace: Print out in nanoseconds

tip:perfcounters/core tip-bot for Ingo Molnar 1 participant 1 message Sep 3, 2009 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  00fc97863c21c41e257a941e83410c56341e2a5d
Gitweb:     http://git.kernel.org/tip/00fc97863c21c41e257a941e83410c56341e2a5d
Author:     Ingo Molnar <[email protected]>
AuthorDate: Thu, 3 Sep 2009 16:22:02 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 3 Sep 2009 16:22:02 +0200

perf trace: Print out in nanoseconds

Print out more accurate timestamps - usecs does not cut it anymore on fast enough boxes ;-)

Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/util/trace-event-parse.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/util/trace-event-parse.c +2 -2
index 37b10c2..629e602 100644
@@ -2708,9 +2708,9 @@ void print_event(int cpu, void *data, int size, unsigned long long nsecs,
 		return pretty_print_func_graph(data, size, event, cpu,
 					       pid, comm, secs, usecs);
 
-	printf("%16s-%-5d [%03d] %5lu.%06lu: %s: ",
+	printf("%16s-%-5d [%03d] %5lu.%09Lu: %s: ",
 	       comm, pid,  cpu,
-	       secs, usecs, event->name);
+	       secs, nsecs, event->name);
 
 	pretty_print(data, size, event);
 	printf("\n");