aboutsummaryrefslogtreecommitdiff
path: root/lib/tsan/interception/interception_linux.h
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-10 00:59:52 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-10 01:00:37 -0700
commit854b88fda0dc6e92399c27f819bb2a0f5c090eb9 (patch)
tree519ea4302d30255d6ca79337cc326261f4058a14 /lib/tsan/interception/interception_linux.h
parent036e9fd479219ed1116fed8c0da89fa5a2829cf9 (diff)
downloadzig-854b88fda0dc6e92399c27f819bb2a0f5c090eb9.tar.gz
zig-854b88fda0dc6e92399c27f819bb2a0f5c090eb9.zip
tsan: update rtl files to LLVM 17.0.6
Diffstat (limited to 'lib/tsan/interception/interception_linux.h')
-rw-r--r--lib/tsan/interception/interception_linux.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/tsan/interception/interception_linux.h b/lib/tsan/interception/interception_linux.h
index a08f8cb98c..433a3d9bd7 100644
--- a/lib/tsan/interception/interception_linux.h
+++ b/lib/tsan/interception/interception_linux.h
@@ -15,7 +15,7 @@
SANITIZER_SOLARIS
#if !defined(INCLUDED_FROM_INTERCEPTION_LIB)
-# error "interception_linux.h should be included from interception library only"
+# error interception_linux.h should be included from interception library only
#endif
#ifndef INTERCEPTION_LINUX_H
@@ -23,26 +23,26 @@
namespace __interception {
bool InterceptFunction(const char *name, uptr *ptr_to_real, uptr func,
- uptr wrapper);
+ uptr trampoline);
bool InterceptFunction(const char *name, const char *ver, uptr *ptr_to_real,
- uptr func, uptr wrapper);
+ uptr func, uptr trampoline);
} // namespace __interception
#define INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func) \
::__interception::InterceptFunction( \
#func, \
- (::__interception::uptr *) & REAL(func), \
- (::__interception::uptr) & (func), \
- (::__interception::uptr) & WRAP(func))
+ (::__interception::uptr *)&REAL(func), \
+ (::__interception::uptr)&(func), \
+ (::__interception::uptr)&TRAMPOLINE(func))
// dlvsym is a GNU extension supported by some other platforms.
#if SANITIZER_GLIBC || SANITIZER_FREEBSD || SANITIZER_NETBSD
#define INTERCEPT_FUNCTION_VER_LINUX_OR_FREEBSD(func, symver) \
::__interception::InterceptFunction( \
#func, symver, \
- (::__interception::uptr *) & REAL(func), \
- (::__interception::uptr) & (func), \
- (::__interception::uptr) & WRAP(func))
+ (::__interception::uptr *)&REAL(func), \
+ (::__interception::uptr)&(func), \
+ (::__interception::uptr)&TRAMPOLINE(func))
#else
#define INTERCEPT_FUNCTION_VER_LINUX_OR_FREEBSD(func, symver) \
INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func)