[RFC 00/14] perf tests: Check on subtest for user specified test
From: Jiri Olsa
Date: Sun May 24 2020 - 18:43:05 EST
hi,
changes for using metric result in another metric seem
to change lot of core metric code, so it's better we
have some more tests before we do that.
Sending as RFC as it's still alive and you guys might
have some other idea of how to do this.
Also available in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
jirka
---
Jiri Olsa (14):
perf tests: Check on subtest for user specified test
perf tools: Do not pass avg to generic_metric
perf tools: Add struct parse_events_state pointer to scanner
perf tools: Add fake pmu support
perf tools: Add parse_events_fake interface
perf tests: Add another pmu-events tests
perf tools: Factor out parse_groups function
perf tools: Add metricgroup__parse_groups_test function
perf tools: Add fake_pmu to parse_events function
perf tools: Add map to parse_events function
perf tools: Factor out prepare_metric function
perf tools: Add test_generic_metric function
perf tests: Add parse metric test for ipc metric
perf tests: Add parse metric test for frontend metric
tools/perf/tests/Build | 1 +
tools/perf/tests/builtin-test.c | 38 ++++++++++++++++++++++------
tools/perf/tests/parse-metric.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/tests/pmu-events.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/tests/tests.h | 1 +
tools/perf/util/metricgroup.c | 53 ++++++++++++++++++++++++++++++---------
tools/perf/util/metricgroup.h | 9 +++++++
tools/perf/util/parse-events.c | 73 ++++++++++++++++++++++++++++++++++++++---------------
tools/perf/util/parse-events.h | 6 ++++-
tools/perf/util/parse-events.l | 16 +++++++-----
tools/perf/util/parse-events.y | 37 +++++++++++++++++++++++++--
tools/perf/util/stat-shadow.c | 77 ++++++++++++++++++++++++++++++++++++--------------------
tools/perf/util/stat.h | 3 +++
13 files changed, 521 insertions(+), 76 deletions(-)
create mode 100644 tools/perf/tests/parse-metric.c