aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorXiao Wang <[email protected]>2024-05-24 15:55:43 +0800
committerDaniel Borkmann <[email protected]>2024-06-03 16:45:23 +0200
commit96a27ee76f0e95b56f94b6902da7a5ebef372612 (patch)
tree24657fa8ed9ffa3b3c22cfd1503a43d34b51bd27 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent531876c80004ecff7bfdbd8ba6c6b48835ef5e22 (diff)
riscv, bpf: Introduce shift add helper with Zba optimization
Zba extension is very useful for generating addresses that index into array of basic data types. This patch introduces sh2add and sh3add helpers for RV32 and RV64 respectively, to accelerate addressing for array of unsigned long data. Signed-off-by: Xiao Wang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions