aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2019-10-22 04:31:19 +0000
committerDaniel Borkmann <[email protected]>2019-10-22 19:13:39 +0000
commite13a2fe642bd4a42c2b468cdb25ad3aab933d572 (patch)
tree4bbecfc207dfe37a1d5afebb2ee282e9ef654c50 /tools/bpf/bpftool/prog.c
parentMerge branch 'bpf-libbpf-cleanups' (diff)
downloadkernel-e13a2fe642bd4a42c2b468cdb25ad3aab933d572.tar.gz
kernel-e13a2fe642bd4a42c2b468cdb25ad3aab933d572.zip
tools/bpf: Turn on llvm alu32 attribute by default
LLVM alu32 was introduced in LLVM7: https://reviews.llvm.org/rL325987 https://reviews.llvm.org/rL325989 Experiments showed that in general performance is better with alu32 enabled: https://lwn.net/Articles/775316/ This patch turns on alu32 with no-flavor test_progs which is tested most often. The flavor test at no_alu32/test_progs can be used to test without alu32 enabled. The Makefile check for whether LLVM supports '-mattr=+alu32 -mcpu=v3' is removed as LLVM7 should be available for recent distributions and also latest LLVM is preferred to run BPF selftests. Note that jmp32 is checked by -mcpu=probe and will be enabled if the host kernel supports it. Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions