diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-11-17 13:42:58 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-11-29 18:18:00 -0300 |
commit | bfd8f72c2778f5bd63dc9eb6d23bd7a0d99cff6d (patch) | |
tree | 9760c95da82cce9321d28fa0a509f8271203b1f9 /tools/perf/util/header.h | |
parent | 4ca69ca9db3ae51ac7cc0bd1af7961b7a3ba5b87 (diff) | |
download | lwn-bfd8f72c2778f5bd63dc9eb6d23bd7a0d99cff6d.tar.gz lwn-bfd8f72c2778f5bd63dc9eb6d23bd7a0d99cff6d.zip |
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>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 29ccbfdf8724..91befc3b550d 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h @@ -107,6 +107,11 @@ int perf_event__synthesize_features(struct perf_tool *tool, struct perf_evlist *evlist, perf_event__handler_t process); +int perf_event__synthesize_extra_attr(struct perf_tool *tool, + struct perf_evlist *evsel_list, + perf_event__handler_t process, + bool is_pipe); + int perf_event__process_feature(struct perf_tool *tool, union perf_event *event, struct perf_session *session); |