summaryrefslogtreecommitdiff
path: root/Documentation/bpf
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay12@gmail.com>2024-02-28 17:18:24 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-02-29 00:44:47 +0300
commit1dad391daef129e01e28206b8d586608ff026548 (patch)
tree5811a3a6deb3825618a7d1a0577df5170871de2a /Documentation/bpf
parent451c3cab9a65e656c3b3d106831fc02d56b8c34a (diff)
downloadlinux-1dad391daef129e01e28206b8d586608ff026548.tar.xz
bpf, arm64: use bpf_prog_pack for memory management
Use bpf_jit_binary_pack_alloc for memory management of JIT binaries in ARM64 BPF JIT. The bpf_jit_binary_pack_alloc creates a pair of RW and RX buffers. The JIT writes the program into the RW buffer. When the JIT is done, the program is copied to the final RX buffer with bpf_jit_binary_pack_finalize. Implement bpf_arch_text_copy() and bpf_arch_text_invalidate() for ARM64 JIT as these functions are required by bpf_jit_binary_pack allocator. Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Acked-by: Song Liu <song@kernel.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20240228141824.119877-3-puranjay12@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/bpf')
0 files changed, 0 insertions, 0 deletions