BPF List
 help / color / mirror / Atom feed
From: "Björn Töpel" <bjorn@kernel.org>
To: Pu Lehui <pulehui@huaweicloud.com>,
	Daniel Borkmann <daniel@iogearbox.net>,
	bpf@vger.kernel.org, linux-riscv@lists.infradead.org,
	netdev@vger.kernel.org
Cc: Andrii Nakryiko <andrii@kernel.org>,
	Eduard Zingerman <eddyz87@gmail.com>,
	Mykola Lysenko <mykolal@fb.com>,
	Puranjay Mohan <puranjay@kernel.org>,
	Alexei Starovoitov <ast@kernel.org>,
	Martin KaFai Lau <martin.lau@linux.dev>,
	Song Liu <song@kernel.org>,
	Yonghong Song <yonghong.song@linux.dev>,
	John Fastabend <john.fastabend@gmail.com>,
	KP Singh <kpsingh@kernel.org>,
	Stanislav Fomichev <sdf@fomichev.me>, Hao Luo <haoluo@google.com>,
	Jiri Olsa <jolsa@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>,
	Pu Lehui <pulehui@huawei.com>
Subject: Re: [PATCH bpf-next v3 00/10] Local vmtest enhancement and RV64 enabled😁
Date: Fri, 06 Sep 2024 16:08:44 +0200	[thread overview]
Message-ID: <87bk10g9hv.fsf@all.your.base.are.belong.to.us> (raw)
In-Reply-To: <540dd7eb-1099-4c38-8004-1cb556b0b9be@huaweicloud.com>

Lehui, Daniel!

Pu Lehui <pulehui@huaweicloud.com> writes:

> On 2024/9/6 2:52, Daniel Borkmann wrote:
>> On 9/5/24 10:13 AM, Pu Lehui wrote:
>>> Patch 1-3 fix some problem about bpf selftests. Patch 4 add local rootfs
>>> image support for vmtest. Patch 5 enable cross-platform testing for
>>> vmtest. Patch 6-10 enable vmtest on RV64.
>>>
>>> We can now perform cross platform testing for riscv64 bpf using the
>>> following command:
>>>
>>> PLATFORM=riscv64 CROSS_COMPILE=riscv64-linux-gnu- \
>>>    tools/testing/selftests/bpf/vmtest.sh \
>>>    -l <path of local rootfs image> -- \
>>>    ./test_progs -d \
>>>        \"$(cat tools/testing/selftests/bpf/DENYLIST.riscv64 \
>>>            | cut -d'#' -f1 \
>>>            | sed -e 's/^[[:space:]]*//' \
>>>                  -e 's/[[:space:]]*$//' \
>>>            | tr -s '\n' ',' \
>>>        )\"
>>>
>>> For better regression, we rely on commit [0]. And since the work of riscv
>>> ftrace to remove stop_machine atomic replacement is in progress, we also
>>> need to revert commit [1] [2].
>>>
>>> The test platform is x86_64 architecture, and the versions of relevant
>>> components are as follows:
>>>      QEMU: 8.2.0
>>>      CLANG: 17.0.6 (align to BPF CI)
>>>      ROOTFS: ubuntu noble (generated by [3])
>>>
>>> Link: 
>>> https://lore.kernel.org/all/20240831071520.1630360-1-pulehui@huaweicloud.com/ [0]
>>> Link: 
>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3308172276db [1]
>>> Link: 
>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7caa9765465f [2]
>>> Link: https://github.com/libbpf/ci/blob/main/rootfs/mkrootfs_debian.sh 
>>> [3]
>> 
>> Nice work! Next step is upstream BPF CI integration? :)
>
> CC Björn😁

Indeed, very nice work! Every year is "The year of RISC-V BPF CI
integration". :-P

