summaryrefslogtreecommitdiff
path: root/tools/perf/pmu-events/jevents.h
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2020-02-25 00:59:20 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-03-10 20:43:05 +0300
commit03fe02b113888576dc90c3e918d8e1a76b1ceb63 (patch)
tree342e74124cca5f1e750a9c106cd07e3f3d5570b0 /tools/perf/pmu-events/jevents.h
parente7950166e40271c025e0eec348cdf5c63ac734fa (diff)
downloadlinux-03fe02b113888576dc90c3e918d8e1a76b1ceb63.tar.xz
perf jevents: Support metric constraint
A new field "MetricConstraint" is introduced in JSON event list. Extend jevents to parse the field and save the value in metric_constraint. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Link: http://lore.kernel.org/lkml/1582581564-184429-2-git-send-email-kan.liang@linux.intel.com 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 5cda49a42143..2afc8304529e 100644
--- a/tools/perf/pmu-events/jevents.h
+++ b/tools/perf/pmu-events/jevents.h
@@ -8,7 +8,7 @@ int json_events(const char *fn,
char *pmu,
char *unit, char *perpkg, char *metric_expr,
char *metric_name, char *metric_group,
- char *deprecated),
+ char *deprecated, char *metric_constraint),
void *data);
char *get_cpu_str(void);