OSDN Git Service

perf record: Synthesize unit/scale/... in event update
authorAndi Kleen <ak@linux.intel.com>
Fri, 17 Nov 2017 21:42:58 +0000 (13:42 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Nov 2017 21:18:00 +0000 (18:18 -0300)
commitbfd8f72c2778f5bd63dc9eb6d23bd7a0d99cff6d
tree9760c95da82cce9321d28fa0a509f8271203b1f9
parent4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87
perf record: Synthesize unit/scale/... in event update

Move the code to synthesize event updates for scale/unit/cpus to a
common utility file, and use it both from stat and record.

This allows to access scale and other extra qualifiers from perf script.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20171117214300.32746-2-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-stat.c
tools/perf/util/header.c
tools/perf/util/header.h