mbox series

[bpf-next,0/2] selftests/bpf: Fix number of arguments in test

Message ID 20240506151829.186607-1-cupertino.miranda@oracle.com (mailing list archive)
Headers show
Series selftests/bpf: Fix number of arguments in test | expand

Message

Cupertino Miranda May 6, 2024, 3:18 p.m. UTC
Hi everyone,

This patch series is in the context of GCC support.
GCC errors when number of arguments does not fit within the
requirements of BPF.
These patches fixes the functions that contain 6 arguments by
combining those in an array.

Best regards,
Cupertino

Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Yonghong Song <yonghong.song@linux.dev>
Cc: David Faust <david.faust@oracle.com>
Cc: Jose Marchesi <jose.marchesi@oracle.com>
Cc: Elena Zannoni <elena.zannoni@oracle.com>

Cupertino Miranda (2):
  selftests/bpf: Add CFLAGS per source file and runner
  selftests/bpf: Change functions definitions to support GCC

 tools/testing/selftests/bpf/Makefile             | 16 +++++++++-------
 .../selftests/bpf/progs/test_xdp_noinline.c      | 15 +++++++++------
 2 files changed, 18 insertions(+), 13 deletions(-)