Skip to content

Various RISC-V BPF improvements

Björn Töpel bpf linux-riscv netdev 2 versions 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 · linked by author and title

  1. v2 Latest4 patches 0 repliesApplied 4/4
  2. v14 patches 1 replySuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4riscv, bpf: Increase the maximum number of iterationsarch/riscv/net/bpf_jit_core.c+1 -10 repliesApplied
2/4tools build: Add RISC-V to HOSTARCH parsingtools/scripts/Makefile.arch+2 -10 repliesApplied
3/4riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.htools/lib/bpf/bpf_tracing.h+32 -00 repliesApplied
4/4selftests/bpf: Fix broken riscv buildtools/testing/selftests/bpf/Makefile+1 -10 repliesApplied

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/4] Various RISC-V BPF improvements

Unfortunately selftest/bpf does not build for RV64. This series fixes that.

* JIT requires more iterations to converge
* Some Makefile issues
* bpf_tracing.h was missing RISC-V macros for PT_REGS

More details are in each commit.

There are still many failing tests, but this is a start.

Cheers,
Björn

v1->v2: A newline sneaked into the Makefile for patch 4, which broke the build. Removed.

Björn Töpel (4):
riscv, bpf: Increase the maximum number of iterations tools build: Add RISC-V to HOSTARCH parsing riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.h selftests/bpf: Fix broken riscv build

 arch/riscv/net/bpf_jit_core.c        |  2 +-
 tools/lib/bpf/bpf_tracing.h          | 32 ++++++++++++++++++++++++++++
 tools/scripts/Makefile.arch          |  3 ++-
 tools/testing/selftests/bpf/Makefile |  2 +-
 4 files changed, 36 insertions(+), 3 deletions(-)

base-commit: b066abba3ef16a4a085d237e95da0de3f0b87713

Signature · 1 line
2.32.0