diff options
author | Puranjay Mohan <puranjay12@gmail.com> | 2024-03-25 18:07:16 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-04-03 05:45:50 +0300 |
commit | 4dd31243e30843d5f63bccfb0369146e4de1a130 (patch) | |
tree | a4016b11eba0c4d9f47f5ad4e3a0c327a50d0b66 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 339af577ec05c8fc0b96f23579614ae853d913ab (diff) | |
download | linux-4dd31243e30843d5f63bccfb0369146e4de1a130.tar.xz |
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 <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20240325150716.4387-3-puranjay12@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions