Skip to content

Add support for aarch64 to selftests/bpf/vmtest.sh

Manu Bretelle bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4selftests/bpf: Remove entries from config.s390x already present in configtools/testing/selftests/bpf/config.s390x+0 -30 repliesApplied
2/4selftests/bpf: Add config.aarch64tools/testing/selftests/bpf/config.aarch64+181 -00 repliesApplied
3/4selftests/bpf: Update vmtests.sh to support aarch64tools/testing/selftests/bpf/vmtest.sh+6 -00 repliesApplied
4/4selftests/bpf: Initial DENYLIST for aarch64tools/testing/selftests/bpf/DENYLIST.aarch64+81 -01 replyApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] Add support for aarch64 to selftests/bpf/vmtest.sh

This patchset adds initial support for running BPF's vmtest on aarch64 architecture.
It includes a config.aarch64 heavily based on config.s390x Makes vmtest.sh handle aarch64 and set QEMU variables to values that works on that arch.
Finally, it provides a DENYLIST.aarch64 that takes care of currently broken tests on aarch64 so the vmtest run passes.

This was tested by running:

LLVM_STRIP=llvm-strip-16 CLANG=clang-16 \
    tools/testing/selftests/bpf/vmtest.sh  -- \
        ./test_progs -d \
            \"$(cat tools/testing/selftests/bpf/DENYLIST{,.aarch64} \
                | cut -d'#' -f1 \
                | sed -e 's/^[[:space:]]*//' \
                      -e 's/[[:space:]]*$//' \
                | tr -s '\n' ','\
            )\"

on an aarch64 host.

Manu Bretelle (4):
selftests/bpf: Remove entries from config.s390x already present in
config
selftests/bpf: Add config.aarch64
selftests/bpf: Update vmtests.sh to support aarch64 selftests/bpf: Initial DENYLIST for aarch64

 tools/testing/selftests/bpf/DENYLIST.aarch64 |  81 +++++++++
 tools/testing/selftests/bpf/config.aarch64   | 181 +++++++++++++++++++
 tools/testing/selftests/bpf/config.s390x     |   3 -
 tools/testing/selftests/bpf/vmtest.sh        |   6 +
 4 files changed, 268 insertions(+), 3 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/DENYLIST.aarch64
 create mode 100644 tools/testing/selftests/bpf/config.aarch64
Signature · 1 line
2.30.2