diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-12-13 01:16:34 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-12-13 01:16:34 +0000 |
commit | 4f20a94a11e63df059a5d315b30b8ddf22b10959 (patch) | |
tree | fedb192a46c4ad676127f306cf0a0a7d49a9f825 /test | |
parent | e4c546028442192e48480ff2d3d9e29ecc62774d (diff) |
[hwasan] Inline instrumentation & fixed shadow.
Summary: This brings CPU overhead on bzip2 down from 5.5x to 2x.
Reviewers: kcc, alekseyshl
Subscribers: kubamracek, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D41137
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/hwasan/TestCases/halt-on-error.cc | 15 | ||||
-rw-r--r-- | test/hwasan/TestCases/use-after-free.cc | 5 |
2 files changed, 8 insertions, 12 deletions
diff --git a/test/hwasan/TestCases/halt-on-error.cc b/test/hwasan/TestCases/halt-on-error.cc index 135c2b828..97693d5bc 100644 --- a/test/hwasan/TestCases/halt-on-error.cc +++ b/test/hwasan/TestCases/halt-on-error.cc @@ -11,19 +11,16 @@ int main() { __hwasan_disable_allocator_tagging(); return x[2] + ((char *)x)[6] + ((char *)x)[9]; // CHECK: READ of size 4 at - // CHECK: #0 {{.*}} in __hwasan_load4 {{.*}}hwasan.cc - // CHECK: #1 {{.*}} in main {{.*}}halt-on-error.cc:12 - // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in __hwasan_load4 + // CHECK: #0 {{.*}} in main {{.*}}halt-on-error.cc:12 + // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in main // CHECK: READ of size 1 at - // CHECK: #0 {{.*}} in __hwasan_load1 {{.*}}hwasan.cc - // CHECK: #1 {{.*}} in main {{.*}}halt-on-error.cc:12 - // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in __hwasan_load1 + // CHECK: #0 {{.*}} in main {{.*}}halt-on-error.cc:12 + // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in main // CHECK: READ of size 1 at - // CHECK: #0 {{.*}} in __hwasan_load1 {{.*}}hwasan.cc - // CHECK: #1 {{.*}} in main {{.*}}halt-on-error.cc:12 - // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in __hwasan_load1 + // CHECK: #0 {{.*}} in main {{.*}}halt-on-error.cc:12 + // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in main // CHECK-NOT: tag-mismatch } diff --git a/test/hwasan/TestCases/use-after-free.cc b/test/hwasan/TestCases/use-after-free.cc index a99cd3c0e..a4d3ee895 100644 --- a/test/hwasan/TestCases/use-after-free.cc +++ b/test/hwasan/TestCases/use-after-free.cc @@ -14,8 +14,7 @@ int main() { __hwasan_disable_allocator_tagging(); return x[5]; // CHECK: READ of size 1 at - // CHECK: #0 {{.*}} in __hwasan_load1 {{.*}}hwasan.cc - // CHECK: #1 {{.*}} in main {{.*}}use-after-free.cc:15 + // CHECK: #0 {{.*}} in main {{.*}}use-after-free.cc:15 // CHECK: freed here: // CHECK: #0 {{.*}} in free {{.*}}hwasan_interceptors.cc @@ -25,5 +24,5 @@ int main() { // CHECK: #0 {{.*}} in __interceptor_malloc {{.*}}hwasan_interceptors.cc // CHECK: #1 {{.*}} in main {{.*}}use-after-free.cc:12 - // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in __hwasan_load1 + // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in main } |