Commit 9440ebdc authored by James Clark's avatar James Clark Committed by Arnaldo Carvalho de Melo

perf test arm64: Add attr tests for new VG register

Ensure that the availability of the VG register behaves as expected
depending on the kernel version and SVE support.
Signed-off-by: default avatarJames Clark <james.clark@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20221213114739.2312862-5-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent ee26adf6
# Test that asking for VG fails if the system doesn't support SVE. This
# applies both before and after the feature was added in 6.1
[config]
command = record
args = --no-bpf-event --user-regs=vg kill >/dev/null 2>&1
ret = 129
test_ret = true
arch = aarch64
auxv = auxv["AT_HWCAP"] & 0x200000 == 0
# Test that asking for VG always fails on old kernels because it was
# added in 6.1. This applies to systems that either support or don't
# support SVE.
[config]
command = record
args = --no-bpf-event --user-regs=vg kill >/dev/null 2>&1
ret = 129
test_ret = true
arch = aarch64
kernel_until = 6.1
# Test that asking for VG works if the system has SVE and after the
# feature was added in 6.1
[config]
command = record
args = --no-bpf-event --user-regs=vg kill >/dev/null 2>&1
ret = 1
test_ret = true
arch = aarch64
auxv = auxv["AT_HWCAP"] & 0x200000 == 0x200000
kernel_since = 6.1
[event:base-record]
sample_type=4359
sample_regs_user=70368744177664
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment