[compiler-rt] [tsan] Generalize FrameIsInternal (PR #77143)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 14:06:43 PST 2024
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/77143
Prepare to move this into sanitizer_common.
>From 0a2fd438e5afcb10bded239f8de49742aaaaa92e Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Fri, 5 Jan 2024 14:06:23 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
compiler-rt/lib/tsan/rtl/tsan_report.cpp | 8 ++------
1 file 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 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