[PATCH] D74487: Make fiber support in thread sanitizer dynamic linkable
Joachim Protze via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 08:05:27 PST 2020
protze.joachim created this revision.
protze.joachim added reviewers: yuri, dvyukov.
Herald added a reviewer: jdoerfert.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
This patch will allow dynamic libraries to call into the fiber support functions introduced in
https://reviews.llvm.org/D54889
I will use these functions in openmp/tools/archer/ompt-tsan.cpp to handle OpenMP tasks as fibers.
The libarcher.so library built from this file is loaded dynamically by the OpenMP runtime.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74487
Files:
compiler-rt/lib/tsan/rtl/tsan.syms.extra
Index: compiler-rt/lib/tsan/rtl/tsan.syms.extra
===================================================================
--- compiler-rt/lib/tsan/rtl/tsan.syms.extra
+++ compiler-rt/lib/tsan/rtl/tsan.syms.extra
@@ -19,6 +19,11 @@
__tsan_mutex_post_signal
__tsan_mutex_pre_divert
__tsan_mutex_post_divert
+__tsan_get_current_fiber
+__tsan_create_fiber
+__tsan_destroy_fiber
+__tsan_switch_to_fiber
+__tsan_set_fiber_name
__ubsan_*
Annotate*
WTFAnnotate*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74487.244181.patch
Type: text/x-patch
Size: 454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200212/84deaa50/attachment.bin>
More information about the llvm-commits
mailing list