diff options
| author | Puranjay Mohan <[email protected]> | 2024-03-25 15:07:16 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-04-02 19:45:50 -0700 |
| commit | 4dd31243e30843d5f63bccfb0369146e4de1a130 (patch) | |
| tree | a4016b11eba0c4d9f47f5ad4e3a0c327a50d0b66 /tools/perf/scripts/python | |
| parent | 339af577ec05c8fc0b96f23579614ae853d913ab (diff) | |
bpf: Add arm64 JIT support for bpf_addr_space_cast instruction.
LLVM generates bpf_addr_space_cast instruction while translating
pointers between native (zero) address space and
__attribute__((address_space(N))). The addr_space=0 is reserved as
bpf_arena address space.
rY = addr_space_cast(rX, 0, 1) is processed by the verifier and
converted to normal 32-bit move: wX = wY.
rY = addr_space_cast(rX, 1, 0) : used to convert a bpf arena pointer to
a pointer in the userspace vma. This has to be converted by the JIT.
Signed-off-by: Puranjay Mohan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions