From: Dmitry Vyukov Date: Wed, 12 May 2021 06:54:34 +0000 (+0200) Subject: tsan: fix syscall test on aarch64 X-Git-Tag: llvmorg-14-init~6957 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dc838717a294ed7bfd7d597d427886ce61df122;p=platform%2Fupstream%2Fllvm.git tsan: fix syscall test on aarch64 Add missing includes and use SYS_pipe2 instead of SYS_pipe as it's not present on some arches. Differential Revision: https://reviews.llvm.org/D102311 --- diff --git a/compiler-rt/test/tsan/Linux/syscall.h b/compiler-rt/test/tsan/Linux/syscall.h index ccbc0d4..2d0a854 100644 --- a/compiler-rt/test/tsan/Linux/syscall.h +++ b/compiler-rt/test/tsan/Linux/syscall.h @@ -1,4 +1,6 @@ +#include #include +#include #include #include #include @@ -16,7 +18,7 @@ int myfork() { int mypipe(int pipefd[2]) { __sanitizer_syscall_pre_pipe(pipefd); - int res = syscall(SYS_pipe, pipefd); + int res = syscall(SYS_pipe2, pipefd, 0); __sanitizer_syscall_post_pipe(res, pipefd); return res; }