[compiler-rt] 5b54dd4 - [tsan] Generalize FrameIsInternal (#77143)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 14:30:57 PST 2024
Author: Vitaly Buka
Date: 2024-01-05T14:30:52-08:00
New Revision: 5b54dd4f5eccc66c6352f9277d0a6edbd2e80435
URL: https://github.com/llvm/llvm-project/commit/5b54dd4f5eccc66c6352f9277d0a6edbd2e80435
DIFF: https://github.com/llvm/llvm-project/commit/5b54dd4f5eccc66c6352f9277d0a6edbd2e80435.diff
LOG: [tsan] Generalize FrameIsInternal (#77143)
Prepare to move this into sanitizer_common.
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_report.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cpp b/compiler-rt/lib/tsan/rtl/tsan_report.cpp
index 35cb6710a54fa4..167e4be4fc0e26 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_report.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_report.cpp
@@ -278,13 +278,9 @@ static bool FrameIsInternal(const SymbolizedStack *frame) {
return false;
const char *file = frame->info.file;
const char *module = frame->info.module;
- if (file != 0 &&
- (internal_strstr(file, "tsan_interceptors_posix.cpp") ||
- internal_strstr(file, "tsan_interceptors_memintrinsics.cpp") ||
- internal_strstr(file, "sanitizer_common_interceptors.inc") ||
- internal_strstr(file, "tsan_interface_")))
+ if (file != 0 && (internal_strstr(file, "/compiler-rt/lib/")))
return true;
- if (module != 0 && (internal_strstr(module, "libclang_rt.tsan_")))
+ if (module != 0 && (internal_strstr(module, "libclang_rt.")))
return true;
return false;
}
More information about the llvm-commits
mailing list