[esan|wset] Fix flaky sampling tests
authorDerek Bruening <bruening@google.com>
Tue, 19 Jul 2016 05:06:48 +0000 (05:06 +0000)
committerDerek Bruening <bruening@google.com>
Tue, 19 Jul 2016 05:06:48 +0000 (05:06 +0000)
commit0fc992442c2bd98412d55af9f3f16ec2358d9492
treef900c4a55df51a9e2d8e8fb47f5335a124bf93d2
parente397812dcb9052990c567182d72ba33dcee096c2
[esan|wset] Fix flaky sampling tests

Adds a new esan public interface routine __esan_get_sample_count() and uses
it to ensure that tests of sampling receive the minimum number of samples.

llvm-svn: 275948
compiler-rt/include/sanitizer/esan_interface.h
compiler-rt/lib/esan/esan.cpp
compiler-rt/lib/esan/esan.h
compiler-rt/lib/esan/esan_interface.cpp
compiler-rt/lib/esan/working_set.cpp
compiler-rt/lib/esan/working_set.h
compiler-rt/test/esan/TestCases/workingset-midreport.cpp
compiler-rt/test/esan/TestCases/workingset-samples.cpp