> Yeah, that's what we're most looking forward to and we've been trying to 
> move forward with that. There are currently several options, but they 
> are not very suitable yet.
>
> 1. Cross-platform testing with subset of tests (test_verifier + 
> test_progs), it will cost a bit more time.
>
> x86_64 host:
> Summary: 536/3594 PASSED, 68 SKIPPED, 0 FAILED
> real    30m 18.88s
> user    6m 52.97s
> sys     21m 3.03s
>
> 2. Cross-platform testing will parallel mode, it will meet flaky 
> problems while the time consume looks good.
>
> x86_64 host:
> real    7m 45.42s
> user    6m 13.59s
> sys     15m 41.12s
>
> 3. Real board testing, which relies on Hypervisor Extension to enable 
> kvm on qemu. We are still trying to find a suitable board.

There's a board coming out soonish with H -- let's hope it doesn't suck!
;-)

I have a CI running, that's runs all the BPF tests (and the rest of
kselftest) on various trees/branches, and it takes *hours* on QEMU TCG
[1] (the GH CI doesn't report fail/ok in the UI, so you need to download
the logs [2] -- filename *kselftest-bpf*).

Obviously this is a no-go for pre-commit/patchwork CI, but for, say,
a longer release test (post-commit), spending a couple of hours on a
test would probably be OK.

If there's a post-commit CI running somewhere, maybe we could plug in
RISC-V BPF QEMU TCG tests there? ...and then when we get proper H
machines, we can add RISC-V to Meta's PW CI as well.

Daniel, is there a "release test CI" running, or is that mostly manual
work?

Björn


[1] https://github.com/linux-riscv/linux-riscv/actions/runs/10725237865/job/29742632222#step:5:30
[2] https://github.com/linux-riscv/linux-riscv/actions/runs/10725237865/artifacts/1899421897

  reply	other threads:[~2024-09-06 14:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-05  8:13 [PATCH bpf-next v3 00/10] Local vmtest enhancement and RV64 enabled Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 01/10] selftests/bpf: Adapt OUTPUT appending logic to lower versions of Make Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 02/10] selftests/bpf: Rename fallback in bpf_dctcp to avoid naming conflict Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 03/10] selftests/bpf: Prefer static linking for LLVM libraries Pu Lehui
2024-09-05 15:29   ` Daniel Borkmann
2024-09-05  8:13 ` [PATCH bpf-next v3 04/10] selftests/bpf: Limit URLS parsing logic to actual scope in vmtest Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 05/10] selftests/bpf: Support local rootfs image for vmtest Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 06/10] selftests/bpf: Enable cross platform testing " Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 07/10] selftests/bpf: Add config.riscv64 Pu Lehui
2024-09-05  8:13 ` [PATCH bpf-next v3 08/10] selftests/bpf: Add DENYLIST.riscv64 Pu Lehui
2024-09-05  8:14 ` [PATCH bpf-next v3 09/10] selftests/bpf: Add riscv64 configurations to local vmtest Pu Lehui
2024-09-05  8:14 ` [PATCH bpf-next v3 10/10] selftests/bpf: Add description for running vmtest on RV64 Pu Lehui
2024-09-05 18:52 ` [PATCH bpf-next v3 00/10] Local vmtest enhancement and RV64 enabled Daniel Borkmann
2024-09-06  3:56   ` [PATCH bpf-next v3 00/10] Local vmtest enhancement and RV64 enabled😁 Pu Lehui
2024-09-06 14:08     ` Björn Töpel [this message]
2024-09-05 20:20 ` [PATCH bpf-next v3 00/10] Local vmtest enhancement and RV64 enabled 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=87bk10g9hv.fsf@all.your.base.are.belong.to.us \
    --to=bjorn@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=haoluo@google.com \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kpsingh@kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=martin.lau@linux.dev \
    --cc=mykolal@fb.com \
    --cc=netdev@vger.kernel.org \
    --cc=palmer@dabbelt.com \
    --cc=pulehui@huawei.com \
    --cc=pulehui@huaweicloud.com \
    --cc=puranjay@kernel.org \
    --cc=sdf@fomichev.me \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /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