[compiler-rt] [TSAN] add instrumentation for pthread_mutex_clocklock (PR #75713)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 16 11:57:04 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f49e2b05bf3ececa2fe20c5d658ab92ab974dc36 5968418ab0d307572b912230f2f834e762a42b0e -- compiler-rt/test/tsan/pthread_mutex_clocklock.cpp compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
index 571c3f149d..da0ad8eb42 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
@@ -1380,7 +1380,7 @@ TSAN_INTERCEPTOR(int, pthread_mutex_unlock, void *m) {
return res;
}
-TSAN_INTERCEPTOR(int, pthread_mutex_clocklock, void *m,
+TSAN_INTERCEPTOR(int, pthread_mutex_clocklock, void *m,
__sanitizer_clockid_t clock, void *abstime) {
SCOPED_TSAN_INTERCEPTOR(pthread_mutex_clocklock, m, clock, abstime);
MutexPreLock(thr, pc, (uptr)m);
``````````
</details>
https://github.com/llvm/llvm-project/pull/75713
More information about the llvm-commits
mailing list