Re: [PATCH bpf-next v2] arm64, bpf: Add 12-argument support for bpf trampoline

2024-07-08 Thread Xu Kuohai
On 7/8/2024 5:00 PM, Puranjay Mohan wrote: Xu Kuohai writes: On 7/5/2024 8:53 PM, Puranjay Mohan wrote: The arm64 bpf JIT currently supports attaching the trampoline to functions with <= 8 arguments. This is because up to 8 arguments can be passed in registers r0-r7. If there are more than 8

Re: [PATCH bpf-next v2] arm64, bpf: Add 12-argument support for bpf trampoline

2024-07-08 Thread Puranjay Mohan
Xu Kuohai writes: > On 7/5/2024 8:53 PM, Puranjay Mohan wrote: >> The arm64 bpf JIT currently supports attaching the trampoline to >> functions with <= 8 arguments. This is because up to 8 arguments can be >> passed in registers r0-r7. If there are more than 8 arguments then the >> 9th and later

Re: [PATCH bpf-next v2] arm64, bpf: Add 12-argument support for bpf trampoline

2024-07-06 Thread Xu Kuohai
On 7/5/2024 8:53 PM, Puranjay Mohan wrote: The arm64 bpf JIT currently supports attaching the trampoline to functions with <= 8 arguments. This is because up to 8 arguments can be passed in registers r0-r7. If there are more than 8 arguments then the 9th and later arguments are passed on the stac

[PATCH bpf-next v2] arm64, bpf: Add 12-argument support for bpf trampoline

2024-07-05 Thread Puranjay Mohan
The arm64 bpf JIT currently supports attaching the trampoline to functions with <= 8 arguments. This is because up to 8 arguments can be passed in registers r0-r7. If there are more than 8 arguments then the 9th and later arguments are passed on the stack, with SP pointing to the first stacked argu