summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2024-01-05 14:30:52 -0800
committerGitHub <noreply@github.com>2024-01-05 14:30:52 -0800
commit5b54dd4f5eccc66c6352f9277d0a6edbd2e80435 (patch)
tree407afc80612a74d92cb170bab81d42f74bbaea53
parent8e92d9ea8dfcc49223e4ac62c998aea4d2d4fc84 (diff)
[tsan] Generalize FrameIsInternal (#77143)
Prepare to move this into sanitizer_common.
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_report.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cpp b/compiler-rt/lib/tsan/rtl/tsan_report.cpp
index 35cb6710a54f..167e4be4fc0e 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;
}