perf vendor events: Support metric_group and no event name in JSON parser
authorAndi Kleen <ak@linux.intel.com>
Thu, 31 Aug 2017 19:40:27 +0000 (12:40 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Sep 2017 12:49:12 +0000 (09:49 -0300)
commit3ba36d3620d08be31f5ee9ae20abb9bf3bdeb05a
treef5f1ea8ca03cbb4a50121336aabf92aed74dd17c
parent5a5dfe4b8548d806bf433090995ee0ee4c139f11
perf vendor events: Support metric_group and no event name in JSON parser

Some enhancements to the JSON parser to prepare for metrics support

- Parse the new MetricGroup field
- Support JSON events with no event name, that have only MetricName.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170831194036.30146-3-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