[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
From: Andrii Anisov <andrii_anisov@xxxxxxxx> Signed-off-by: Andrii Anisov <andrii_anisov@xxxxxxxx> --- tools/xentrace/xentrace_format | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/xentrace/xentrace_format b/tools/xentrace/xentrace_format index 5ff85ae..323d0c2 100644 --- a/tools/xentrace/xentrace_format +++ b/tools/xentrace/xentrace_format @@ -8,7 +8,11 @@ import re, sys, string, signal, struct, os, getopt def usage(): print >> sys.stderr, \ - "Usage: " + sys.argv[0] + """ defs-file + "Usage: " + sys.argv[0] + """ [-c mhz] defs-file + -c mhz optional time stamps values generator frequency in + MHz. If specified, timestamps are shown in ns, + otherwise in cycles. + Parses trace data in binary format, as output by Xentrace and reformats it according to the rules in a file of definitions. The rules in this file should have the format ({ and } show grouping @@ -223,7 +227,7 @@ while not interrupted: last_tsc[cpu] = tsc if mhz: - tsc = tsc / (mhz*1000000.0) + tsc = tsc * 1000.0 / mhz args = {'cpu' : cpu, 'tsc' : tsc, -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |