Re: [PATCH v2] powerpc64/bpf: fix JIT code size calculation of bpf trampoline

2025-04-22 Thread Hari Bathini
On 17/04/25 8:06 pm, Venkat Rao Bagalkote wrote: On 17/04/25 1:10 am, 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 th

Re: [PATCH v2] powerpc64/bpf: fix JIT code size calculation of bpf trampoline

2025-04-22 Thread Hari Bathini
On 19/04/25 4:31 pm, Naveen N Rao wrote: On Thu, Apr 17, 2025 at 01:10:37AM +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

Re: [PATCH v2] powerpc64/bpf: fix JIT code size calculation of bpf trampoline

2025-04-19 Thread Naveen N Rao
On Thu, Apr 17, 2025 at 01:10:37AM +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. S

Re: [PATCH v2] powerpc64/bpf: fix JIT code size calculation of bpf trampoline

2025-04-17 Thread Venkat Rao Bagalkote
On 17/04/25 1:10 am, 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 size arrived at wi

[PATCH v2] powerpc64/bpf: fix JIT code size calculation of bpf trampoline

2025-04-16 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