selftests/bpf: Attach to fopen()/fclose() in attach_probe
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 10 Feb 2023 00:12:00 +0000 (01:12 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 10 Feb 2023 23:21:27 +0000 (15:21 -0800)
commit202702e890a41412a7de970b84a970ba1d5001c9
tree2831804e722ee2d67d49e881ca0a9e6420a7e514
parent907300c7a66b3b58fc0039402aa14e0b9f11aad6
selftests/bpf: Attach to fopen()/fclose() in attach_probe

malloc() and free() may be completely replaced by sanitizers, use
fopen() and fclose() instead.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230210001210.395194-7-iii@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/attach_probe.c
tools/testing/selftests/bpf/progs/test_attach_probe.c