summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingUtil.c
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2017-08-14 14:53:47 +0000
committerKostya Kortchinsky <kostyak@google.com>2017-08-14 14:53:47 +0000
commit83db677110a0953642661a2e526521e30c358c53 (patch)
tree83e3ae739a17343b4a7d56e6aed1b424c50fe35b /lib/profile/InstrProfilingUtil.c
parent1c85aaf50b80c5e1233ca176b13359d39b040c02 (diff)
[sanitizers] Add a blocking boolean to GetRandom prototype
Summary: On platforms with `getrandom`, the system call defaults to blocking. This becomes an issue in the very early stage of the boot for Scudo, when the RNG source is not set-up yet: the syscall will block and we'll stall. Introduce a parameter to specify that the function should not block, defaulting to blocking as the underlying syscall does. Update Scudo to use the non-blocking version. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D36399 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@310839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingUtil.c')
0 files changed, 0 insertions, 0 deletions