]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Add union argument tests using fexit programs
authorLeon Hwang <leon.hwang@linux.dev>
Fri, 19 Sep 2025 04:41:10 +0000 (12:41 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Sep 2025 19:07:47 +0000 (12:07 -0700)
commit1c6686bf7fc161ed87b44b523a96c5ae4bfed351
tree4dc6b632825e8547bd864737362595e365a15662
parentccb4f5d91ec43c05ba165ccfc7ed889eb9cdfd05
selftests/bpf: Add union argument tests using fexit programs

Add test coverage for union argument support using fexit programs:

* 8B union argument - verify that the verifier accepts it and that fexit
  programs can trace such functions.
* 16B union argument - verify that the verifier accepts it and that
  fexit programs can access the argument, which is passed using two
  registers.

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20250919044110.23729-3-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/tracing_struct.c
tools/testing/selftests/bpf/progs/tracing_struct.c
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c