]> asedeno.scripts.mit.edu Git - linux.git/commit
perf pmu: Support MetricExpr header in JSON event list
authorAndi Kleen <ak@linux.intel.com>
Mon, 20 Mar 2017 20:17:07 +0000 (13:17 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Mar 2017 14:42:29 +0000 (11:42 -0300)
commit00636c3b48e8acac2acd2601274c6eab4ecf8201
treedef464f6f5061f0238df4a77349db6785cadf34e
parentb90b3e9c11050e09279d2b9a318189e155910b20
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>
tools/perf/pmu-events/jevents.c
tools/perf/pmu-events/jevents.h
tools/perf/pmu-events/pmu-events.h
tools/perf/util/pmu.c
tools/perf/util/pmu.h