summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_loader.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2024-03-08 04:08:09 +0300
committerAndrii Nakryiko <andrii@kernel.org>2024-03-12 01:43:42 +0300
commit204c628730c62de5a0b593008549a9b95aa96b01 (patch)
tree0b9cd27de01c10719f2b7c49b07660652df3d9d9 /tools/testing/selftests/bpf/test_loader.c
parent2e7ba4f8fd1fa879b37db0b738c23ba2af8292ee (diff)
downloadlinux-204c628730c62de5a0b593008549a9b95aa96b01.tar.xz
bpf: Add helper macro bpf_addr_space_cast()
Introduce helper macro bpf_addr_space_cast() that emits: rX = rX instruction with off = BPF_ADDR_SPACE_CAST and encodes dest and src address_space-s into imm32. It's useful with older LLVM that doesn't emit this insn automatically. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/bpf/20240308010812.89848-12-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_loader.c')
0 files changed, 0 insertions, 0 deletions