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

2025-04-06 Thread Hari Bathini
Hi Naveen, Thanks for the review. On 03/04/25 9:15 pm, Naveen N Rao wrote: On Wed, Mar 26, 2025 at 08:04:22PM +0530, Hari Bathini wrote: The JIT compile of ldimm instructions can be anywhere between 1-5 instructions long depending on the value being loaded. arch_bpf_trampoline_size() provides

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

2025-04-03 Thread Naveen N Rao
On Wed, Mar 26, 2025 at 08:04:22PM +0530, Hari Bathini wrote: > The JIT compile of ldimm instructions can be anywhere between 1-5 > instructions long depending on the value being loaded. > > arch_bpf_trampoline_size() provides JIT size of the BPF trampoline > before the buffer for JIT'ing it is al

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

2025-03-26 Thread Venkat Rao Bagalkote
On 26/03/25 8:04 pm, Hari Bathini wrote: The JIT compile of ldimm instructions can be anywhere between 1-5 instructions long depending on the value being loaded. arch_bpf_trampoline_size() provides JIT size of the BPF trampoline before the buffer for JIT'ing it is allocated. BPF trampoline JIT

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

2025-03-26 Thread Hari Bathini
The JIT compile of ldimm instructions can be anywhere between 1-5 instructions long depending on the value being loaded. arch_bpf_trampoline_size() provides JIT size of the BPF trampoline before the buffer for JIT'ing it is allocated. BPF trampoline JIT code has ldimm instructions that need to loa

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

2025-03-26 Thread Hari Bathini
On 26/03/25 5:38 pm, Hari Bathini wrote: The JIT compile of ldimm instructions can be anywhere between 1-5 instructions long depending on the value being loaded. arch_bpf_trampoline_size() provides JIT size of the BPF trampoline before the buffer for JIT'ing it is allocated. BPF trampoline JI

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

2025-03-26 Thread Hari Bathini
The JIT compile of ldimm instructions can be anywhere between 1-5 instructions long depending on the value being loaded. arch_bpf_trampoline_size() provides JIT size of the BPF trampoline before the buffer for JIT'ing it is allocated. BPF trampoline JIT code has ldimm instructions that need to loa