summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorAndi Kleen2019-03-05 15:47:47 +0100
committerArnaldo Carvalho de Melo2019-03-11 15:56:02 +0100
commit52bab8868211b7c504146f6239e101421d4d125b (patch)
treef3941e210c94e1535604a5d53119f17fc34a2b64 /tools/perf/builtin-report.c
parentperf script: Support insn output for normal samples (diff)
downloadkernel-qcow2-linux-52bab8868211b7c504146f6239e101421d4d125b.tar.gz
kernel-qcow2-linux-52bab8868211b7c504146f6239e101421d4d125b.tar.xz
kernel-qcow2-linux-52bab8868211b7c504146f6239e101421d4d125b.zip
perf report: Support output in nanoseconds
Upcoming changes add timestamp output in perf report. Add a --ns argument similar to perf script to support nanoseconds resolution when needed. Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20190305144758.12397-5-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index ee93c18a6685..515864ba504a 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -1147,6 +1147,7 @@ int cmd_report(int argc, const char **argv)
OPT_CALLBACK(0, "percent-type", &report.annotation_opts, "local-period",
"Set percent type local/global-period/hits",
annotate_parse_percent_type),
+ OPT_BOOLEAN(0, "ns", &symbol_conf.nanosecs, "Show times in nanosecs"),
OPT_END()
};
struct perf_data data = {