Fangrui Song
62309ed955
[msan][test] Fix cpusetsize for another pthread_getaffinity_np.cpp test
...
Similar to D127368
2022-06-08 20:08:05 -07:00
Fangrui Song
a86b171d8c
[msan][test] Use a large cpusetsize for pthread_getaffinity_np
...
pthread_getaffinity_np (Linux `kernel/sched/core.c:sched_getaffinity`) fails
with EINVAL if 8*cpusetsize (constant in glibc: 1024) is smaller than
`nr_cpu_ids` (CONFIG_NR_CPUS, which is 2048 for several arch/powerpc/configs
configurations).
The build bot clang-ppc64le-linux-lnt seems to have a larger `nr_cpu_ids`.
Differential Revision: https://reviews.llvm.org/D127368
2022-06-08 18:50:23 -07:00
Kevin Athey
0777be69fb
[MSAN] print out the only possible invalid parameter (EINVAL is returned)
...
One more round attempting to figure what is wrong.
Depends on: https://reviews.llvm.org/D127346
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D127359
2022-06-08 16:23:04 -07:00
Kevin Athey
d97d930d92
[MSAN] send output to stderr in test: pthread_getaffinity_np.
...
Must send output to stderr to view it.
This will be rolled back when diagnosis is complete.
Depends on: https://reviews.llvm.org/D127320
Differential Revision: https://reviews.llvm.org/D127346
2022-06-08 14:16:08 -07:00
Kevin Athey
d50dc33d29
[MSAN] Add comment regarding why pthread_getaffinity_np is not supported on Android.
...
Depends on: https://reviews.llvm.org/D127264
Reviewed By: vitalybuka, fmayer
Differential Revision: https://reviews.llvm.org/D127327
2022-06-08 13:53:59 -07:00
Kevin Athey
7b1aa20a76
[MSAN] Add result printing for failed call in pthread_getaffinity_np.
...
Will be reverted when test failure is diagnosed.
Depends on: https://reviews.llvm.org/D127185
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D127320
2022-06-08 11:14:24 -07:00
Kevin Athey
67069e1980
[MSAN] exclude android from pthread_getaffinity_np interceptor
...
Depends on https://reviews.llvm.org/D127185 .
Differential Revision: https://reviews.llvm.org/D127264
2022-06-07 17:53:32 -07:00
Kevin Athey
828c94c0f6
[MSAN] Add interceptor for pthread_getaffinity_np.
...
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D127185
2022-06-07 16:27:44 -07:00