[compiler-rt] f5a8802 - sanitizers: enable pthread_getaffinity_np interception on freebsd.
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 11:27:19 PDT 2023
Author: David Carlier
Date: 2023-06-12T19:25:43+01:00
New Revision: f5a8802fa6021ab05dd126ea64f594f84c6c90d9
URL: https://github.com/llvm/llvm-project/commit/f5a8802fa6021ab05dd126ea64f594f84c6c90d9
DIFF: https://github.com/llvm/llvm-project/commit/f5a8802fa6021ab05dd126ea64f594f84c6c90d9.diff
LOG: sanitizers: enable pthread_getaffinity_np interception on freebsd.
Reviewers: mevler
Reviewed-By: mevler
Differential Revision: https://reviews.llvm.org/D152735
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index ac67e6514c36a..ec67e255b1d4c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -347,7 +347,8 @@
#define SANITIZER_INTERCEPT_PTHREAD_ATTR_GETINHERITSCHED \
(SI_FREEBSD || SI_NETBSD || SI_MAC || SI_LINUX_NOT_ANDROID || SI_SOLARIS)
#define SANITIZER_INTERCEPT_PTHREAD_ATTR_GETAFFINITY_NP SI_GLIBC
-#define SANITIZER_INTERCEPT_PTHREAD_GETAFFINITY_NP SI_LINUX_NOT_ANDROID
+#define SANITIZER_INTERCEPT_PTHREAD_GETAFFINITY_NP \
+ (SI_LINUX_NOT_ANDROID || SI_FREEBSD)
#define SANITIZER_INTERCEPT_PTHREAD_ATTR_GET_SCHED SI_POSIX
#define SANITIZER_INTERCEPT_PTHREAD_MUTEXATTR_GETPSHARED \
(SI_POSIX && !SI_NETBSD)
More information about the llvm-commits
mailing list