selftests/bpf: Attach to fopen()/fclose() in uprobe_autoattach
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 10 Feb 2023 00:11:59 +0000 (01:11 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 10 Feb 2023 23:21:27 +0000 (15:21 -0800)
commit907300c7a66b3b58fc0039402aa14e0b9f11aad6
treeb97e82b9f3654729907bb642adbba1787335ea2a
parent24a87b477c65c33841c0511d268f46a226271502
selftests/bpf: Attach to fopen()/fclose() in uprobe_autoattach

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-6-iii@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c
tools/testing/selftests/bpf/progs/test_uprobe_autoattach.c