aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-06-03 12:49:04 -0500
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-06-15 16:21:30 -0500
commit92baf414dbfb31d7d69bea56a0ce982d2b737268 (patch)
tree69f49679cfdc988f3e96104948d0d3cd3297ed10 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parent0ddde4d86518de1154b6e850dc49010c829b717c (diff)
downloadllvm-92baf414dbfb31d7d69bea56a0ce982d2b737268.zip
llvm-92baf414dbfb31d7d69bea56a0ce982d2b737268.tar.gz
llvm-92baf414dbfb31d7d69bea56a0ce982d2b737268.tar.bz2
[OpenMP] Fix affinity determine capable algorithm on Linux
Remove strange checks for syscall() arguments where mask is NULL. Valgrind reports these as error usages for the syscall. Instead, just check if CACHE_LINE bytes is long enough. If not, then search for the size. Also, by limiting the first size detection attempt to CACHE_LINE bytes, instead of 1MB, we don't use more than one cache line for the mask size. Before this patch, sometimes the returned mask size was 640 bytes (10 cache lines) because the initial call to getaffinity() was limited only by the internal kernel mask size which can be very large. Differential Revision: https://reviews.llvm.org/D103637
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
0 files changed, 0 insertions, 0 deletions