diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-07 00:37:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-07 00:37:26 +0000 |
commit | 212008328600e3b966fe5363e84d7fa824eafe77 (patch) | |
tree | 5ef7a446ae40436eaab063df94178e8b7666d65e /lib/sanitizer_common/sanitizer_common_interceptors.inc | |
parent | a74047af8eb56e41cbb765d296b79e07ce4803b3 (diff) | |
download | compiler-rt-212008328600e3b966fe5363e84d7fa824eafe77.tar.gz compiler-rt-212008328600e3b966fe5363e84d7fa824eafe77.tar.bz2 compiler-rt-212008328600e3b966fe5363e84d7fa824eafe77.tar.xz |
Revert "[sanitizer] Intercept sched_getaffinity."
This reverts commit r187788.
The test case is unreliable (as the test may be run in a situation in
which it has no affinity with cpu0). This can be recommitted with a more
reliable test - possibly using CPU_COUNT != 0 instead (I wasn't entirely
sure that a process was guaranteed to have at least one affinity, though
it seems reasonable, or I'd have made the change myself).
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_interceptors.inc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_common_interceptors.inc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_interceptors.inc b/lib/sanitizer_common/sanitizer_common_interceptors.inc index bf991417..4ac17e81 100644 --- a/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -1762,20 +1762,6 @@ INTERCEPTOR(SIZE_T, confstr, int name, char *buf, SIZE_T len) { #define INIT_CONFSTR #endif -#if SANITIZER_INTERCEPT_SCHED_GETAFFINITY -INTERCEPTOR(int, sched_getaffinity, int pid, SIZE_T cpusetsize, void *mask) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, sched_getaffinity, pid, cpusetsize, mask); - int res = REAL(sched_getaffinity)(pid, cpusetsize, mask); - if (mask && !res) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, mask, cpusetsize); - return res; -} -#define INIT_SCHED_GETAFFINITY INTERCEPT_FUNCTION(sched_getaffinity); -#else -#define INIT_SCHED_GETAFFINITY -#endif - #define SANITIZER_COMMON_INTERCEPTORS_INIT \ INIT_STRCMP; \ INIT_STRNCMP; \ @@ -1835,5 +1821,4 @@ INTERCEPTOR(int, sched_getaffinity, int pid, SIZE_T cpusetsize, void *mask) { INIT_TCGETATTR; \ INIT_REALPATH; \ INIT_CANONICALIZE_FILE_NAME; \ - INIT_CONFSTR; \ - INIT_SCHED_GETAFFINITY; + INIT_CONFSTR; |