OSDN Git Service

perf stat: Support duration_time for metrics
authorAndi Kleen <ak@linux.intel.com>
Thu, 31 Aug 2017 19:40:34 +0000 (12:40 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Sep 2017 12:49:14 +0000 (09:49 -0300)
commitfd48aad9b0f3f7654433dfae3a72ceda36e2de28
tree3d3a9de041b7c77a47233740b8858eb65a0229d5
parent4e1a096380e3b558ef021afc08e193ce5d1be478
perf stat: Support duration_time for metrics

Some of the metrics formulas (like GFLOPs) need to know how long the
measurement period is. Support an internal event called duration_time,
which reports time in second. It maps to the dummy event, but is special
cased for statistics to report the walltime duration.

So far it is not printed, but only used internally for metrics.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170831194036.30146-10-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.l
tools/perf/util/stat-shadow.c