selftests/bpf: Add re-attach test to fexit_test
authorJiri Olsa <jolsa@kernel.org>
Wed, 14 Apr 2021 19:51:44 +0000 (21:51 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 26 Apr 2021 04:09:02 +0000 (21:09 -0700)
commit8caadc43f2019caebbf314f7a6ae2faed791e783
tree599aada133b415ded80451bd896adb5b40afcf0a
parent56dda5a48f4f610ac9a0487c6fb64d31950e4a3e
selftests/bpf: Add re-attach test to fexit_test

Adding the test to re-attach (detach/attach again) tracing
fexit programs, plus check that already linked program can't
be attached again.

Also switching to ASSERT* macros.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210414195147.1624932-5-jolsa@kernel.org
tools/testing/selftests/bpf/prog_tests/fexit_test.c