aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2024-03-07 17:08:09 -0800
committerAndrii Nakryiko <andrii@kernel.org>2024-03-11 15:43:42 -0700
commit204c628730c62de5a0b593008549a9b95aa96b01 (patch)
tree0b9cd27de01c10719f2b7c49b07660652df3d9d9 /rust
parentlibbpf: Recognize __arena global variables. (diff)
downloadwireguard-linux-204c628730c62de5a0b593008549a9b95aa96b01.tar.xz
wireguard-linux-204c628730c62de5a0b593008549a9b95aa96b01.zip
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 'rust')
0 files changed, 0 insertions, 0 deletions