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
This commit is contained in:
Ilya Leoshkevich 2023-02-10 01:12:00 +01:00 • committed by Andrii Nakryiko
commit 202702e890
2 changed files with 11 additions and 10 deletions