]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75dba39942ba5b722b78d37eab6c6a17feecfda6
tree9760c95da82cce9321d28fa0a509f8271203b1f9
parent891f12031ea326536e5d28a64ae125edf07b269f
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