diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-03-20 23:17:07 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-03-23 17:42:29 +0300 |
commit | 00636c3b48e8acac2acd2601274c6eab4ecf8201 (patch) | |
tree | def464f6f5061f0238df4a77349db6785cadf34e /tools/perf/pmu-events/pmu-events.h | |
parent | b90b3e9c11050e09279d2b9a318189e155910b20 (diff) | |
download | linux-00636c3b48e8acac2acd2601274c6eab4ecf8201.tar.xz |
perf pmu: Support MetricExpr header in JSON event list
Add support for parsing the MetricExpr header in the JSON event lists
and storing them in the alias structure.
Used in the next patch.
v2: Change DividedBy to MetricExpr
v3: Really catch all uses of DividedBy
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170320201711.14142-10-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/pmu-events/pmu-events.h')
-rw-r--r-- | tools/perf/pmu-events/pmu-events.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/pmu-events/pmu-events.h b/tools/perf/pmu-events/pmu-events.h index c669a3cdb9f0..d046e3a4ce46 100644 --- a/tools/perf/pmu-events/pmu-events.h +++ b/tools/perf/pmu-events/pmu-events.h @@ -13,6 +13,7 @@ struct pmu_event { const char *pmu; const char *unit; const char *perpkg; + const char *metric_expr; }; /* |