Re: [PATCH v3] powerpc/bpf: fix JIT code size calculation of bpf trampoline

2025-05-03 Thread Madhavan Srinivasan
On Tue, 22 Apr 2025 13:56:09 +0530, Hari Bathini wrote: > arch_bpf_trampoline_size() provides JIT size of the BPF trampoline > before the buffer for JIT'ing it is allocated. The total number of > instructions emitted for BPF trampoline JIT code depends on where > the final image is located. So, the

[PATCH v3] powerpc/bpf: fix JIT code size calculation of bpf trampoline

2025-04-22 Thread Hari Bathini
arch_bpf_trampoline_size() provides JIT size of the BPF trampoline before the buffer for JIT'ing it is allocated. The total number of instructions emitted for BPF trampoline JIT code depends on where the final image is located. So, the size arrived at with the dummy pass in arch_bpf_trampoline_size