[PATCH bpf-next v2 3/3] selftests/bpf: Enable stack argument tests for arm64
Puranjay Mohan
puranjay12 at gmail.com
Thu May 28 07:29:06 PDT 2026
On Thu, May 28, 2026 at 2:42 PM Will Deacon <will at kernel.org> wrote:
>
> On Mon, Apr 27, 2026 at 04:48:00PM -0700, Puranjay Mohan wrote:
> > Now that arm64 supports stack arguments, enable the existing stack_arg,
> > stack_arg_kfunc and verifier_stack_arg tests for __TARGET_ARCH_arm64.
> >
> > Signed-off-by: Yonghong Song <yonghong.song at linux.dev>
> > Signed-off-by: Puranjay Mohan <puranjay at kernel.org>
> > ---
> > tools/testing/selftests/bpf/progs/btf__stack_arg_precision.c | 3 ++-
> > tools/testing/selftests/bpf/progs/stack_arg.c | 3 ++-
> > tools/testing/selftests/bpf/progs/stack_arg_kfunc.c | 3 ++-
> > tools/testing/selftests/bpf/progs/stack_arg_precision.c | 3 ++-
> > tools/testing/selftests/bpf/progs/verifier_stack_arg.c | 3 ++-
> > 5 files changed, 10 insertions(+), 5 deletions(-)
>
> Do any of these tests pass more than eight parameters? If not, then
> they're not touching any of the stack stuff you added for arm64.
The test "test_two_callees" has ret += foo2(a, b, c, d, e, a + 5, a +
6, a + 7, a + 8, a + 9);
so, 10 arguments are tested.
But you are right, I will send a patch to increase all these tests to
pass 10 arguments so it increases test coverage on arm64.
Thanks,
Puranjay
More information about the linux-arm-kernel
mailing list