summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay12@gmail.com>2024-02-28 15:18:24 +0100
committerAlexei Starovoitov <ast@kernel.org>2024-02-28 22:44:47 +0100
commit1dad391daef129e01e28206b8d586608ff026548 (patch)
tree5811a3a6deb3825618a7d1a0577df5170871de2a /samples
parentarm64: patching: implement text_poke API (diff)
downloadlinux-1dad391daef129e01e28206b8d586608ff026548.tar.xz
linux-1dad391daef129e01e28206b8d586608ff026548.zip
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 'samples')
0 files changed, 0 insertions, 0 deletions