sanitizers: enable pthread_getaffinity_np interception on freebsd.
authorDavid Carlier <devnexen@gmail.com>
Mon, 12 Jun 2023 18:25:43 +0000 (19:25 +0100)
committerDavid Carlier <devnexen@gmail.com>
Mon, 12 Jun 2023 18:25:43 +0000 (19:25 +0100)
Reviewers: mevler

Reviewed-By: mevler
Differential Revision: https://reviews.llvm.org/D152735

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

index ac67e65..ec67e25 100644 (file)
 #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)