arm64, bpf: Use bpf_prog_pack for arm64 bpf trampoline
authorPuranjay Mohan <puranjay12@gmail.com>
Mon, 4 Mar 2024 20:28:03 +0000 (20:28 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 9 Mar 2024 16:39:55 +0000 (08:39 -0800)
commit96b0f5addc7a0d9ed1f4969ca85ed7513cb1ed25
tree0f7bb0775e388cb9a2ae69a818d5c938c0ca2d33
parenta27e89673abf1623c298ea84eaa03f4c57aeca1b
arm64, bpf: Use bpf_prog_pack for arm64 bpf trampoline

We used bpf_prog_pack to aggregate bpf programs into huge page to
relieve the iTLB pressure on the system. This was merged for ARM64[1]
We can apply it to bpf trampoline as well. This would increase the
preformance of fentry and struct_ops programs.

[1] https://lore.kernel.org/bpf/20240228141824.119877-1-puranjay12@gmail.com/

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Reviewed-by: Pu Lehui <pulehui@huawei.com>
Message-ID: <20240304202803.31400-1-puranjay12@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/net/bpf_jit_comp.c