summaryrefslogtreecommitdiff
path: root/tools/perf/pmu-events/pmu-events.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/pmu-events.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/pmu-events.h')
-rw-r--r--tools/perf/pmu-events/pmu-events.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/pmu-events/pmu-events.h b/tools/perf/pmu-events/pmu-events.h
index caeb577d36c9..53e76d5d5b37 100644
--- a/tools/perf/pmu-events/pmu-events.h
+++ b/tools/perf/pmu-events/pmu-events.h
@@ -18,6 +18,7 @@ struct pmu_event {
const char *metric_name;
const char *metric_group;
const char *deprecated;
+ const char *metric_constraint;
};
/*