summaryrefslogtreecommitdiff
path: root/tools/perf/pmu-events/jevents.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2017-03-20 23:17:07 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-03-23 17:42:29 +0300
commit00636c3b48e8acac2acd2601274c6eab4ecf8201 (patch)
treedef464f6f5061f0238df4a77349db6785cadf34e /tools/perf/pmu-events/jevents.h
parentb90b3e9c11050e09279d2b9a318189e155910b20 (diff)
downloadlinux-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/jevents.h')
-rw-r--r--tools/perf/pmu-events/jevents.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/pmu-events/jevents.h b/tools/perf/pmu-events/jevents.h
index 71e13de31092..57e111bf2168 100644
--- a/tools/perf/pmu-events/jevents.h
+++ b/tools/perf/pmu-events/jevents.h
@@ -5,7 +5,7 @@ int json_events(const char *fn,
int (*func)(void *data, char *name, char *event, char *desc,
char *long_desc,
char *pmu,
- char *unit, char *perpkg),
+ char *unit, char *perpkg, char *metric_expr),
void *data);
char *get_cpu_str(void);