public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 00/10] Local vmtest enhancement and RV64 enabled
@ 2024-09-04 14:19 Pu Lehui
  2024-09-04 14:19 ` [PATCH bpf-next v2 01/10] selftests/bpf: Adapt OUTPUT appending logic to lower versions of Make Pu Lehui
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Pu Lehui @ 2024-09-04 14:19 UTC (permalink / raw)
  To: bpf, linux-riscv, netdev
  Cc: Andrii Nakryiko, Eduard Zingerman, Mykola Lysenko,
	Björn Töpel, Puranjay Mohan, Alexei Starovoitov,
	Daniel Borkmann, Martin KaFai Lau, Song Liu, Yonghong Song,
	John Fastabend, KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	Palmer Dabbelt, Pu Lehui

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] [1]. And since the work of riscv
ftrace to remove stop_machine atomic replacement is in progress, we also
need to revert commit [2] [3].

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 [4])

Link: https://lore.kernel.org/all/20240831071520.1630360-1-pulehui@huaweicloud.com/ [0]
Link: https://lore.kernel.org/all/20240831041934.1629216-1-pulehui@huaweicloud.com/ [1]
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3308172276db [2]
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7caa9765465f [3]
Link: https://github.com/libbpf/ci/blob/main/rootfs/mkrootfs_debian.sh [4]

v2:
- Drop patch about relaxing Zbb insns restrictions.
- Add local rootfs image support
- Add description about running vmtest on RV64 
- Fix some problem about bpf selftests

v1: https://lore.kernel.org/all/20240328124916.293173-1-pulehui@huaweicloud.com/

Pu Lehui (10):
  selftests/bpf: Adapt OUTPUT appending logic to lower versions of Make
  selftests/bpf: Rename fallback in bpf_dctcp to avoid naming conflict
  selftests/bpf: Disable feature-llvm for vmtest
  selftests/bpf: Limit URLS parsing logic to actual scope in vmtest
  selftests/bpf: Support local rootfs image for vmtest
  selftests/bpf: Enable cross platform testing for vmtest
  selftests/bpf: Add config.riscv64
  selftests/bpf: Add DENYLIST.riscv64
  selftests/bpf: Add riscv64 configurations to local vmtest
  selftests/bpf: Add description for running vmtest on RV64

 tools/testing/selftests/bpf/DENYLIST.riscv64  |   3 +
 tools/testing/selftests/bpf/Makefile          |   8 ++
 tools/testing/selftests/bpf/README.rst        |  32 ++++-
 tools/testing/selftests/bpf/config.riscv64    |  84 ++++++++++++++
 .../selftests/bpf/prog_tests/bpf_tcp_ca.c     |   2 +-
 tools/testing/selftests/bpf/progs/bpf_dctcp.c |   8 +-
 tools/testing/selftests/bpf/vmtest.sh         | 109 ++++++++++++------
 7 files changed, 205 insertions(+), 41 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/DENYLIST.riscv64
 create mode 100644 tools/testing/selftests/bpf/config.riscv64

-- 
2.34.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-09-05  8:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 14:19 [PATCH bpf-next v2 00/10] Local vmtest enhancement and RV64 enabled Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 01/10] selftests/bpf: Adapt OUTPUT appending logic to lower versions of Make Pu Lehui
2024-09-04 18:49   ` Andrii Nakryiko
2024-09-04 19:29     ` Eduard Zingerman
2024-09-04 14:19 ` [PATCH bpf-next v2 02/10] selftests/bpf: Rename fallback in bpf_dctcp to avoid naming conflict Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 03/10] selftests/bpf: Disable feature-llvm for vmtest Pu Lehui
2024-09-04 19:37   ` Eduard Zingerman
2024-09-04 23:08     ` Eduard Zingerman
2024-09-05  8:36       ` Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 04/10] selftests/bpf: Limit URLS parsing logic to actual scope in vmtest Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 05/10] selftests/bpf: Support local rootfs image for vmtest Pu Lehui
2024-09-04 21:40   ` Eduard Zingerman
2024-09-04 14:19 ` [PATCH bpf-next v2 06/10] selftests/bpf: Enable cross platform testing " Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 07/10] selftests/bpf: Add config.riscv64 Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 08/10] selftests/bpf: Add DENYLIST.riscv64 Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 09/10] selftests/bpf: Add riscv64 configurations to local vmtest Pu Lehui
2024-09-04 14:19 ` [PATCH bpf-next v2 10/10] selftests/bpf: Add description for running vmtest on RV64 Pu Lehui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox