[PATCH v2 0/4] Add VG register attr test with kernel version and feature detection

From: James Clark
Date: Tue Dec 13 2022 - 06:50:31 EST


I didn't get any feedback on the RFC version of this that I posted a
while back [1]. I'd still like to add the test, especially now that
6.1 has been released with this new feature, so I've rebased it onto
perf/core and double checked that it's still working.

Applies to perf/core (0c3852adae83)

Thanks
James

[1]: https://lore.kernel.org/bpf/20220927154104.869029-1-james.clark@xxxxxxx/

James Clark (4):
perf test: Add ability to test exit code for attr tests
perf test: Add mechanism for skipping attr tests on auxiliary vector
values
perf test: Add mechanism for skipping attr tests on kernel versions
perf test arm64: Add attr tests for new VG register

tools/perf/tests/attr.py | 71 +++++++++++++++++--
.../attr/test-record-user-regs-no-sve-aarch64 | 9 +++
.../test-record-user-regs-old-sve-aarch64 | 10 +++
.../attr/test-record-user-regs-sve-aarch64 | 14 ++++
4 files changed, 99 insertions(+), 5 deletions(-)
create mode 100644 tools/perf/tests/attr/test-record-user-regs-no-sve-aarch64
create mode 100644 tools/perf/tests/attr/test-record-user-regs-old-sve-aarch64
create mode 100644 tools/perf/tests/attr/test-record-user-regs-sve-aarch64

--
2.25.1