| commit | 4863262990d12329a5645a9ce83e68497684cca8 | [log] [tgz] |
|---|---|---|
| author | Alexei Starovoitov <ast@kernel.org> | Thu Jan 25 13:15:30 2024 -0800 |
| committer | Alexei Starovoitov <ast@kernel.org> | Thu Jan 25 17:33:54 2024 -0800 |
| tree | 640fce694c07c8fa07bc27563b2b1fd43aa47084 | |
| parent | bb754a8df3e207036a4713412cd05397f42d3e6f [diff] |
bpf: Add helper macro bpf_cast_as() Introduce helper macro bpf_cast_as() that emits: rX = rX instruction and encodes address_space into imm32. It's useful with older LLVM that doesn't emit this insn automatically. Signed-off-by: Alexei Starovoitov <ast@kernel.org>