selftests/bpf: Add tests for BPF exceptions
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 12 Sep 2023 23:32:14 +0000 (01:32 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 16 Sep 2023 16:36:43 +0000 (09:36 -0700)
commitd2a93715bfb0655a63bb1687f43f48eb2e61717b
tree2094312e53ff2b27e6aa2cb71fd29cc5b41175c4
parentd6ea06803212d992cbab24466f491ee0178bf9e0
selftests/bpf: Add tests for BPF exceptions

Add selftests to cover success and failure cases of API usage, runtime
behavior and invariants that need to be maintained for implementation
correctness.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20230912233214.1518551-18-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/DENYLIST.aarch64
tools/testing/selftests/bpf/DENYLIST.s390x
tools/testing/selftests/bpf/prog_tests/exceptions.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/exceptions.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/exceptions_assert.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/exceptions_ext.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/exceptions_fail.c [new file with mode: 0644]