aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2022-10-19 23:53:51 +0000
committerAlexei Starovoitov <[email protected]>2022-10-19 23:53:51 +0000
commit04a8f9d7c09d04ba39e84611adfe6f48e30353c3 (patch)
tree3de533d16556810b08caba926d43effd89c62a45 /tools/bpf/bpftool/prog.c
parentMerge branch 'libbpf: support non-mmap()'able data sections' (diff)
parentbpf: add selftests for lsh, rsh, arsh with reg operand (diff)
downloadkernel-04a8f9d7c09d04ba39e84611adfe6f48e30353c3.tar.gz
kernel-04a8f9d7c09d04ba39e84611adfe6f48e30353c3.zip
Merge branch 'bpf,x64: Use BMI2 for shifts'
Jie Meng says: ==================== With baseline x64 instruction set, shift count can only be an immediate or in %cl. The implicit dependency on %cl makes it necessary to shuffle registers around and/or add push/pop operations. BMI2 provides shift instructions that can use any general register as the shift count, saving us instructions and a few bytes in most cases. Suboptimal codegen when %ecx is source and/or destination is also addressed and unnecessary instructions are removed. test_progs: Summary: 267/1340 PASSED, 25 SKIPPED, 0 FAILED test_progs-no_alu32: Summary: 267/1333 PASSED, 26 SKIPPED, 0 FAILED test_verifier: Summary: 1367 PASSED, 636 SKIPPED, 0 FAILED (same result with or without BMI2) test_maps: OK, 0 SKIPPED lib/test_bpf: test_bpf: Summary: 1026 PASSED, 0 FAILED, [1014/1014 JIT'ed] test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed] test_bpf: test_skb_segment: Summary: 2 PASSED, 0 FAILED --- v4 -> v5: - More comments regarding instruction encoding v3 -> v4: - Fixed a regression when BMI2 isn't available ==================== Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions