diff options
author | Kostya Serebryany <kcc@google.com> | 2015-05-06 22:41:34 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-05-06 22:41:34 +0000 |
commit | a86398e3fd8c01a0f74676b2b4f084e5ceee1de1 (patch) | |
tree | 63222db0ee0572713d49eedebcb901c7ce06814f | |
parent | 754f55d6f5c38bee2bfe861c3cbcd480bf638507 (diff) | |
download | bcm5719-llvm-a86398e3fd8c01a0f74676b2b4f084e5ceee1de1.tar.gz bcm5719-llvm-a86398e3fd8c01a0f74676b2b4f084e5ceee1de1.zip |
Add api_list entries for the dfsan-based fuzzer
Summary: Add api_list entries for the dfsan-based fuzzer
Test Plan: covered by check-fuzzer
Reviewers: pcc
Reviewed By: pcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D9538
llvm-svn: 236657
-rw-r--r-- | compiler-rt/lib/dfsan/done_abilist.txt | 17 | ||||
-rwxr-xr-x | compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh | 4 |
2 files changed, 20 insertions, 1 deletions
diff --git a/compiler-rt/lib/dfsan/done_abilist.txt b/compiler-rt/lib/dfsan/done_abilist.txt index 15c6d1bb2e3..8d3a1c3337c 100644 --- a/compiler-rt/lib/dfsan/done_abilist.txt +++ b/compiler-rt/lib/dfsan/done_abilist.txt @@ -258,3 +258,20 @@ fun:reflect.MakeFuncStubGo=uninstrumented fun:reflect.MakeFuncStubGo=discard fun:reflect.makeFuncStub=uninstrumented fun:reflect.makeFuncStub=discard + + +############################################################################### +# lib/Fuzzer +############################################################################### +# Replaces __sanitizer_cov_trace_cmp with __dfsw___sanitizer_cov_trace_cmp +fun:__sanitizer_cov_trace_cmp=custom +fun:__sanitizer_cov_trace_cmp=uninstrumented + +# Ignores coverage callbacks. +fun:__sanitizer_cov=uninstrumented +fun:__sanitizer_cov=discard +fun:__sanitizer_cov_module_init=uninstrumented +fun:__sanitizer_cov_module_init=discard + +# Don't add extra parameters to the Fuzzer callback. +fun:LLVMFuzzerTestOneInput=uninstrumented diff --git a/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh b/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh index 1880882c3df..99bf50cbbd0 100755 --- a/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh +++ b/compiler-rt/lib/dfsan/scripts/check_custom_wrappers.sh @@ -17,8 +17,10 @@ on_exit() { rm -f ${DIFF_B} 2> /dev/null } +# Ignore __sanitizer_cov_trace* because they are implemented elsewhere. trap on_exit EXIT -grep -E "^fun:.*=custom" ${DFSAN_ABI_LIST} | grep -v "dfsan_get_label" \ +grep -E "^fun:.*=custom" ${DFSAN_ABI_LIST} \ + | grep -v "dfsan_get_label\|__sanitizer_cov_trace" \ | sed "s/^fun:\(.*\)=custom.*/\1/" | sort > $DIFF_A grep -E "__dfsw.*\(" ${DFSAN_CUSTOM_WRAPPERS} \ | sed "s/.*__dfsw_\(.*\)(.*/\1/" | sort > $DIFF_B |