diff options
author | Luke Nelson <[email protected]> | 2020-05-05 17:03:18 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-05-06 09:48:15 +0200 |
commit | 21a099abb765c3754689e1f7ca4536fa560112d0 (patch) | |
tree | c6d2bc71c49617d48dd2d01a93821de4d6162349 /tools/perf/scripts/python/syscall-counts.py | |
parent | 0224b2acea0f9e3908d33e27b2dcb4e04686e997 (diff) |
bpf, riscv: Optimize FROM_LE using verifier_zext on RV64
This patch adds two optimizations for BPF_ALU BPF_END BPF_FROM_LE in
the RV64 BPF JIT.
First, it enables the verifier zero-extension optimization to avoid zero
extension when imm == 32. Second, it avoids generating code for imm ==
64, since it is equivalent to a no-op.
Co-developed-by: Xi Wang <[email protected]>
Signed-off-by: Xi Wang <[email protected]>
Signed-off-by: Luke Nelson <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Björn Töpel <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions