diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-08-31 12:40:27 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-09-13 09:49:12 -0300 |
commit | 3ba36d3620d08be31f5ee9ae20abb9bf3bdeb05a (patch) | |
tree | f5f1ea8ca03cbb4a50121336aabf92aed74dd17c /tools/perf/pmu-events/jevents.h | |
parent | 5a5dfe4b8548d806bf433090995ee0ee4c139f11 (diff) | |
download | linux-3ba36d3620d08be31f5ee9ae20abb9bf3bdeb05a.tar.bz2 |
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>
Diffstat (limited to 'tools/perf/pmu-events/jevents.h')
-rw-r--r-- | tools/perf/pmu-events/jevents.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/pmu-events/jevents.h b/tools/perf/pmu-events/jevents.h index 611fac01913d..557994754410 100644 --- a/tools/perf/pmu-events/jevents.h +++ b/tools/perf/pmu-events/jevents.h @@ -6,7 +6,7 @@ int json_events(const char *fn, char *long_desc, char *pmu, char *unit, char *perpkg, char *metric_expr, - char *metric_name), + char *metric_name, char *metric_group), void *data); char *get_cpu_str(void); |