public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
From: Manu Bretelle <chantr4@gmail.com>
To: chantr4@gmail.com, bpf@vger.kernel.org, andrii@kernel.org,
	mykolal@fb.com, daniel@iogearbox.net, martin.lau@linux.dev,
	yhs@fb.com
Subject: [PATCH bpf-next 0/4] Add support for aarch64 to selftests/bpf/vmtest.sh
Date: Fri, 21 Oct 2022 14:06:57 -0700	[thread overview]
Message-ID: <20221021210701.728135-1-chantr4@gmail.com> (raw)

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

-- 
2.30.2


             reply	other threads:[~2022-10-21 21:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-21 21:06 Manu Bretelle [this message]
2022-10-21 21:06 ` [PATCH bpf-next 1/4] selftests/bpf: Remove entries from config.s390x already present in config Manu Bretelle
2022-10-21 21:06 ` [PATCH bpf-next 2/4] selftests/bpf: Add config.aarch64 Manu Bretelle
2022-10-21 21:07 ` [PATCH bpf-next 3/4] selftests/bpf: Update vmtests.sh to support aarch64 Manu Bretelle
2022-10-21 21:07 ` [PATCH bpf-next 4/4] selftests/bpf: Initial DENYLIST for aarch64 Manu Bretelle
2022-10-21 23:27   ` Andrii Nakryiko
2022-10-21 23:30 ` [PATCH bpf-next 0/4] Add support for aarch64 to selftests/bpf/vmtest.sh patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221021210701.728135-1-chantr4@gmail.com \
    --to=chantr4@gmail.com \
    --cc=andrii@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=martin.lau@linux.dev \
    --cc=mykolal@fb.com \
    --cc=yhs@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox