selftests/bpf: Add selftest for attaching fexit to __noreturn functions
authorYafang Shao <laoar.shao@gmail.com>
Tue, 18 Mar 2025 11:44:47 +0000 (19:44 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Mar 2025 02:07:18 +0000 (19:07 -0700)
commitbe16ddeaae960f8d03472e8b62aae50fc469f1c9
treef99c75ef5e0aa594a31a2d5376db8512df9620aa
parentcfe816d469dce9c0864062cf65dd7b3c42adc6f8
selftests/bpf: Add selftest for attaching fexit to __noreturn functions

The reuslt:

  $ tools/testing/selftests/bpf/test_progs --name=fexit_noreturns
  #99/1    fexit_noreturns/noreturns:OK
  #99      fexit_noreturns:OK
  Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20250318114447.75484-3-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/fexit_noreturns.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/fexit_noreturns.c [new file with mode: 0644]