Skip to content

bpf, arm: Small JIT optimizations

Luke Nelson bpf linux-arm-kernel lkml netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bpf, arm: Optimize ALU64 ARSH X using orrpl conditional instructionarch/arm/net/bpf_jit_32.c+2 -20 replies
2/2bpf, arm: Optimize ALU ARSH K using asr immediate instructionarch/arm/net/bpf_jit_32.c arch/arm/net/bpf_jit_32.h+10 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf 0/2] bpf, arm: Small JIT optimizations

As Daniel suggested to us, we ran our formal verification tool, Serval, over the arm JIT. The bugs we found have been patched and applied to the bpf tree [1, 2]. This patch series introduces two small optimizations that simplify the JIT and use fewer instructions.

[1] https://lore.kernel.org/bpf/[email protected]/
[2] https://lore.kernel.org/bpf/[email protected]/

Luke Nelson (2):
bpf, arm: Optimize emit_a32_arsh_r64 using conditional instruction bpf, arm: Optimize ALU ARSH K using asr immediate instruction

 arch/arm/net/bpf_jit_32.c | 14 +++++++++-----
 arch/arm/net/bpf_jit_32.h |  2 ++
 2 files changed, 11 insertions(+), 5 deletions(-)
Signature · 1 line
2.17.1